/* antisoftworks.com/phone: the light page for phones (TODO 54). The site's
   own colours (style.css tokens, same names and values) and system type,
   day and night follow the device. CSS only: the small motion is
   transform and opacity, and one rule below stills it all for
   prefers-reduced-motion. No inline style, no web fonts, no images but the
   logo (the scenes and tiles are drawn in the page). */

:root {
  --bg: #FDF8EE; --fg: #1F2A30; --muted: #56656B; --line: #D3E9E4;
  --soft: #E6F6F3; --card: #FFFFFF;
  --accent: #087A82;
  --sun: #FFD23F; --leaf: #2EAF6E; --coral: #FF7A6B; --sea: #1EC8C5;
  --paper: #FFFDF6; --tline: #C0C2BF;
  --btn: #06555B; --btn-ink: #F8F8F4;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1E29; --fg: #F3EEE4; --muted: #A9B8C4; --line: #22394A;
    --soft: #132A38; --card: #15293A;
    --accent: #FFC46B;
    --sun: #FFC46B; --leaf: #6FCF9F; --coral: #FF8F7A; --sea: #3FD1C7;
    --paper: #E9E3D6; --tline: #B0AFA8;
    --btn: #FFC46B; --btn-ink: #1D282D;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 16px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* One column, 16 px gutters (the safe areas widen them in landscape). */
.page { max-width: 480px; margin: 0 auto; }
main, footer {
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

/* The studio island, with the brand and the Full site link over it. */
.hero { position: relative; line-height: 0; }
.scene { display: block; width: 100%; height: auto; }
.scene.night { display: none; }
@media (prefers-color-scheme: dark) {
  .scene.day { display: none; }
  .scene.night { display: block; }
}
.top {
  position: absolute; left: 0; right: 0; top: 0; line-height: 1.5;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 0
    max(16px, env(safe-area-inset-left));
}
.brand, .full {
  background: rgba(253, 248, 238, .86); background: color-mix(in srgb, var(--bg) 80%, transparent);
}
.brand {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 11px 4px 5px;
  border-radius: 999px; font-weight: 600; font-size: 17px; letter-spacing: -.01em;
  color: var(--fg); text-decoration: none;
}
.brand img { display: block; width: 26px; height: 26px; }
.brand b { color: var(--accent); font-weight: 600; }
.full {
  font-size: 13px; color: var(--muted); text-decoration: none; border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 11px;
}

.intro { padding-top: 6px; }
h1 {
  font-size: 31px; line-height: 1.1; letter-spacing: -.03em; font-weight: 650;
  margin: 14px 0 10px; text-wrap: balance;
}
.sub { font-size: 16.5px; line-height: 1.5; color: var(--muted); margin: 0 0 12px; }

/* The four reasons: one column, each a framed card with a real picture of
   the app (Heimdall Light, so the pictures stay colourful in both modes). */
.grid {
  list-style: none; margin: 6px 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
.grid li {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden; box-shadow: 0 6px 18px -10px rgba(8, 60, 66, .35);
  animation: rise .5s ease-out backwards;
  transition: transform .15s ease-out, box-shadow .15s ease-out;
}
.grid li:active { transform: scale(.985); }
@media (hover: hover) { .grid li:hover { transform: translateY(-2px); } }
.grid li:nth-child(1) { border-top: 5px solid var(--sea); }
.grid li:nth-child(2) { border-top: 5px solid var(--coral); animation-delay: .06s; }
.grid li:nth-child(3) { border-top: 5px solid var(--sun); animation-delay: .12s; }
.grid li:nth-child(4) { border-top: 5px solid var(--leaf); animation-delay: .18s; }
.shot { display: block; width: 100%; height: auto; background: var(--soft); }
.txt { padding: 14px 16px 16px; }
.grid b { display: block; font-size: 18px; line-height: 1.25; letter-spacing: -.01em; }
.grid span { display: block; font-size: 15px; line-height: 1.45; color: var(--muted); margin-top: 4px; }
/* "Send the link to my computer": always in reach, above the footer. */
.stick {
  position: sticky; bottom: 0; z-index: 5; margin-top: 16px; text-align: center;
  padding: 10px max(16px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
  background: var(--bg); background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.why { margin: 0 0 8px; font-size: 13.5px; line-height: 1.3; color: var(--muted); }
.go {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--btn); color: var(--btn-ink); text-decoration: none; font-weight: 650;
  font-size: 16.5px; line-height: 1.25; border-radius: 14px; padding: 14px 16px;
  box-shadow: 0 8px 20px rgba(6, 85, 91, .3);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--btn) 30%, transparent);
  transition: transform .2s ease;
}
.go:active { transform: scale(.98); }
@media (hover: hover) { .go:hover { transform: translateY(-2px); } }
.go svg, .store svg {
  width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
}
.store {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px;
  padding: 4px 0; color: var(--accent); font-size: 14px; font-weight: 600; text-decoration: none;
}

footer { padding-top: 18px; padding-bottom: calc(16px + env(safe-area-inset-bottom)); text-align: center;
  font-size: 12.5px; color: var(--muted); }
footer nav { display: flex; justify-content: center; gap: 22px; margin: 0 0 6px; }
footer a { color: var(--muted); padding: 4px 0; }
footer p { margin: 0; max-width: none; }

/* The scene's small motion (item 53): the dog's tail and head, the cat's
   tail and eyes, the easel's paint, the kite, the night's lights. Only
   transform and opacity, loops of 3 to 7 seconds. */
.an { transform-box: view-box; transform-origin: 0 0; }
.wag { animation: wag 3s ease-in-out infinite; }
@keyframes wag { 0%, 52%, 100% { transform: rotate(0deg); } 6%, 18%, 30%, 42% { transform: rotate(-24deg); }
  12%, 24%, 36% { transform: rotate(14deg); } }
.tilt { animation: tilt 6s ease-in-out infinite; }
@keyframes tilt { 0%, 50%, 100% { transform: rotate(0deg); } 58%, 80% { transform: rotate(-10deg); } }
.sway { animation: sway 4s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(9deg); } }
.blink { animation: blink 5s linear infinite; }
@keyframes blink { 0%, 45%, 51%, 100% { transform: scaleY(1); } 48% { transform: scaleY(.1); } }
.cover { transform: translateX(62px); animation: cover 5s ease-in-out infinite; }
@keyframes cover { 0% { transform: translateX(0); } 40%, 100% { transform: translateX(62px); } }
.wet { animation: wet 5s linear infinite; }
@keyframes wet { 0%, 86% { opacity: 1; } 96%, 100% { opacity: 0; } }
.kite { animation: kite 7s ease-in-out infinite; }
@keyframes kite { 0%, 100% { transform: translate(0, 0) rotate(-4deg); } 50% { transform: translate(16px, -10px) rotate(6deg); } }
.tw { animation: tw 3s ease-in-out infinite; }
@keyframes tw { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.tw1 { animation-delay: -.8s; } .tw2 { animation-delay: -1.6s; } .tw3 { animation-delay: -2.3s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Reduced motion: everything is still, in a good pose (the paint is dry
   and visible, the lights are on). */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
