/* Afterly's tokens, from the app's DesignSystem.swift: warm paper, charcoal ink, lavender, butter and iris.
   The serif is New York on Apple devices (ui-serif), as in the app, with Newsreader elsewhere. */
:root {
  color-scheme: light;
  --canvas: #f5f3ef;
  --surface: #fffdfa;
  --ink: #252525;
  --secondary: #64625f;
  --action: #2b2b2e;
  --lavender: #e2dff1;
  --butter: #f5edc8;
  --iris: #8276b6;
  --line: #dcd9d2;
  --gutter: clamp(16px, 2vw, 32px);
  --radius: clamp(20px, 2.2vw, 28px);
  --serif: ui-serif, "New York", "Newsreader", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 16px/1.5 var(--sans); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 500; line-height: 1.04; letter-spacing: -.015em; }
h2 em { font-style: normal; color: var(--secondary); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.eyebrow { display: block; margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }

/* Hero */
.hero { position: relative; margin: var(--gutter); height: calc(100svh - 2 * var(--gutter)); min-height: 640px; border-radius: var(--radius); overflow: hidden; color: #fff; background: #3a3740; }
.fades img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity 1.6s ease, transform 7s ease-out; }
.fades img.on { opacity: 1; transform: none; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgb(37 32 52 / .35), rgb(37 32 52 / 0) 28%, rgb(37 32 52 / .25) 55%, rgb(30 26 40 / .82) 100%); pointer-events: none; }
.hero-in { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; padding: clamp(20px, 3vw, 44px); }
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.wordmark { font: 500 clamp(30px, 3.2vw, 44px)/1 var(--serif); letter-spacing: -.02em; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 99px; background: var(--lavender); color: var(--ink); font-size: 14px; font-weight: 500; }
.pill svg { width: 13px; height: 13px; }
.hero-copy { margin-top: auto; max-width: 720px; }
.hero h1 { font-size: clamp(40px, 6vw, 88px); margin-bottom: 18px; }
.hero-copy > p:not(.eyebrow) { max-width: 52ch; margin: 0 0 24px; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.5; color: rgb(255 255 255 / .9); }

/* Signup */
.signup { position: relative; display: flex; flex-wrap: wrap; gap: 8px; max-width: 540px; }
.signup input[type="email"] { flex: 1 1 220px; min-width: 0; height: 56px; padding: 0 24px; border: 0; border-radius: 99px; background: var(--surface); color: var(--ink); font: 17px var(--sans); }
.signup input[type="email"]::placeholder { color: var(--secondary); }
.signup button { flex: 1 0 auto; height: 56px; padding: 0 30px; border: 0; border-radius: 99px; background: var(--action); color: #fff; font: 600 17px var(--sans); cursor: pointer; }
.hero .signup button { background: var(--lavender); color: var(--ink); }
.signup button:disabled { opacity: .55; cursor: default; }
.signup :focus-visible { outline: 3px solid var(--iris); outline-offset: 2px; }
.trap { position: absolute; left: -9999px; }
.note { flex: 0 0 100%; margin: 0; font-size: 14px; line-height: 1.4; }
.note:empty { display: none; }
.signup.done input, .signup.done button { display: none; }
.signup.done .note { font-size: clamp(16px, 1.4vw, 19px); font-weight: 600; }

/* Statement */
.statement { max-width: 1100px; padding: clamp(64px, 12vh, 150px) var(--gutter) clamp(40px, 7vh, 80px); margin: 0 auto 0 0; }
.statement .eyebrow { color: var(--secondary); }
.statement h2 { font-size: clamp(36px, 6vw, 96px); }
.statement p:not(.eyebrow) { max-width: 58ch; margin: 28px 0 0; color: var(--secondary); font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; }

/* People */
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 18px); padding: 0 var(--gutter); }
.person { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--lavender); }
.person img { width: 100%; height: 100%; object-fit: cover; }
.person figcaption { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 18px 20px; border-radius: calc(var(--radius) - 8px); background: rgb(255 253 250 / .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font: 500 clamp(17px, 1.5vw, 21px)/1.3 var(--serif); }
.person .eyebrow { margin-bottom: 8px; font-family: var(--sans); color: var(--iris); }

/* Features */
.features { padding-top: clamp(72px, 12vh, 140px); }
.features-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; padding: 0 var(--gutter) 24px; }
.features-head h2 { font-size: clamp(32px, 4vw, 60px); }
.features-head p { margin: 0; color: var(--secondary); font-size: 14px; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 18px); padding: 0 var(--gutter); }
.visual { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--lavender); isolation: isolate; }
.visual .photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.visual::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(160deg, rgb(226 223 241 / 0) 40%, rgb(130 118 182 / .45)); }
/* The phone sits in front of the photo, its bottom running off the card. */
.visual .phone { position: absolute; z-index: 2; right: 9%; top: 30%; width: 52%; height: auto; border: 5px solid #1b1b1d; border-radius: 15% / 7%; box-shadow: 0 24px 48px -12px rgb(30 26 40 / .5), 0 0 0 1px rgb(255 255 255 / .15); transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.phone-left .phone { right: auto; left: 9%; }
.feature:hover .phone { transform: translateY(-4%); }
.text { display: grid; grid-template-columns: 34px 1fr; padding: 16px 4px 28px; }
.num { padding-top: 4px; font-size: 12px; font-weight: 600; color: var(--iris); }
.text h3 { font-size: clamp(20px, 1.7vw, 25px); margin-bottom: 8px; }
.text p { grid-column: 2; margin: 0; color: var(--secondary); font-size: 15px; line-height: 1.55; }

/* Coming soon */
.soon { padding-top: clamp(56px, 10vh, 120px); }
.soon-grid { display: grid; grid-template-columns: 1.2fr repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto; gap: clamp(10px, 1.2vw, 18px); padding: 0 var(--gutter); }
.soon-photo { grid-row: span 2; position: relative; margin: 0; min-height: 420px; border-radius: var(--radius); overflow: hidden; }
.soon-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.soon-photo figcaption { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 18px 20px; border-radius: calc(var(--radius) - 8px); background: rgb(255 253 250 / .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font: 500 clamp(16px, 1.4vw, 19px)/1.35 var(--serif); }
.soon-card { display: flex; flex-direction: column; min-height: 220px; padding: clamp(22px, 2.2vw, 32px); border-radius: var(--radius); background: var(--lavender); }
.soon-card.butter { background: var(--butter); }
.soon-card h3 { margin-top: auto; font-size: clamp(24px, 2.2vw, 32px); margin-bottom: 8px; }
.soon-card p { margin: 0; color: #4a4850; font-size: 15px; line-height: 1.55; }
.tag { align-self: flex-start; margin-bottom: 28px; padding: 6px 12px; border-radius: 99px; background: var(--surface); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.soon-more { margin: 22px var(--gutter) 0; color: var(--secondary); font: 500 clamp(20px, 1.8vw, 26px)/1.3 var(--serif); }

/* Trust */
.trust { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); margin: clamp(48px, 8vh, 100px) var(--gutter) 0; border-radius: var(--radius); overflow: hidden; background: var(--lavender); }
.trust img { width: 100%; height: 100%; min-height: clamp(360px, 40vw, 580px); object-fit: cover; }
.trust-in { padding: clamp(28px, 5vw, 72px); align-self: center; }
.trust h2 { font-size: clamp(32px, 4vw, 60px); margin-bottom: 28px; }
.trust h2 em { color: var(--iris); }
.trust ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 18px; }
.trust li { padding-top: 18px; border-top: 1px solid rgb(130 118 182 / .3); color: #3d3b45; font-size: 16px; line-height: 1.55; }
.trust strong { display: block; margin-bottom: 2px; color: var(--ink); font: 500 20px/1.3 var(--serif); }

/* Final signup */
.end { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); margin: clamp(18px, 2vw, 28px) var(--gutter) var(--gutter); border-radius: var(--radius); overflow: hidden; background: var(--action); color: #fff; }
.end img { width: 100%; height: 100%; min-height: 340px; max-height: 560px; object-fit: cover; }
.end-in { padding: clamp(28px, 5vw, 72px); align-self: end; }
.end .eyebrow { color: #c9c2ea; }
.end h2 { font-size: clamp(36px, 5vw, 76px); margin-bottom: 16px; }
.end-in > p:not(.eyebrow) { margin: 0 0 22px; color: rgb(255 255 255 / .78); font-size: 17px; line-height: 1.5; }
.end .signup button { background: var(--lavender); color: var(--ink); }

.fine { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 4px var(--gutter) calc(var(--gutter) + env(safe-area-inset-bottom)); color: var(--secondary); font-size: 12px; line-height: 1.5; }
.fine span { max-width: 70ch; }

/* Privacy */
.doc { padding: var(--gutter); }
.home { display: inline-block; font: 500 34px/1 var(--serif); letter-spacing: -.02em; text-decoration: none; }
.doc main { max-width: 62ch; margin-top: clamp(48px, 9vh, 96px); padding-bottom: 48px; }
.doc h1 { font-size: clamp(36px, 5vw, 60px); margin-bottom: 24px; }
.doc h2 { font-size: 22px; margin: 32px 0 10px; }
.doc p { margin: 0 0 12px; color: var(--secondary); font-size: 16px; line-height: 1.6; }
.updated { margin-top: 32px !important; font-size: 13px !important; }

/* Motion */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .fades img { transition: none; transform: none; }
  .feature:hover .phone { transform: none; }
}

@media (max-width: 1200px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .trust, .end { grid-template-columns: 1fr; } .trust img, .end img { max-height: 420px; } }
@media (max-width: 760px) { .people { grid-template-columns: 1fr; } .person { aspect-ratio: 5 / 4; } .soon-grid { grid-template-columns: 1fr 1fr; } .soon-photo { grid-column: 1 / -1; grid-row: auto; min-height: 340px; } }
@media (max-width: 480px) { .soon-grid { grid-template-columns: 1fr; } .soon-card { min-height: 0; } }
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .features-head { display: block; } .features-head p { margin-top: 8px; }
  .pill { padding: 7px 12px; font-size: 13px; }
}
