/* Crewbunk home page, in the app's "paper slip" look (lib/ui/slip.dart):
   black and white, form boxes, typewriter figures, ballpoint blue. */
@font-face { font-family: Inter; src: url(/fonts/Inter-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url(/fonts/Inter-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Inter; src: url(/fonts/Inter-SemiBold.woff2) format("woff2"); font-weight: 600 800; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(/fonts/IBMPlexMono-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(/fonts/IBMPlexMono-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(/fonts/IBMPlexMono-SemiBold.woff2) format("woff2"); font-weight: 600 800; font-display: swap; }

:root {
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
/* Slip.day and Slip.night */
.day, :root {
  --ground: #E9ECF1; --panel: #FFFFFF; --ink: #15171C; --hair: #C9CED8; --label: #535B6B; --value: #1B3FC4;
  --tint: #E3E7F7;
}
.night {
  --ground: #0E1014; --panel: #171A20; --ink: #EEF0F4; --hair: #2B303A; --label: #A3ABBA; --value: #9DB4FF;
  --tint: #1D2233;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: #0E1014; color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
section { background: var(--ground); color: var(--ink); position: relative; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; color: #15171C; padding: 10px 14px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--value); outline-offset: 3px; }

.eyebrow { font: 500 13px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--value); margin-bottom: 18px; }
h2 { font-weight: 600; font-size: clamp(32px, 4.6vw, 54px); line-height: 1.05; letter-spacing: -.03em; text-wrap: balance; }
h2 em, h1 em { font-style: normal; color: var(--value); }
h3 { font-weight: 600; font-size: 20px; line-height: 1.25; letter-spacing: -.01em; }
.lede-sm { color: var(--label); font-size: 19px; max-width: 34em; margin-top: 18px; text-wrap: pretty; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ── Nav ── */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; color: #EEF0F4; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(14, 16, 20, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-color: #2B303A; }
.nav-in { max-width: 1160px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; letter-spacing: -.02em; text-decoration: none; margin-right: auto; }
.brand svg { width: 38px; height: auto; }
.nav nav { display: flex; gap: 26px; }
.nav nav a { text-decoration: none; font-size: 15px; color: #A3ABBA; transition: color .2s; }
.nav nav a:hover { color: #EEF0F4; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px;
  background: #EEF0F4; color: #15171C; font-weight: 600; font-size: 15px; text-decoration: none; border: 2px solid #EEF0F4; transition: transform .2s var(--ease), background .2s; }
.btn:hover { transform: translateY(-2px); background: #fff; }

/* ── Hero ── */
.hero { min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: 120px 0 90px; }
.drift { position: absolute; inset: -4% -2%; display: flex; gap: 3.5%; justify-content: center; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 62% 70% at 42% 48%, transparent 30%, #000 100%);
  mask-image: radial-gradient(ellipse 62% 70% at 42% 48%, transparent 30%, #000 100%); opacity: .5; }
.drift .col { flex: 1 1 0; min-width: 0; }
.drift .run { animation: drift var(--t, 90s) linear infinite; will-change: transform; }
.drift .col:nth-child(even) .run { animation-direction: reverse; }
.drift .ln { border-bottom: 1px solid #20242c; padding: 14px 0 12px; white-space: nowrap; overflow: hidden; }
.drift .ln small { display: block; font-size: 12px; font-weight: 500; color: #4b5261; }
.drift .ln b { font: 600 clamp(18px, 2vw, 27px)/1.25 var(--mono); color: #353d5c; }
@keyframes drift { to { transform: translateY(-50%); } }

.hero-in > * { min-width: 0; }
.hero-in { position: relative; width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
h1 { font-weight: 600; font-size: clamp(46px, 7.4vw, 92px); line-height: .98; letter-spacing: -.045em; }
.hero .lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--label); max-width: 30em; margin-top: 26px; text-wrap: pretty; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.store { display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 22px 0 16px; border-radius: 12px; text-decoration: none;
  background: #EEF0F4; color: #15171C; border: 2px solid #EEF0F4; font-weight: 600; font-size: 18px; line-height: 1.15; transition: transform .25s var(--ease), box-shadow .25s; }
.store:hover { transform: translateY(-3px); box-shadow: 0 14px 34px -12px rgba(157, 180, 255, .55); }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 11px; font-weight: 500; opacity: .7; }
.store.ghost { background: transparent; color: #EEF0F4; }
.fine { font: 500 12.5px/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #7d8696; margin-top: 22px; }

.hero-phone { position: relative; justify-self: center; transform: translateY(calc(var(--s, 0) * -.05px)); }
.phone { width: min(310px, 72vw); border-radius: 46px; padding: 9px; background: #000; box-shadow: 0 0 0 1.5px #3a404c, 0 50px 90px -30px rgba(0, 0, 0, .8), 0 0 120px -30px rgba(157, 180, 255, .28); position: relative; }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 84px; height: 24px; margin-left: -42px; border-radius: 14px; background: #000; z-index: 2; }
.phone img { border-radius: 38px; width: 100%; aspect-ratio: 1290 / 2796; object-fit: cover; }
.hero-phone .phone { animation: bob 7s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-12px) rotate(-.6deg); } }
.float { position: absolute; z-index: 3; background: var(--panel); color: var(--ink); border: 2px solid var(--ink); border-radius: 10px; padding: 9px 14px; font-size: 13px; font-weight: 500; white-space: nowrap; box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .7); animation: bob2 6s ease-in-out infinite; }
.float small { display: block; color: var(--label); font-size: 11.5px; }
.float b { font: 600 19px/1.2 var(--mono); color: var(--value); }
.f1 { top: 16%; left: -74px; }
.f2 { bottom: 20%; right: -66px; animation-delay: -3s; }
.f2 b { font-size: 26px; color: var(--ink); }
@keyframes bob2 { 50% { transform: translateY(9px); } }
.blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: .25; } }

.rise { opacity: 0; transform: translateY(26px); animation: rise .9s var(--ease) var(--d, 0s) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.in { opacity: 1; transform: none; }

.scroll-cue { position: absolute; bottom: 26px; left: 50%; width: 26px; height: 42px; margin-left: -13px; border: 2px solid #3a404c; border-radius: 14px; }
.scroll-cue span { position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #9DB4FF; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(-3px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ── Language band ── */
.band { overflow: hidden; border-block: 1px solid var(--hair); padding: 16px 0; background: var(--panel); }
.track { display: flex; gap: 44px; width: max-content; animation: slide 46s linear infinite; font: 500 14px/1 var(--mono); letter-spacing: .06em; color: var(--label); white-space: nowrap; }
.track span::before { content: "·"; margin-right: 44px; color: var(--value); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ── Try it ── */
.try { padding: 110px 0 120px; }
.try-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 54px; align-items: start; }
.cap { min-height: 24px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--label); margin-bottom: 10px; }
.cap span { font-weight: 400; letter-spacing: 0; text-transform: none; font-size: 15px; }
.box { background: var(--panel); border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; box-shadow: 0 30px 60px -40px rgba(21, 23, 28, .45); }
.two { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 2px solid var(--ink); }
.two > * + * { border-left: 2px solid var(--ink); }
.field { display: block; padding: 14px 18px 12px; transition: background .2s; }
.field:focus-within { background: var(--tint); box-shadow: inset 0 -4px 0 var(--value); }
.field small, .mini small { display: block; font-size: 13px; font-weight: 600; color: var(--label); }
.field input { font: 500 clamp(30px, 4.4vw, 40px)/1.2 var(--mono); color: var(--ink); background: none; border: 0; padding: 0; width: 100%; outline: none; min-height: 48px; }
.field input::-webkit-calendar-picker-indicator { opacity: .35; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--hair); min-height: 68px; }
.row > span:first-child { margin-right: auto; }
.row.off .step { opacity: .3; pointer-events: none; }
.step { display: flex; align-items: center; gap: 4px; transition: opacity .2s; }
.step output { font: 500 24px/1 var(--mono); min-width: 3.3em; text-align: center; }
.step button { width: 48px; height: 48px; border-radius: 10px; border: 2px solid var(--ink); background: var(--panel); color: var(--ink); font: 500 24px/1 var(--mono); cursor: pointer; transition: transform .12s, background .15s, color .15s; }
.step button:hover { background: var(--ink); color: var(--panel); }
.step button:active { transform: scale(.92); }
.switch { width: 58px; height: 34px; border-radius: 17px; border: 2px solid var(--ink); background: var(--panel); position: relative; cursor: pointer; padding: 0; transition: background .25s; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); transition: transform .3s var(--ease), background .25s; }
.switch[aria-checked="true"] { background: var(--ink); }
.switch[aria-checked="true"]::after { transform: translateX(24px); background: var(--panel); }
.minis { display: grid; grid-template-columns: 1fr 1fr; }
.minis > * + * { border-left: 1px solid var(--hair); }
.mini { padding: 12px 18px 14px; }
.mini .step { margin-top: 6px; justify-content: space-between; }
.mini .step output { font-size: 20px; white-space: nowrap; min-width: 0; flex: 1; }
.mini .step button { width: 42px; height: 42px; }

.slip { padding: 6px 22px 10px; min-height: 300px; }
.slip .ln { padding: 12px 0 10px; border-bottom: 2px solid var(--hair); }
.slip .ln:last-child { border-bottom: 0; }
.slip .ln small { display: block; font-size: 14px; font-weight: 600; color: var(--label); }
.slip .ln b { display: block; font: 500 clamp(26px, 3.6vw, 34px)/1.2 var(--mono); color: var(--value); }
.slip .ln.tick b { animation: tick .45s var(--ease); }
@keyframes tick { 0% { opacity: 0; transform: translateY(9px); } }
.slip .ln.new { animation: tick .45s var(--ease); }
.slip .warn { padding: 40px 0; color: var(--label); }
.bar { display: flex; height: 38px; margin-top: 22px; border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; background: var(--panel); }
.bar i { flex: 0 1 0; min-width: 0; transition: flex-grow .5s var(--ease), background .3s; }
.bar .rest { background: var(--value); }
.bar .gap { background: transparent; }
.bar .mid, .bar .svc { background: repeating-linear-gradient(135deg, var(--ink) 0 2px, transparent 2px 7px); }
.bar .svc { background: var(--ink); }
.bar-ends { display: flex; justify-content: space-between; font: 500 13px/1 var(--mono); color: var(--label); margin-top: 8px; }
.key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: 13px; color: var(--label); }
.key i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; border: 1.5px solid var(--ink); vertical-align: -2px; margin-right: 6px; }
.key .rest { background: var(--value); border-color: var(--value); }
.key .mid { background: repeating-linear-gradient(135deg, var(--ink) 0 1.5px, transparent 1.5px 5px); }
.key .svc { background: var(--ink); }

/* ── Story (pinned phone) ── */
.story { transition: background .6s, color .6s; padding: 40px 0; }
.story * { transition: color .6s, border-color .6s; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.chapter { min-height: 92vh; display: flex; flex-direction: column; justify-content: center; opacity: .25; transition: opacity .5s; }
.chapter.active { opacity: 1; }
.chapter p:not(.eyebrow) { color: var(--label); font-size: 19px; margin-top: 20px; max-width: 30em; text-wrap: pretty; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .32em; width: 16px; height: 16px; border: 2px solid var(--ink); border-radius: 4px; }
.ticks li::after { content: ""; position: absolute; left: 5px; top: .28em; width: 6px; height: 12px; border: solid var(--value); border-width: 0 3px 3px 0; transform: rotate(40deg); }
.stage { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
.phone-lg { width: min(330px, 36vh); }
.phone-lg .shot { position: absolute; inset: 9px; width: calc(100% - 18px); opacity: 0; transform: scale(1.03); transition: opacity .55s, transform .7s var(--ease); }
.phone-lg .shot:first-of-type { position: relative; inset: auto; width: 100%; }
.phone-lg .shot.on { opacity: 1; transform: none; }
.stage-dots { display: flex; gap: 8px; }
.stage-dots i { width: 8px; height: 8px; border-radius: 4px; background: var(--hair); transition: width .4s var(--ease), background .4s; }
.stage-dots i.on { width: 26px; background: var(--value); }
.inline-shot { display: none; }

/* ── Features ── */
.features { padding: 120px 0; }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 54px; }
.tile { color: var(--ink); background: var(--panel); border: 2px solid var(--ink); border-radius: 12px; padding: 26px; transition: transform .35s var(--ease), box-shadow .35s, opacity .8s var(--ease), background .5s, color .5s, border-color .5s; }
.tile.in:hover { transform: translateY(-5px); box-shadow: 0 26px 50px -30px rgba(21, 23, 28, .55); }
.tile p { color: var(--label); font-size: 15.5px; margin-top: 8px; }
.tile .tag { font: 500 12px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--value); margin-bottom: 14px; }
.tile.wide { grid-column: span 2; }
.clocks { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 22px; border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; }
.clocks div { padding: 12px 14px; }
.clocks div + div { border-left: 2px solid var(--ink); }
.clocks small { display: block; font-size: 12.5px; font-weight: 600; color: var(--label); }
.clocks b { font: 500 clamp(22px, 2.6vw, 30px)/1.2 var(--mono); color: var(--value); }
.modes { display: flex; align-items: center; gap: 16px; margin-top: 22px; }
.modes .switch { pointer-events: none; }
.modes b { font: 500 30px/1 var(--mono); color: var(--value); transition: color .5s; }
.plane { display: flex; align-items: center; gap: 12px; margin-top: 22px; font: 500 13px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--label); }
.plane svg { width: 34px; height: 34px; color: var(--ink); animation: fly 5s ease-in-out infinite; }
@keyframes fly { 50% { transform: translate(8px, -5px) rotate(-4deg); } }

/* ── Price ── */
.price { padding: 0 0 120px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 54px; }
.plan { border: 2px solid var(--ink); border-radius: 12px; padding: 32px; background: var(--panel); }
.plan.dark { background: #15171C; color: #EEF0F4; --label: #A3ABBA; --value: #9DB4FF; --ink: #EEF0F4; border-color: #15171C; }
.plan .big { font: 500 clamp(40px, 5vw, 56px)/1 var(--mono); letter-spacing: -.02em; margin: 14px 0 6px; }
.plan .big small { font: 500 15px/1 var(--sans); letter-spacing: 0; color: var(--label); margin-left: 8px; }
.plan p { color: var(--label); }
.plan p.big { color: var(--ink); }

/* ── Get ── */
.get { padding: 130px 0 120px; text-align: center; overflow: hidden; }
.get .logo { width: 108px; color: #EEF0F4; margin: 0 auto 30px; }
.get .logo .moon { transform-origin: 68px 90px; animation: moon 6s ease-in-out infinite; }
@keyframes moon { 50% { transform: translateX(46px) rotate(18deg); } }
.get h2 { font-size: clamp(38px, 6vw, 72px); }
.get .stores { justify-content: center; }
.get .note { max-width: 44em; margin: 46px auto 0; font-size: 14px; color: #7d8696; }

footer { background: #0E1014; color: #7d8696; border-top: 1px solid #2B303A; padding: 30px 0 44px; font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; }
footer span { margin-right: auto; }
footer a { color: #A3ABBA; text-decoration: none; }
footer a:hover { color: #EEF0F4; }

@media (max-width: 900px) {
  .nav nav { display: none; }
  .hero { padding: 104px 0 80px; }
  .hero-in { grid-template-columns: 1fr; gap: 56px; text-align: center; }
  .hero .lede { margin-inline: auto; }
  .stores { justify-content: center; }
  .f1 { top: -22px; left: -14px; } .f2 { right: -14px; }
  .drift { opacity: .32; }
  .try { padding: 80px 0; }
  .try-grid, .plans { grid-template-columns: 1fr; }
  .story-grid { grid-template-columns: 1fr; }
  .stage { display: none; }
  .chapter { min-height: 0; padding: 60px 0; opacity: 1; }
  .inline-shot { display: block; width: min(280px, 74vw); margin: 34px auto 0; border-radius: 30px; border: 8px solid #000; box-shadow: 0 0 0 1.5px #3a404c, 0 30px 60px -30px rgba(0, 0, 0, .6); }
  .bento { grid-template-columns: 1fr; }
  .tile.wide { grid-column: auto; }
  .features { padding: 80px 0; }
  .price { padding-bottom: 80px; }
  .scroll-cue { display: none; }
}
@media (max-width: 520px) {
  .minis { grid-template-columns: 1fr; }
  .minis > * + * { border-left: 0; border-top: 1px solid var(--hair); }
  .mini { display: flex; align-items: center; gap: 12px; }
  .mini small { margin-right: auto; font-size: 15px; font-weight: 400; color: var(--ink); }
  .mini .step { margin: 0; }
  .mini .step output { min-width: 3.6em; flex: none; }
}
@media (max-width: 420px) {
  .wrap, .hero-in { padding-inline: 18px; }
  .row { padding-inline: 14px; gap: 8px; }
  .step button { width: 44px; height: 44px; }
  .step output { min-width: 2.7em; font-size: 20px; }
  .row > span:first-child { font-size: 16px; }
  .field, .mini { padding-inline: 14px; }
  .slip { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rise, .reveal { opacity: 1; transform: none; }
  .hero-phone { transform: none; }
}
