/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(assets/fonts/inter-UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7W0Q5n-wU.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(assets/fonts/inter-UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7W0Q5nw.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url(assets/fonts/newsreader-cY9CfjOCX1hbuyalUrK439vCgIhCBJWxZCPp.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url(assets/fonts/newsreader-cY9CfjOCX1hbuyalUrK439vCjohCBJWxZA.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(assets/fonts/newsreader-cY9AfjOCX1hbuyalUrK439DyjIJFJpeBZQ.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(assets/fonts/newsreader-cY9AfjOCX1hbuyalUrK4397yjIJFJpc.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #e6e5ea;
  --ink: #1c1c1e;
  --ink-2: #5a5a60;
  --ink-3: #8a8a92;
  --card: #ecebef;
  --line: rgba(0, 0, 0, 0.08);
  --shadow: 0 30px 60px -20px rgba(20, 20, 30, 0.35), 0 10px 20px -10px rgba(20, 20, 30, 0.2);
  --accent: #1c1c1e;
  --accent-ink: #f5f4f7;
  --paper-opacity: 0.18;
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' seed='4' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/><feComponentTransfer><feFuncA type='linear' slope='0.9'/></feComponentTransfer></filter><rect width='320' height='320' filter='url(%23n)'/></svg>");
  --serif: "Newsreader", ui-serif, Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #232324;
  --ink: #f0eff2;
  --ink-2: #a8a7ad;
  --ink-3: #77767c;
  --card: #2b2b2d;
  --line: rgba(255, 255, 255, 0.09);
  --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8), 0 10px 20px -10px rgba(0, 0, 0, 0.6);
  --accent: #f0eff2;
  --accent-ink: #1c1c1e;
  --paper-opacity: 0.1;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.5s ease, color 0.5s ease;
}

.paper {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: var(--paper-opacity);
  background-image: var(--grain);
  background-size: 320px 320px;
  mix-blend-mode: multiply;
}

:root[data-theme="dark"] .paper { mix-blend-mode: soft-light; }

main, header, footer { position: relative; z-index: 1; }

h1, h2 {
  font-family: var(--serif);
  text-wrap: balance;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin: 0;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

:root[data-theme="dark"] h1,
:root[data-theme="dark"] h2 { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); }

h1 { font-size: clamp(2.6rem, 6.5vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }

p { margin: 0; }

a { color: inherit; }

img { display: block; max-width: 100%; }

/* Even line lengths, so no single word is stranded on its own line */

.lede,
.feel-desc,
.say,
.feature-text p,
.daynight-text p,
.closing-inner > p,
.notfound-inner p,
.quote-sub {
  text-wrap: balance;
}

/* Accessibility */

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-size: 0.95rem;
  transition: top 0.18s ease;
}

.skip-link:focus-visible { top: 1rem; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.button:focus-visible,
.theme-toggle:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.video-toggle {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: #1c1c1e;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
  opacity: 0.55;
  transition: opacity 0.2s ease;
}

.video-toggle:hover,
.video-toggle:focus-visible { opacity: 1; }

.video-toggle .ico-play { display: none; }

.video-toggle[aria-label^="Play"] .ico-pause { display: none; }

.video-toggle[aria-label^="Play"] .ico-play { display: block; }

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  box-shadow: 0 10px 25px -12px rgba(0, 0, 0, 0.6);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.button:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.6); }

.button-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}

.button-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink-3); }

.button-small { padding: 0.55rem 1.1rem; font-size: 0.9rem; }

.button-store {
  padding: 0.7rem 1.5rem 0.75rem 1.25rem;
  align-items: center;
  gap: 0.7rem;
}

.store-text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }

.store-small { font-size: 0.68rem; letter-spacing: 0.02em; opacity: 0.85; }

.store-big { font-size: 1.16rem; font-weight: 500; letter-spacing: -0.01em; }


/* Nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1.2rem, 4vw, 3rem);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  border-bottom: 1px solid var(--line);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.25rem;
}

.nav-brand img { border-radius: 7px; }

.nav-links { display: flex; gap: 1.6rem; font-size: 0.95rem; color: var(--ink-2); }

.nav-links a { text-decoration: none; transition: color 0.2s; }

.nav-links a:hover { color: var(--ink); }

.nav-actions { display: flex; align-items: center; gap: 0.6rem; }

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.theme-toggle:hover { border-color: var(--ink-3); }

.theme-toggle .moon { display: none; }

:root[data-theme="dark"] .theme-toggle .moon { display: block; }

:root[data-theme="dark"] .theme-toggle .sun { display: none; }

/* Hero */

.hero {
  position: relative;
  min-height: calc(100vh - 62px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(4rem, 10vh, 8rem) 1.5rem 6rem;
  overflow: hidden;
}

.hero-inner { position: relative; max-width: 60rem; z-index: 2; }

.hero-icon {
  width: 112px;
  height: 112px;
  margin: 0 auto 2rem;
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  color: var(--ink-2);
  max-width: 44rem;
  margin: 1.6rem auto 0;
}

.lede-turn { margin-top: 1.1rem; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2.4rem;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 1.5px solid var(--ink-3);
  border-radius: 14px;
  opacity: 0.7;
}

.scroll-hint span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--ink-3);
  animation: scroll-dot 1.8s ease-in-out infinite;
}

@keyframes scroll-dot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(14px); opacity: 0; }
}

/* Petals */

.petal-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
  -webkit-mask-image:
    linear-gradient(to bottom, transparent, #000 64px, #000 calc(100% - 104px), transparent),
    radial-gradient(ellipse 44% 32% at 50% var(--clear-y, 50%), rgba(0, 0, 0, 0.16) 28%, #000 100%);
  mask-image:
    linear-gradient(to bottom, transparent, #000 64px, #000 calc(100% - 104px), transparent),
    radial-gradient(ellipse 44% 32% at 50% var(--clear-y, 50%), rgba(0, 0, 0, 0.16) 28%, #000 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.petal {
  position: absolute;
  top: -8vh;
  left: var(--x);
  width: var(--size);
  height: calc(var(--size) * 0.62);
  border-radius: 100% 0 100% 0;
  background:
    radial-gradient(120% 120% at 25% 20%, rgba(255, 255, 255, 0.55), transparent 55%),
    linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 6px 10px -4px rgba(0, 0, 0, 0.35);
  opacity: 0;
  animation:
    petal-fall var(--dur) linear var(--delay) infinite,
    petal-spin calc(var(--dur) * 0.45) ease-in-out var(--delay) infinite alternate;
  will-change: transform;
}

@keyframes petal-fall {
  0% { transform: translate3d(0, 0, 0) rotate(var(--r0)); opacity: 0; }
  8% { opacity: 0.95; }
  92% { opacity: 0.9; }
  100% { transform: translate3d(var(--drift), 115vh, 0) rotate(var(--r1)); opacity: 0; }
}

@keyframes petal-spin {
  from { margin-left: 0; }
  to { margin-left: var(--sway); }
}

/* Feel / demo */

.feel {
  position: relative;
  padding: 6rem 1.5rem 5rem;
  text-align: center;
  display: grid;
  justify-items: center;
}

.feel-copy { max-width: 36rem; }

.feel-copy h2 { margin-top: 0.2rem; }

.feel-desc {
  color: var(--ink-2);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  margin-top: 1rem;
}

.feel-copy .say { display: block; }

.feel .phone-video {
  position: relative;
  border-radius: 16px;
  margin-top: clamp(3.5rem, 7vw, 6rem);
  width: min(84vw, 340px);
  aspect-ratio: 660 / 1345;
}

.feel .phone-video video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Features */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  max-width: 76rem;
  margin: 0 auto;
  padding: 6rem clamp(1.5rem, 5vw, 4rem);
}

.feature-flip .feature-text { order: 2; }

.feature-text p { color: var(--ink-2); margin-top: 1.2rem; font-size: 1.08rem; }

.say {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  color: var(--ink) !important;
  margin-top: 1.6rem !important;
}

.feature-text h2 { color: var(--ink); }

.siri-example {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem !important;
  color: var(--ink) !important;
  padding-left: 1rem;
  border-left: 2px solid var(--line);
}

.feature-media {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  perspective: 1400px;
}

.phone {
  margin: 0;
  min-width: 0;
  width: min(100%, 280px);
  border-radius: 13px;
  overflow: hidden;
  box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
  background: var(--card);
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.phone picture { display: contents; }

.phone img { width: 100%; height: auto; }

.phone-tilt-left { transform: rotate(-4deg) translateY(1.5rem); }
.phone-tilt-right { transform: rotate(4deg) translateY(-1.5rem); }

.feature-media:hover .phone-tilt-left { transform: rotate(-2deg) translateY(1rem); }
.feature-media:hover .phone-tilt-right { transform: rotate(2deg) translateY(-1rem); }

/* Day to night, driven by scroll */

.daynight { --p: 0; position: relative; }

.daynight-track { height: 240vh; }

.daynight-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding: 0 clamp(1.5rem, 6vw, 5rem);
  overflow: hidden;
  background-color: color-mix(in oklab, #e6e5ea, #0f0f12 calc(var(--p) * 100%));
}

.daynight-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-size: 320px 320px;
  mix-blend-mode: multiply;
  opacity: calc(0.18 - var(--p) * 0.09);
  pointer-events: none;
}

:root[data-theme="dark"] .daynight-text h2 {
  text-shadow: 0 1px 0 rgba(255, 255, 255, calc((1 - var(--p)) * 0.6));
}

.daynight-text { position: relative; z-index: 2; max-width: 34rem; }

.daynight-text h2 {
  color: color-mix(in oklab, #1c1c1e, #f0eff2 calc(var(--p) * 100%));
  text-shadow: 0 1px 0 rgba(255, 255, 255, calc((1 - var(--p)) * 0.6));
}


.daynight-text p {
  color: color-mix(in oklab, #5a5a60, #b4b3ba calc(var(--p) * 100%));
  margin-top: 1.2rem;
  font-size: 1.08rem;
}

.daynight-hint {
  font-size: 0.9rem !important;
  opacity: calc(1 - var(--p) * 1.6);
  transition: opacity 0.2s linear;
}

.daynight-hint::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 0.5rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  animation: hint-bob 1.6s ease-in-out infinite;
}

@keyframes hint-bob {
  0%, 100% { transform: translateY(-3px) rotate(45deg); }
  50% { transform: translateY(1px) rotate(45deg); }
}

.daynight-stage .daynight-phone {
  position: relative;
  z-index: 2;
  justify-self: center;
  width: auto;
  height: min(78vh, 720px);
  aspect-ratio: 1320 / 2868;
  border-radius: 14px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, calc(var(--p) * 0.14));
}

.daynight-phone img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dn-dark {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(var(--p) * 140% - 40%), transparent calc(var(--p) * 140%));
  mask-image: linear-gradient(to bottom, #000 calc(var(--p) * 140% - 40%), transparent calc(var(--p) * 140%));
}

.dn-sun {
  position: absolute;
  left: var(--sky-x, 17%);
  top: var(--sky-y, 12%);
  width: clamp(52px, 5.5vw, 78px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 38%, #fffaf0, #ffe9b0 45%, #ffd27e 72%, #f7b45c 100%);
  box-shadow:
    0 0 26px 6px rgba(255, 209, 133, 0.4),
    0 0 80px 30px rgba(255, 188, 112, 0.16);
  transform: translate(-50%, calc(var(--p) * var(--sky-fall, 190px)));
  opacity: calc(1 - var(--p) * 1.7);
  pointer-events: none;
}

.dn-moon {
  position: absolute;
  left: var(--moon-x, 29%);
  top: var(--sky-y, 12%);
  width: clamp(36px, 3.6vw, 50px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 68% 36%, transparent 46%, #eceaf3 48%);
  filter: drop-shadow(0 0 14px rgba(236, 234, 243, 0.45));
  opacity: calc(var(--p) * 2.2 - 1);
  transform: translate(-50%, calc((1 - var(--p)) * var(--moon-rise, 150px))) rotate(-18deg);
  pointer-events: none;
}

.dn-stars {
  position: absolute;
  inset: 0;
  opacity: var(--p);
  pointer-events: none;
  background-image:
    radial-gradient(1.6px 1.6px at 8% 18%, #fff 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 21% 9%, #fff 50%, transparent 52%),
    radial-gradient(1.4px 1.4px at 33% 26%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 44% 14%, #fff 50%, transparent 52%),
    radial-gradient(1.8px 1.8px at 56% 7%, #fff 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 63% 30%, #fff 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 78% 11%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 86% 24%, #fff 50%, transparent 52%),
    radial-gradient(1.4px 1.4px at 93% 40%, #fff 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 14% 46%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 27% 58%, #fff 50%, transparent 52%),
    radial-gradient(1.6px 1.6px at 4% 72%, #fff 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 39% 82%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 91% 66%, #fff 50%, transparent 52%),
    radial-gradient(1.4px 1.4px at 70% 88%, #fff 50%, transparent 52%);
  animation: twinkle 5s ease-in-out infinite alternate;
}

@keyframes twinkle {
  from { filter: brightness(0.8); }
  to { filter: brightness(1.3); }
}

/* 404 */

.notfound {
  position: relative;
  min-height: calc(100vh - 62px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1.5rem 6rem;
  overflow: hidden;
}

.notfound-inner { position: relative; z-index: 2; max-width: 34rem; }

.notfound-inner img { margin: 0 auto 2rem; border-radius: 22px; box-shadow: var(--shadow); }

.notfound-inner h1 { font-size: clamp(2rem, 4.4vw, 3rem); }

.notfound-inner p { color: var(--ink-2); margin: 1.2rem 0 2.2rem; font-size: 1.08rem; }

/* Legal pages */

.legal {
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 5vw, 3rem) 5rem;
}

.legal h1 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); }

.legal h2 {
  font-size: clamp(1.15rem, 1.9vw, 1.4rem);
  margin-top: 2.8rem;
}

.legal p {
  color: var(--ink-2);
  margin-top: 1rem;
  font-size: 1.05rem;
}

.legal-intro { font-size: 1.16rem !important; margin-top: 1.6rem !important; }

.legal a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Closing */

.closing {
  position: relative;
  padding: 8rem 1.5rem 7rem;
  text-align: center;
  overflow: hidden;
}

.closing-inner { position: relative; z-index: 2; max-width: 40rem; margin: 0 auto; }

.closing-inner img { margin: 0 auto 2rem; border-radius: 22px; box-shadow: var(--shadow); }

.closing-inner h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }

.closing-inner > p { color: var(--ink-2); margin: 1.2rem 0 2rem; font-size: 1.1rem; }

.closing-small {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-2) !important;
  margin-top: 3rem !important;
  font-size: 1rem !important;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 1.5rem clamp(1.5rem, 5vw, 4rem) 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.88rem;
}

.footer a { text-decoration: none; }

/* Reveal on scroll */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.is-visible { opacity: 1; transform: none; }

.hero .reveal:nth-child(2) { transition-delay: 0.1s; }
.hero .reveal:nth-child(3) { transition-delay: 0.2s; }
.hero .reveal:nth-child(4) { transition-delay: 0.3s; }
.hero .reveal:nth-child(5) { transition-delay: 0.4s; }

/* Responsive */

.wide-only { display: none; }

@media (min-width: 820px) {
  .wide-only { display: inline; }
}

@media (max-width: 820px) {
  .nav-links { display: none; }
  .feature { grid-template-columns: 1fr; padding-top: 4rem; padding-bottom: 4rem; }
  .feature-flip .feature-text { order: 0; }
  .feature-text { text-align: center; }
  .siri-example { text-align: left; }
  .phone { width: min(70vw, 240px); border-radius: 11px; }
  .daynight-stage .daynight-phone { border-radius: 9px; }
  #write .feature-media { gap: 0.7rem; }
  #write .feature-media .phone { width: min(40vw, 170px); border-radius: 8px; }
  .feel .phone-video { border-radius: 12px; }
  .phone-tilt-left, .phone-tilt-right { transform: none; }
  .daynight-track { height: 200vh; }
  .daynight-stage { grid-template-columns: 1fr; align-content: start; gap: 1.3rem; padding-top: 8.5rem; text-align: center; }
  .daynight-text { max-width: 30rem; justify-self: center; }
  .daynight-stage .daynight-phone { height: min(44vh, 400px); }
  .daynight-stage { --sky-x: 80%; --moon-x: 60%; --sky-y: 9%; --sky-fall: 120px; --moon-rise: 95px; }
}

@media (prefers-reduced-motion: reduce) {
  .petal { animation: none; opacity: 0; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint span { animation: none; }
  .dn-stars { animation: none; }
  .daynight-hint::after { animation: none; }
  .phone, .button, .skip-link { transition: none; }
  html { scroll-behavior: auto; }
}
