/* Wayfold landing page. The app's own identity: "Ink and pine" in the dark, warm paper in the light, Fraunces for titles. */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 500 700; font-display: swap; src: url("/fonts/fraunces.woff2") format('woff2'); }

:root {
  --bg: #10181f; --surface: #18242e; --raised: #1f2e3a; --line: #273948;
  --ink: #e8e2d2; --mute: #9aa7b3; --accent: #78a0bd; --accent-ink: #0e1820;
  --pine: #74ad8a; --cranberry: #de8486; --brass: #e0b050;
  --display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --card: 16px; --control: 10px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4efe4; --surface: #fffdf8; --raised: #f8f4ea; --line: #e2dccd;
    --ink: #16202c; --mute: #546272; --accent: #2b5573; --accent-ink: #ffffff;
    --pine: #2e684a; --cranberry: #a8454e; --brass: #96621a;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 'Inter', system-ui, 'Segoe UI', Roboto, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: var(--control); }
.skip:focus { left: 8px; z-index: 10; }

/* Header */
.top { border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.brand img { border-radius: 9px; }
.brand.small { font-size: 16px; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: var(--control); font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid var(--line); transition: transform .15s, background-color .15s, border-color .15s; }
.btn-main { background: var(--accent); color: var(--accent-ink); border-color: transparent; min-height: 48px; padding: 0 22px; }
.btn-quiet { background: var(--surface); }
.soon { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 600; color: var(--ink); }
.soon::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--brass); }
.soon-big { min-height: 48px; padding: 0 20px; font-size: 16px; }
.note { color: var(--mute); font-size: 14px; }
@media (hover: hover) {
  .btn-main:hover { transform: translateY(-1px); }
  .btn-quiet:hover { border-color: var(--accent); }
}

/* Hero */
.hero { position: relative; padding: 56px 0 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.eyebrow { color: var(--pine); font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 14px; }
h1 { font-family: var(--display); font-weight: 600; letter-spacing: -.02em; line-height: 1.05; font-size: clamp(38px, 7vw, 64px); text-wrap: balance; }
.lede { margin-top: 18px; font-size: 18px; color: var(--mute); max-width: 34em; }
.hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.hero-art { position: relative; }
/* phones lead with the phone screen; from 640 px the desktop screen; from 960 px both, overlapping */
.frame-desk { display: none; }
.hero-phone { width: min(250px, 72%); margin: 0 auto; }
.route { position: absolute; left: 0; right: 0; bottom: 8px; width: 100%; height: 72px; pointer-events: none; }
.route path { fill: none; stroke: var(--pine); stroke-width: 3; stroke-linecap: round; stroke-dasharray: .1 11; opacity: .7; vector-effect: non-scaling-stroke; }
.route circle { fill: var(--cranberry); }

/* Screens in frames */
.frame { background: var(--surface); border: 1px solid var(--line); border-radius: var(--card); overflow: hidden; box-shadow: 0 24px 60px -28px rgb(0 0 0 / .55); }
.frame-bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--raised); }
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.frame-phone { border-radius: 30px; border-width: 6px; border-color: var(--raised); background: #10181f; }
.frame-phone img { border-radius: 24px; }

/* Sections */
h2 { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; line-height: 1.15; font-size: clamp(26px, 4vw, 36px); text-wrap: balance; }
h3 { font-size: 18px; font-weight: 700; line-height: 1.3; }
.sub { margin-top: 10px; color: var(--mute); font-size: 18px; max-width: 38em; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 64px 0; }
.phones, .invite { padding: 64px 0; }

.features { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.features li { background: var(--bg); border: 1px solid var(--line); border-radius: var(--card); padding: 22px; }
.features svg { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.features h3 { margin-top: 14px; }
.features p { margin-top: 6px; color: var(--mute); }

.phone-row { margin-top: 36px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.phone-row li { text-align: center; }
.phone-row .frame { width: min(280px, 78%); margin: 0 auto; }
.phone-row h3 { margin-top: 20px; }
.phone-row p { margin: 6px auto 0; color: var(--mute); max-width: 22em; }

.story p { margin-top: 18px; font-size: 18px; }
.story h2 + p { margin-top: 24px; }
.story .sign { font-family: var(--display); font-style: italic; font-size: 20px; color: var(--pine); }

.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--mute); font-size: 14px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.foot .brand { color: var(--ink); }

/* Wider screens */
@media (min-width: 640px) {
  .frame-desk { display: block; }
  .hero-phone { display: none; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phone-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .phone-row .frame { width: min(240px, 90%); }
}
@media (min-width: 960px) {
  .hero { padding: 80px 0 110px; }
  .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; }
  .hero-phone { display: block; position: absolute; right: -14px; bottom: -44px; width: 27%; margin: 0; }
  .features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .band, .phones, .invite { padding: 88px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
