/* Lensque website. Colours, shapes and type follow the app's own theme
   (app/src/main/java/com/lookshot/app/ui/theme/Color.kt, Theme.kt, Type.kt, Dimens.kt).
   Light mode = the app's warm ivory and forest green; dark mode = its charcoal-green and sage.
   The Echo lens logo keeps its coral and gold, as on the app icon. No downloaded fonts. */

:root {
  color-scheme: light dark;

  /* Light (app: WarmIvoryBackground, ForestGreenPrimary, TextPrimaryLight ...) */
  --bg: #f7f5ef;
  --band: #efebe2;
  --surface: #fffefa;
  --surface-2: #ede9df;
  --surface-high: #e5e0d4;
  --border: #dcd8cc;
  --border-strong: #8b9e91;
  --text: #252922;
  --text-2: #52584d;
  --accent: #315b45;
  --accent-hover: #3e7b5a;
  --on-accent: #ffffff;
  --label: #3d6b50;
  --link: #315b45;
  --chip: #e2ece5;
  --que: #b7791f;
  --notice-bg: #fbf1d4;
  --notice-line: #e6a700;
  --todo-bg: #f6d9d9;
  --todo-text: #8a1c1c;
  --photo-a: #3b4a3f;
  --photo-b: #1f2a23;
  --bezel: #2a302b;

  --serif: ui-serif, "Noto Serif", "Iowan Old Style", "Palatino Linotype", Georgia, Cambria,
    "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari",
    "Noto Sans Thai", "Helvetica Neue", Arial, sans-serif;

  /* App shape tokens: card 20dp, hero 24dp, lg 16dp, md 12dp, pill */
  --r-card: 20px;
  --r-hero: 24px;
  --r-lg: 16px;
  --r-md: 12px;
  --max: 1080px;
  --text-width: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Dark (app: DarkCharcoalBackground, SageGreenDarkPrimary, TextPrimaryDark ...) */
    --bg: #121714;
    --band: #161d18;
    --surface: #1c241f;
    --surface-2: #252d26;
    --surface-high: #2e3830;
    --border: #3a463c;
    --border-strong: #6e9a7a;
    --text: #f4f2ec;
    --text-2: #a7b09f;
    --accent: #6e9a7a;
    --accent-hover: #8fb388;
    --on-accent: #121714;
    --label: #8fb388;
    --link: #8fb388;
    --chip: #1f3325;
    --que: #ffb800;
    --notice-bg: #2b2614;
    --notice-line: #e6a700;
    --todo-bg: #3a1f22;
    --todo-text: #f2b8bd;
    --bezel: #2e3830;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}

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

a {
  color: var(--link);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--accent-hover);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* Small spaced capitals, like ACCOUNT in the app's Settings */
.eyebrow {
  margin: 0 0 10px;
  color: var(--label);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
}

.wordmark {
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
}

.wordmark span {
  color: var(--que);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 8px 2px;
  color: var(--text-2);
  font-size: 0.95rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--accent);
}

/* Pills: the app's rounded buttons */
.button,
.play-placeholder,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
}

.button,
.play-placeholder {
  background: var(--accent);
  color: var(--on-accent);
}

.button {
  cursor: pointer;
}

.button:hover {
  background: var(--accent-hover);
}

.pill {
  border-color: var(--border-strong);
  color: var(--text);
}

.pill:hover {
  background: var(--surface-2);
}

.play-placeholder svg {
  width: 22px;
  height: 24px;
}

.play-placeholder small {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.play-placeholder strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.2;
}

/* Hero */
.hero {
  padding: 56px 0 64px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5.6vw, 3.7rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.hero h1 em {
  color: var(--label);
  font-style: italic;
}

.hero .lede {
  max-width: 34em;
  margin: 20px 0 28px;
  color: var(--text-2);
  font-size: 1.15rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.cta-note {
  flex-basis: 100%;
  margin: 6px 0 0;
  color: var(--text-2);
  font-size: 0.95rem;
}

/* Sections */
section {
  padding: 72px 0;
}

.band {
  border-block: 1px solid var(--border);
  background: var(--band);
}

.section-title {
  max-width: var(--text-width);
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.6vw, 2.35rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.section-lede {
  max-width: var(--text-width);
  margin: 0 0 32px;
  color: var(--text-2);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li,
.feature,
.card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--surface);
}

.steps li {
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}

.steps h3,
.feature h3,
.card h2,
.card h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
}

.steps p,
.feature p,
.card p {
  margin: 0;
  color: var(--text-2);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature .icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: var(--chip);
  color: var(--accent);
}

.feature .icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Privacy callout: like the shield note in the app's account card */
.callout .wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--r-hero);
  background: var(--surface-2);
}

.callout svg {
  width: 56px;
  height: 64px;
  color: var(--accent);
}

.callout svg .tick {
  stroke: var(--on-accent);
}

.callout h2 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  line-height: 1.2;
}

.callout p {
  max-width: 46em;
  margin: 0;
  color: var(--text-2);
}

/* Text pages (privacy, terms, support, deletion) */
.page-head {
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--border);
}

.page-head h1 {
  max-width: var(--text-width);
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4.6vw, 2.9rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.page-head p:not(.eyebrow) {
  max-width: var(--text-width);
  margin: 12px 0 0;
  color: var(--text-2);
}

.prose {
  max-width: var(--text-width);
  padding: 40px 0 72px;
}

.prose h2 {
  margin: 2.2em 0 0.5em;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
}

.prose h3 {
  margin: 1.6em 0 0.4em;
  font-size: 1.1rem;
  font-weight: 600;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 1em;
}

.prose li + li {
  margin-top: 0.35em;
}

.prose code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--surface-2);
  font-size: 0.92em;
}

.prose .summary,
.toc {
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--surface-2);
}

.prose .summary ul {
  margin: 0;
}

.toc {
  margin-top: 16px;
  background: var(--surface);
}

.toc ol {
  margin: 0;
  padding-left: 1.3em;
}

.table-scroll {
  overflow-x: auto;
  margin: 0 0 1.2em;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

tr:last-child td {
  border-bottom: 0;
}

th {
  background: var(--surface-2);
  font-weight: 600;
}

/* Founder-review markers. check-ready.js refuses to deploy while any remain. */
.draft-banner {
  border-bottom: 2px solid var(--notice-line);
  background: var(--notice-bg);
  color: var(--text);
  font-size: 0.95rem;
}

.draft-banner .wrap {
  padding-block: 12px;
}

mark.todo {
  padding: 0 5px;
  border-radius: 6px;
  background: var(--todo-bg);
  color: var(--todo-text);
  font-weight: 600;
}

/* Cards and forms */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 0 0 1.5em;
}

.card p {
  margin: 0 0 8px;
}

.card p:last-child {
  margin-bottom: 0;
}

.email-link {
  font-size: 1.1rem;
  font-weight: 600;
  word-break: break-word;
}

form.request {
  display: grid;
  gap: 18px;
  margin: 0 0 1.4em;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--surface);
}

form.request label,
form.request legend {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

form.request fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

form.request .hint {
  display: block;
  margin-top: 4px;
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 400;
}

form.request input[type="email"],
form.request input[type="text"],
form.request textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

form.request textarea {
  min-height: 96px;
  resize: vertical;
}

form.request .choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 0;
  font-weight: 400;
}

.choice input {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: var(--accent);
}

.form-status {
  margin: 0;
  color: var(--text-2);
  font-size: 0.95rem;
}

details.faq {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

details.faq summary {
  font-weight: 600;
  cursor: pointer;
}

details.faq p {
  margin: 10px 0 0;
  color: var(--text-2);
}

/* Footer */
.site-footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--border);
  background: var(--band);
  color: var(--text-2);
  font-size: 0.95rem;
}

.site-footer .wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px 40px;
}

.site-footer .wordmark {
  color: var(--text);
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--text);
}

.site-footer p {
  margin: 0;
}

.site-footer .fine {
  grid-column: 1 / -1;
  font-size: 0.85rem;
}

/* Small screens */
@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .steps,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .site-footer .wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  section {
    padding: 52px 0;
  }

  .hero {
    padding: 36px 0 48px;
  }

  .callout .wrap {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .callout svg {
    width: 44px;
    height: 50px;
  }
}

/* Guides */
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  color: var(--text-2);
  font-size: 0.9rem;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--border-strong);
}

.breadcrumb a {
  color: var(--text-2);
}

.meta-line {
  color: var(--text-2);
  font-size: 0.92rem;
}

.page-head .meta-line {
  margin-top: 14px;
}

.prose .answer {
  font-size: 1.1rem;
}

.prose table td:first-child {
  font-weight: 600;
}

.try-card {
  margin: 1.6em 0;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.try-card p {
  margin: 0 0 6px;
}

.try-card p:last-child {
  margin-bottom: 0;
}

.guide-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-list a {
  display: block;
  height: 100%;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

.guide-list a:hover {
  border-color: var(--border-strong);
}

.guide-list strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.3;
}

.guide-list span {
  color: var(--text-2);
  font-size: 0.97rem;
}

.related {
  margin-top: 2.4em;
  padding-top: 1.4em;
  border-top: 1px solid var(--border);
}

@media (max-width: 860px) {
  .guide-list {
    grid-template-columns: 1fr;
  }
}

.prose-wide {
  max-width: none;
}

.prose .guide-list li + li {
  margin-top: 0;
}

.more-link {
  margin: 22px 0 0;
  font-weight: 600;
}

.more-link a {
  display: inline-block;
  padding: 8px 0;
}

/* ==========================================================================
   Motion and polish (2026-11-17). Transforms and opacity only, so nothing
   shifts the layout. Everything below is switched off for people who ask
   their phone or computer for reduced motion (see the end of this section).
   ========================================================================== */

:root {
  --shadow: 0 14px 34px -16px rgba(37, 41, 34, 0.32);
  --shadow-strong: 0 26px 50px -22px rgba(37, 41, 34, 0.45);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ring-opacity: 0.4;
}

@media (prefers-color-scheme: dark) {
  :root {
    --shadow: 0 14px 34px -16px rgba(0, 0, 0, 0.7);
    --shadow-strong: 0 26px 50px -20px rgba(0, 0, 0, 0.8);
    --ring-opacity: 0.55;
  }
}

/* Sticky header with a soft blur; a hairline shadow appears once the page scrolls. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
}

section[id],
h2[id] {
  scroll-margin-top: 84px;
}

.brand img {
  transition: transform 0.6s var(--ease-out);
}

.brand:hover img {
  transform: rotate(-24deg) scale(1.06);
}

/* Buttons and cards: lift on hover, press in on tap. */
.button,
.play-placeholder,
.pill,
.rail-btn {
  transition: transform 0.18s var(--ease-out), background-color 0.2s, box-shadow 0.2s;
}

.button:active,
.pill:active,
.rail-btn:active {
  transform: scale(0.96);
}

.pill:hover,
.button:hover {
  box-shadow: var(--shadow);
}

.steps li,
.feature,
.card,
.guide-list a {
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, border-color 0.25s;
}

.steps li:hover,
.feature:hover,
.card:hover,
.guide-list a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}

.guide-list strong::after {
  content: "\2192";
  display: inline-block;
  margin-left: 0.3em;
  color: var(--accent);
  transition: transform 0.25s var(--ease-out);
}

.guide-list a:hover strong::after {
  transform: translateX(4px);
}

/* How it works: a thin line joins the three step numbers on wide screens. */
@media (min-width: 861px) {
  .steps {
    position: relative;
  }

  .steps::before {
    content: "";
    position: absolute;
    top: 44px;
    left: 40px;
    right: 40px;
    border-top: 2px dashed var(--border-strong);
    opacity: 0.6;
  }

  .steps li {
    position: relative;
  }
}

/* Hero stage: three real app screens in phone frames, with the Echo lens rings behind them. */
.hero {
  overflow: clip;
}

@media (min-width: 861px) {
  .hero .wrap {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.hero-stage {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  width: min(100%, 470px);
  aspect-ratio: 1 / 1.06;
  justify-self: center;
  margin: 0;
}

.echo-rings {
  position: absolute;
  inset: -6% -10%;
  width: 120%;
  max-width: none;
  height: 112%;
  overflow: visible;
}

.echo-rings .ring {
  fill: none;
  stroke-width: 9;
  opacity: var(--ring-opacity);
}

.echo-rings .ring-a {
  stroke: #ff5a7a;
}

.echo-rings .ring-b {
  stroke: #ffb800;
}

.hero-phones {
  position: absolute;
  inset: 0;
  margin: 0;
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 0.35s var(--ease-out);
}

.device {
  display: block;
  width: 100%;
  height: auto;
  border: 7px solid var(--bezel);
  border-radius: 28px;
  background: var(--bezel);
  box-shadow: var(--shadow-strong);
}

.hero-phones .slot {
  position: absolute;
}

.hero-phones .slot.front {
  left: 23%;
  top: 2%;
  width: 54%;
  z-index: 2;
}

.hero-phones .slot.left {
  left: 0;
  top: 13%;
  width: 44%;
  rotate: -9deg;
}

.hero-phones .slot.right {
  right: 0;
  top: 13%;
  width: 44%;
  rotate: 9deg;
}

/* Screenshot showcase: a swipeable strip of phone frames. */
.showcase .rail-wrap {
  position: relative;
}

.rail {
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 8px max(16px, calc((100vw - var(--max)) / 2)) 28px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(16px, calc((100vw - var(--max)) / 2));
  scrollbar-width: thin;
  list-style: none;
}

.rail:focus-visible {
  outline-offset: -3px;
}

.rail li {
  flex: 0 0 clamp(190px, 21vw, 240px);
  scroll-snap-align: start;
}

.rail figure {
  margin: 0;
}

.rail figcaption {
  margin-top: 12px;
  color: var(--text-2);
  font-size: 0.95rem;
  text-align: center;
}

.rail-btn {
  position: absolute;
  top: calc(50% - 40px);
  z-index: 3;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.rail-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rail-btn.prev {
  left: max(8px, calc((100vw - var(--max)) / 2 - 24px));
}

.rail-btn.next {
  right: max(8px, calc((100vw - var(--max)) / 2 - 24px));
}

.rail-btn:disabled {
  opacity: 0;
  pointer-events: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 860px) {
  .hero-stage {
    width: min(100%, 400px);
  }

  .rail li {
    flex-basis: 62vw;
  }

  .rail-btn {
    display: none;
  }
}

/* Motion, only for people who haven't asked for less. */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  /* Hero copy rises in, one line after another. */
  .rise {
    animation: rise 0.8s var(--ease-out) both;
  }

  .rise-2 {
    animation-delay: 0.08s;
  }

  .rise-3 {
    animation-delay: 0.16s;
  }

  .rise-4 {
    animation-delay: 0.24s;
  }

  /* Phones arrive, then float gently, each on its own rhythm. */
  .hero-phones .slot {
    animation: phone-in 0.9s var(--ease-out) both;
  }

  .hero-phones .slot.left,
  .hero-phones .slot.right {
    animation-name: phone-in-fade;
    animation-delay: 0.18s;
  }

  .hero-phones .slot .device {
    animation: float 7s ease-in-out 1s infinite alternate;
  }

  .hero-phones .slot.left .device {
    animation-duration: 8s;
    animation-delay: 1.4s;
  }

  .hero-phones .slot.right .device {
    animation-duration: 9s;
    animation-delay: 1.8s;
  }

  /* The Echo lens rings slide together like a lens focusing, then turn slowly. */
  .echo-rings .ring-a {
    animation: ring-a 1.4s var(--ease-out) both;
  }

  .echo-rings .ring-b {
    animation: ring-b 1.4s var(--ease-out) both;
  }

  .echo-rings {
    animation: spin 90s linear 1.4s infinite;
  }

  /* Sections fade up as they scroll into view (browsers that support scroll-driven animations). */
  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }

    .rail li {
      animation: rail-in linear both;
      animation-timeline: view(inline);
      animation-range: entry 0% entry 70%;
    }

    .site-header {
      animation: header-lift linear both;
      animation-timeline: scroll(root);
      animation-range: 0 120px;
    }
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

/* The front phone (the page's largest image) rises without fading, so it paints straight away. */
@keyframes phone-in {
  from {
    transform: translateY(40px) scale(0.96);
  }
}

@keyframes phone-in-fade {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
  }
}

@keyframes float {
  to {
    transform: translateY(-10px);
  }
}

@keyframes ring-a {
  from {
    opacity: 0;
    transform: translate(-30px, -30px);
  }
}

@keyframes ring-b {
  from {
    opacity: 0;
    transform: translate(30px, 30px);
  }
}

@keyframes spin {
  to {
    rotate: 360deg;
  }
}

/* Scroll reveals move but never fade: text stays at full contrast even half-way into view. */
@keyframes reveal {
  from {
    transform: translateY(36px) scale(0.98);
  }
}

@keyframes rail-in {
  from {
    transform: scale(0.88);
  }
}

@keyframes header-lift {
  to {
    box-shadow: 0 10px 24px -18px rgba(0, 0, 0, 0.45);
  }
}

/* Reduced motion: no movement at all, just the finished layout. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero-phones {
    transform: none;
  }
}

/* Printing: no scroll-driven animation, so every section prints. */
@media print {
  .reveal,
  .rail li,
  .rise,
  .hero-phones .slot,
  .hero-phones .slot .device {
    animation: none !important;
  }

  .site-header {
    position: static;
  }

  .rail-btn {
    display: none;
  }
}

@media (max-width: 520px) {
  .hero-phones .slot.left {
    left: 4%;
    width: 40%;
  }

  .hero-phones .slot.right {
    right: 4%;
    width: 40%;
  }
}
