/* amlin-air: the page over the scrollcraft floor.
   Every colour is the mark's or a mix of the mark's. The one non-orthogonal
   angle on the page is the blade rake, 7.9deg; it appears only where the wind
   travels (the canvas draws it) and in the caught-line cascade. */

:root {
  --sc-canvas:     #fbf7ec;
  --sc-surface:    color-mix(in oklab, #fbf7ec 86%, #9fc1b8);
  --sc-ink:        #0e544d;
  --sc-ink-soft:   color-mix(in oklab, #0e544d 86%, #9fc1b8);
  --sc-accent:     #146b62;
  --sc-accent-ink: #fbf7ec;
  --sc-font-display: "Fraunces", Georgia, serif;
  --sc-font-text:    "Hanken Grotesk", system-ui, sans-serif;
  --sc-font-mono:    ui-monospace, "SF Mono", Menlo, monospace;
  --sc-shadow-color: 172 60% 8%;
  --sc-hairline: color-mix(in oklab, #0e544d 16%, transparent);
  --sc-hairline-strong: color-mix(in oklab, #0e544d 30%, transparent);
  --sage: #9fc1b8;
  --deep: #0e544d;
  /* one radius family, scaled from the tile's 21.8% corner */
  --r-plate: 14px; --r-ui: 10px;
}

html { scrollbar-color: color-mix(in oklab, #146b62 40%, transparent) transparent; }
/* the stops: one screen you can read, then the next. Snapping itself is
   switched on by the page only once these markers exist, so the browser
   never adopts a snap target before the track has its size. */
.sc-world__spacer { position: relative; }
.stop { position: absolute; left: 0; width: 1px; height: 1px; scroll-snap-align: start; scroll-snap-stop: always; }

/* ---- skip link ---------------------------------------------------------- */
.skip {
  position: fixed; top: 10px; left: 10px; z-index: 100;
  background: var(--sc-accent); color: var(--sc-accent-ink);
  padding: 10px 16px; border-radius: var(--r-ui);
  font-weight: 600; text-decoration: none;
  transform: translateY(-64px); opacity: 0;
}
.skip:focus-visible { transform: none; opacity: 1; }

/* ---- the world ---------------------------------------------------------- */
.ground { position: absolute; inset: 0; }
.ground--catch { background: var(--sc-surface); }
.ground--deep { background: #0e544d; }
.sc-world__seg { pointer-events: none; }
.seg-decoy { display: none; }

/* screenshots as objects in the world */
.plate {
  position: absolute; margin: 0;
  border-radius: var(--r-plate);
  box-shadow: var(--sc-e3), var(--sc-edge);
  background: #fff;
  overflow: hidden;
}
.plate img { width: 100%; height: auto; display: block; }
.plate--note { left: 50%; top: 51%; transform: translate(-50%, -50%); width: min(58vw, 68vh); }
.plate--dict { left: 6vw; top: 50%; transform: translateY(-50%); width: min(40vw, 66vh); }
.plate--todo { right: 5vw; top: 50%; transform: translateY(-50%); width: min(45vw, 112vh); }
.plate__cap {
  font-family: var(--sc-font-mono); font-size: var(--sc-t-xs);
  letter-spacing: var(--sc-track-wide); text-transform: uppercase;
  color: var(--sc-ink-soft); padding: 10px 14px;
  background: var(--sc-canvas); border-top: 1px solid var(--sc-hairline);
}

/* ---- copy windows ------------------------------------------------------- */
.w {
  position: absolute;
  left: var(--sc-gutter);
  max-width: min(36rem, 82vw);
}
.w h1, .w h2 {
  font-family: var(--sc-font-display); font-weight: 600;
  line-height: var(--sc-leading-tight); letter-spacing: var(--sc-track-snug);
  text-wrap: balance; margin: 0 0 var(--sc-4);
  color: var(--sc-ink);
}
.w h1 { font-size: var(--sc-t-3xl); letter-spacing: var(--sc-track-tight); }
.w h2 { font-size: var(--sc-t-2xl); }
.w p { margin: 0; max-width: 52ch; color: var(--sc-ink-soft); text-wrap: pretty; }
.w p + p { margin-top: var(--sc-4); }
.w a:not(.btn) { color: var(--sc-accent); }
.w .lede { font-size: var(--sc-t-lg); line-height: 1.45; color: var(--sc-ink); max-width: 44ch; }
.w .micro { font-size: var(--sc-t-sm); color: var(--sc-ink-soft); margin-top: var(--sc-4); }

.w { max-width: min(34rem, 40vw); }
.w--hero   { top: 19vh; max-width: min(46rem, 64vw); }
.w--hero h1 { font-size: clamp(2.6rem, 1.3rem + 4.8vw, 5.8rem); line-height: 1.12; margin-bottom: var(--sc-6); }
.w--hero .lede { max-width: 46ch; }
/* the gust: seven brush strokes, drawn in on arrival, leaning on the wind */
.w--gust { left: auto; right: 4vw; top: 15vh; width: min(37vw, 600px); max-width: none; pointer-events: none; }
.gust { width: 100%; height: auto; display: block; overflow: visible; }
.js-flight .gust .g { clip-path: inset(-5% 100% -5% -2%); animation: gust 1.5s cubic-bezier(.23, 1, .32, 1) forwards; }
.js-flight .gust .g0 { animation-delay: .25s } .js-flight .gust .g1 { animation-delay: .45s } .js-flight .gust .g2 { animation-delay: .1s }
.js-flight .gust .g3 { animation-delay: .6s } .js-flight .gust .g4 { animation-delay: .7s } .js-flight .gust .g5 { animation-delay: .85s } .js-flight .gust .g6 { animation-delay: .95s }
@keyframes gust { to { clip-path: inset(-5% -3% -5% -2%); } }
.w--top    { top: 18vh; }
.w--mid    { top: 26vh; }
.w--right  { left: 52vw; right: var(--sc-gutter); max-width: none; top: 22vh; }
.w--trail  { left: auto; right: var(--sc-gutter); top: 30vh; text-align: right; max-width: min(32rem, 44vw); }
.w--trail p { margin-left: auto; }
.w--poster { left: 50%; translate: -50% 0; top: 24vh; text-align: center; max-width: min(56rem, 84vw); }
.w--poster h2 { font-size: var(--sc-t-3xl); letter-spacing: var(--sc-track-tight); }
.w--poster h2 .alt { color: var(--sc-accent); }
.w--poster p { margin-inline: auto; max-width: 48ch; }
.w--catch { left: 50%; translate: -50% 0; top: 5vh; text-align: center; max-width: min(48rem, 84vw); }
.w--catch h2 { margin-bottom: var(--sc-2); }
.w--catch p { margin-inline: auto; max-width: 60ch; }
.w--contents { left: 50%; translate: -50% 0; bottom: 4vh; max-width: min(62vw, 82vh); width: 100%; }
.contents {
  list-style: none; margin: 0; padding: var(--sc-4) 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sc-5);
  border-top: 1px solid var(--sc-hairline-strong);
}
.contents strong { display: block; font-family: var(--sc-font-display); font-weight: 600; color: var(--sc-ink); font-size: var(--sc-t-lg); }
.contents span { display: block; color: var(--sc-ink-soft); font-size: var(--sc-t-sm); margin-top: 2px; }
.w--center { left: 50%; translate: -50% 0; top: 30vh; text-align: center; max-width: min(40rem, 84vw); }
.w--center p { margin-inline: auto; }
.w--inv { color: #fbf7ec; }
.w--inv h2, .w--inv p { color: inherit; }
.w--inv a:not(.btn) { color: #9fc1b8; }
.on-deep .mark__meta { color: #9fc1b8; }
.w--finale {
  left: 50%; translate: -50% 0; top: 34vh; text-align: center;
  max-width: min(40rem, 88vw);
}
.w--finale p { margin-inline: auto; }

/* buttons */
.btn {
  display: inline-block; border-radius: var(--r-ui);
  padding: 13px 22px; font-weight: 600; text-decoration: none;
  font-size: var(--sc-t-base); line-height: 1.2;
  transition: transform 140ms var(--sc-ease-out), background-color 140ms var(--sc-ease-out), color 140ms var(--sc-ease-out);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--sc-accent); color: var(--sc-accent-ink); }
.btn--primary:hover { background: var(--deep); }
.btn--ghost { color: var(--sc-ink); box-shadow: inset 0 0 0 1px var(--sc-hairline-strong); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--sc-accent); color: var(--sc-accent); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: var(--sc-5); }

/* the finale slot the mark parks in */
.slot { display: inline-block; width: 20px; height: 20px; }
.slot img { display: block; }
.js-flight .slot img { visibility: hidden; }

/* ---- the mark: one object, nav and progress ----------------------------- */
.mark {
  position: fixed; left: 0; top: 0; width: 640px; height: 640px;
  z-index: var(--sc-z-chrome);
  transform-origin: 50% 50%;
  perspective: 1400px;
  will-change: transform, opacity;
  pointer-events: none;
}
.mark__btn {
  all: unset; display: block; width: 100%; height: 100%;
  cursor: pointer; pointer-events: auto;
  border-radius: 50%;
  transform-style: preserve-3d;
  filter: drop-shadow(0 28px 26px rgba(14, 84, 77, 0.30)) drop-shadow(0 4px 6px rgba(14, 84, 77, 0.18));
  will-change: transform;
}
.mark__btn:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 6px; }
.mark svg { width: 100%; height: 100%; overflow: visible; }
.mark__rotor, .blade { will-change: transform, filter; }
.mark__arc { opacity: 0; transition: opacity 300ms var(--sc-ease-out); }
.mark.is-docked .mark__arc { opacity: 1; }

.mark__meta {
  position: fixed; right: max(16px, env(safe-area-inset-right)); top: calc(24px + var(--dock, 56px) + env(safe-area-inset-top)); z-index: var(--sc-z-chrome);
  font-family: var(--sc-font-mono); font-size: 11px;
  letter-spacing: var(--sc-track-wide); text-transform: uppercase;
  color: var(--sc-ink-soft); text-align: right;
  opacity: 0; transition: opacity 300ms var(--sc-ease-out);
  pointer-events: none;
}
.mark__meta.is-on { opacity: 1; }

/* the map the mark unfolds */
.map {
  position: fixed; right: max(16px, env(safe-area-inset-right)); top: calc(48px + var(--dock, 56px) + env(safe-area-inset-top)); z-index: var(--sc-z-chrome);
  background: var(--sc-canvas);
  border: 1px solid var(--sc-hairline-strong); border-radius: var(--r-plate);
  box-shadow: var(--sc-e2);
  padding: 8px; min-width: 200px;
}
.map[hidden] { display: none; }
.map button, .map a {
  all: unset; display: block; width: 100%; box-sizing: border-box;
  padding: 11px 14px; min-height: 44px; border-radius: var(--r-ui); cursor: pointer;
  font-family: var(--sc-font-text); font-size: var(--sc-t-sm);
  color: var(--sc-ink);
}
.map button:hover, .map a:hover { background: var(--sc-surface); }
.map button:focus-visible, .map a:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: -2px; }
.map [aria-current="true"] { color: var(--sc-accent); font-weight: 600; }
.map [aria-current="true"]::before { content: "◈ "; }
.map hr { border: 0; border-top: 1px solid var(--sc-hairline); margin: 8px 4px; }

/* ---- the appendix: plain, printed, crawlable ---------------------------- */
.appendix {
  position: relative; z-index: 40;
  background: var(--sc-canvas);
  border-top: 1px solid var(--sc-hairline);
}
.apw { max-width: 68rem; margin-inline: auto; padding: var(--sc-9) var(--sc-gutter); }
.appendix h2 {
  font-family: var(--sc-font-display); font-weight: 600;
  font-size: var(--sc-t-xl); letter-spacing: var(--sc-track-snug);
  margin: 0 0 var(--sc-2); color: var(--sc-ink);
}
.appendix .sect-lede { margin: 0 0 var(--sc-7); color: var(--sc-ink-soft); }

.plans { display: grid; grid-template-columns: 1fr 1.15fr; gap: var(--sc-5); align-items: start; }
.plan {
  border: 1px solid var(--sc-hairline); border-radius: var(--r-plate);
  padding: var(--sc-6);
}
.plan--pro { border-color: var(--sc-accent); box-shadow: var(--sc-e1); }
.plan__tag {
  display: inline-block; margin: 0 0 var(--sc-3);
  font-family: var(--sc-font-mono); font-size: var(--sc-t-xs);
  letter-spacing: var(--sc-track-wide); text-transform: uppercase;
  color: var(--sc-accent);
}
.plan h3 { font-family: var(--sc-font-display); font-size: var(--sc-t-lg); margin: 0; color: var(--sc-ink); }
.plan .price { font-family: var(--sc-font-display); font-size: var(--sc-t-2xl); font-weight: 600; color: var(--sc-ink); margin: var(--sc-2) 0 0; }
.plan .price span { font-size: var(--sc-t-base); font-family: var(--sc-font-text); font-weight: 500; color: var(--sc-ink-soft); }
.plan .note { margin: var(--sc-1) 0 var(--sc-4); color: var(--sc-ink-soft); font-size: var(--sc-t-sm); }
.plan ul { list-style: none; margin: 0 0 var(--sc-5); padding: 0; }
.plan li { padding: 8px 0 8px 26px; position: relative; color: var(--sc-ink-soft); border-top: 1px solid var(--sc-hairline); }
.plan li::before { content: "✓"; position: absolute; left: 2px; color: var(--sc-accent); }
.plan .btn { display: block; text-align: center; }
.plan .btn + .btn { margin-top: 10px; }
.plan-note { font-size: var(--sc-t-sm); color: var(--sc-ink-soft); margin: var(--sc-4) 0 0; }
.plans-micro { text-align: center; color: var(--sc-ink-soft); font-size: var(--sc-t-sm); margin-top: var(--sc-6); }

.faq { border-top: 1px solid var(--sc-hairline); }
.faq details { border-bottom: 1px solid var(--sc-hairline); }
.faq summary {
  cursor: pointer; padding: var(--sc-4) 0; font-weight: 600; color: var(--sc-ink);
  list-style: none; position: relative; padding-right: 34px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; color: var(--sc-accent); font-family: var(--sc-font-mono); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 var(--sc-4); color: var(--sc-ink-soft); max-width: var(--sc-measure); }
.faq a { color: var(--sc-accent); }

/* footer */
.foot { background: var(--sc-surface); border-top: 1px solid var(--sc-hairline); }
.foot .apw { padding-block: var(--sc-8); }
.foot__top { display: flex; gap: var(--sc-8); flex-wrap: wrap; justify-content: space-between; }
.foot__brand img { width: 26px; height: 26px; border-radius: 22%; }
.foot__brand p { color: var(--sc-ink-soft); font-size: var(--sc-t-sm); margin: 10px 0 0; max-width: 24ch; }
.fcols { display: flex; gap: clamp(1.5rem, 4vw, 4rem); flex-wrap: wrap; }
.fcol h4 {
  font-family: var(--sc-font-mono); font-size: var(--sc-t-xs); font-weight: 500;
  letter-spacing: var(--sc-track-wide); text-transform: uppercase;
  color: var(--sc-ink-soft); margin: 0 0 var(--sc-3);
}
.fcol a { display: block; color: var(--sc-ink); text-decoration: none; font-size: var(--sc-t-sm); padding: 4px 0; }
.fcol a:hover { color: var(--sc-accent); text-decoration: underline; }
.foot__legal { margin-top: var(--sc-7); padding-top: var(--sc-4); border-top: 1px solid var(--sc-hairline); color: var(--sc-ink-soft); font-size: var(--sc-t-sm); }

/* ---- no-JS: the flight needs its pilot ---------------------------------- */
.nojs-hero { padding: var(--sc-9) var(--sc-gutter) 0; max-width: 68rem; margin-inline: auto; }
.nojs-hero h1 { font-family: var(--sc-font-display); font-size: var(--sc-t-2xl); color: var(--sc-ink); margin: 0 0 var(--sc-3); }
.nojs-hero p { color: var(--sc-ink-soft); max-width: var(--sc-measure); }

/* ---- mobile ------------------------------------------------------------- */
@media (max-width: 860px) {
  .w { left: var(--sc-gutter); right: var(--sc-gutter); max-width: none; }
  .w h2 { font-size: var(--sc-t-xl); }
  .w p { font-size: var(--sc-t-sm); }
  .w--hero  { top: calc(var(--dock, 56px) + 56px + env(safe-area-inset-top)); bottom: auto; }
  .w--hero h1 { font-size: clamp(2.3rem, 1.2rem + 5.4vw, 2.9rem); }
  .w--gust { left: var(--sc-gutter); right: auto; top: calc(10px + env(safe-area-inset-top)); width: auto; }
  .gust { height: 92px; width: auto; }
  .w--top, .w--mid, .w--right, .w--trail { top: calc(var(--dock, 56px) + 64px + env(safe-area-inset-top)); left: var(--sc-gutter); right: var(--sc-gutter); text-align: left; max-width: none; }
  .w--trail p { margin-left: 0; }
  .w--poster { top: calc(var(--dock, 56px) + 80px + env(safe-area-inset-top)); left: var(--sc-gutter); right: var(--sc-gutter); translate: none; max-width: none; text-align: left; }
  .w--poster h2 { font-size: var(--sc-t-2xl); }
  .w--poster p { margin-inline: 0; }
  .w--catch { top: calc(var(--dock, 56px) + 60px + env(safe-area-inset-top)); left: var(--sc-gutter); right: var(--sc-gutter); translate: none; max-width: none; text-align: left; }
  .w--catch p { margin-inline: 0; }
  .w--contents { left: var(--sc-gutter); right: var(--sc-gutter); translate: none; max-width: none; width: auto; bottom: 3vh; }
  .contents { grid-template-columns: 1fr 1fr; gap: var(--sc-3) var(--sc-4); padding-top: var(--sc-3); }
  .contents strong { font-size: var(--sc-t-base); }
  .contents span { font-size: var(--sc-t-xs); }
  .w--center { top: calc(var(--dock, 56px) + 80px + env(safe-area-inset-top)); left: var(--sc-gutter); right: var(--sc-gutter); translate: none; max-width: none; text-align: left; }
  .w--center p { margin-inline: 0; }
  .w--finale { top: 26vh; }
  .plate--note { left: 4vw; right: 4vw; width: auto; max-width: 48vh; margin-inline: auto; top: 56%; transform: translateY(-50%); }
  .plate--dict { left: 8vw; right: 8vw; width: auto; max-width: 44vh; margin-inline: auto; top: 70%; bottom: auto; transform: translateY(-50%); }
  .plate--todo { left: 4vw; right: 4vw; width: auto; max-width: 60vh; margin-inline: auto; top: 72%; bottom: auto; transform: translateY(-50%); }
  .plate__cap { display: none; }
  .mark__meta { right: max(12px, env(safe-area-inset-right)); }
  .map { right: max(12px, env(safe-area-inset-right)); }
  .w--finale { left: var(--sc-gutter); right: var(--sc-gutter); translate: none; max-width: none; }
  .plans { grid-template-columns: 1fr; }
}

/* ---- reduced motion: the story on still paper --------------------------- */
@media (prefers-reduced-motion: reduce) {
  .plate { clip-path: none !important; }
  .mark { transform: none !important; left: auto; top: 16px; right: 16px; width: 56px; height: 56px; }
  .mark__btn { transform: none !important; filter: none; }
  .mark__arc { opacity: 1; }
  .mark__meta { opacity: 1; }
}
