/* Filed's site: the app's own desk. Dark walnut under everything (the app's Walnut texture, darkened as the app
   darkens it), cream paper for whatever you read, the kraft folder for the ask, the stamp inks for accents, serif heads. */
:root {
  --wood: #24170f;
  --cream: #f5ebd9;
  --cream-2: rgba(245, 235, 217, 0.76);
  --cream-3: rgba(245, 235, 217, 0.18);
  --amber: #e9c98f;
  --paper: #fbf9f4;
  --paper-2: #f4efe7;
  --ink: #1c1b19;
  --pencil: #574f47;
  --rule: #dbd4c7;
  --link: #29549e;
  --serif: "New York", ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --col: min(1180px, calc(100vw - 48px));
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--wood); color: var(--cream); font: 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
/* The desk stays put while the paper moves over it. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 80% at 28% 0%, rgba(255, 214, 150, 0.07), transparent 55%),
    linear-gradient(rgba(22, 13, 7, 0.5), rgba(22, 13, 7, 0.62)),
    url("/tex/walnut.webp") center / cover no-repeat, var(--wood);
}
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; text-wrap: balance; }
p { text-wrap: pretty; }
.eyebrow { margin: 0 0 14px; font: 700 12px/1.2 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); }

/* Nav */
.pill {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 20;
  display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 12px; border-radius: 999px;
  background: rgba(30, 19, 11, 0.78); border: 1px solid var(--cream-3);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); white-space: nowrap;
}
.pill a { text-decoration: none; }
.pill-brand { display: flex; align-items: center; gap: 8px; margin-right: 8px; font: 600 17px/1 var(--serif); color: var(--cream); }
.pill-brand img { border-radius: 6px; display: block; }
.pill-links { display: flex; }
.pill-links a { padding: 8px 12px; border-radius: 999px; font-size: 14px; color: var(--cream-2); }
.pill-links a:hover { color: var(--cream); background: rgba(245, 235, 217, 0.08); }
.pill-go { margin-left: 4px; padding: 8px 14px; border-radius: 999px; background: var(--cream); color: var(--ink); font-size: 14px; font-weight: 600; }
.pill-go:hover { background: #fff; }

/* Shared */
.appstore { display: inline-flex; border-radius: 8px; }
.appstore img { display: block; height: 46px; width: auto; }
.appstore:hover { opacity: 0.88; }
.btn {
  display: inline-flex; align-items: center; height: 46px; padding: 0 18px; border-radius: 8px; text-decoration: none;
  font-size: 15px; font-weight: 600; color: var(--cream); border: 1px solid rgba(245, 235, 217, 0.32); background: rgba(245, 235, 217, 0.05);
}
.btn:hover { background: rgba(245, 235, 217, 0.12); }
.soon { margin: 12px 0 0; font-size: 13px; color: var(--cream-2); }
.soon-ink { color: #4a3520; }
.phone {
  position: relative; border: 7px solid #0e0c0b; border-radius: 48px; overflow: hidden; background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 40px 90px rgba(0, 0, 0, 0.55);
}
.phone img { display: block; width: 100%; height: auto; }

/* Hero */
.hero {
  width: var(--col); margin: 0 auto; padding: 132px 0 40px; min-height: min(100vh, 980px);
  display: grid; grid-template-columns: 1.08fr 0.92fr; align-items: center; gap: 48px; overflow-x: clip;
}
.hero h1 { margin: 0; font-size: clamp(46px, 6.2vw, 84px); line-height: 0.98; color: var(--cream); text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3); }
.hero-sub { margin: 26px 0 0; max-width: 32em; font-size: 19px; line-height: 1.55; color: var(--cream-2); }
.hero-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.stamps { list-style: none; margin: 36px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.stamps li {
  padding: 7px 11px; background: var(--paper); color: var(--stamp, var(--ink)); border: 2px solid currentColor;
  font: 800 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}
.stamps li:nth-child(1) { transform: rotate(-2.5deg); }
.stamps li:nth-child(2) { transform: rotate(1.5deg); }
.stamps li:nth-child(3) { transform: rotate(-1deg); }
.hero-phone { position: relative; margin: 0; justify-self: center; width: min(340px, 100%); transform: rotate(2deg); }
.hero-phone::before {
  content: ""; position: absolute; inset: -12% -30%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 210, 140, 0.16), transparent);
}

/* Bands */
.band { width: var(--col); margin: 0 auto; padding-top: 112px; }
.head { margin-bottom: 40px; }
.head h2 { margin: 0; font-size: clamp(34px, 4.2vw, 54px); line-height: 1.04; color: var(--cream); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.step, .wide, .ledger, .sheet {
  background: var(--paper); color: var(--ink); border-radius: 4px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 24px 60px rgba(0, 0, 0, 0.38);
}
.step { padding: 0 28px 32px; overflow: hidden; }
.step-shot {
  margin: 0 -28px 26px; height: 400px; overflow: hidden; display: flex; justify-content: center; padding-top: 34px;
  background: var(--paper-2); border-bottom: 1px solid var(--rule);
}
.step-shot .phone { width: 72%; height: max-content; border-width: 6px; border-radius: 40px; box-shadow: 0 24px 50px rgba(40, 25, 10, 0.3); }
.step-label { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font: 800 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--stamp, var(--ink)); }
/* Each card's accent is its stamp ink, as the app stamps a category. */
.step-label span { display: inline-grid; place-items: center; min-width: 30px; height: 24px; padding: 0 6px; border: 2px solid currentColor; background: var(--paper); transform: rotate(-3deg); }
.step h3, .wide h3 { margin: 0 0 10px; font-size: 28px; line-height: 1.1; color: var(--ink); }
.step p:not(.step-label), .wide p:not(.step-label) { margin: 0; font-size: 16px; line-height: 1.6; color: var(--pencil); }

.wide { margin-top: 24px; display: grid; grid-template-columns: 1.1fr 0.9fr; overflow: hidden; }
.wide-words { padding: 52px 52px 48px; align-self: center; }
.wide h3 { font-size: clamp(30px, 3.4vw, 40px); }
.wide-words > p:not(.step-label) { font-size: 17px; max-width: 34em; }
.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; font-size: 15px; color: var(--ink); }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 800;
}
.wide-shot { margin: 0; height: 480px; overflow: hidden; display: flex; justify-content: center; padding-top: 44px; background: var(--paper-2); border-left: 1px solid var(--rule); }
.wide-shot .phone { width: min(300px, 74%); height: max-content; border-width: 6px; border-radius: 42px; box-shadow: 0 24px 50px rgba(40, 25, 10, 0.3); }

/* Guides as a ledger page: a red margin rule, blue lines. */
.ledger { overflow: hidden; background-image: linear-gradient(90deg, transparent 118px, rgba(179, 38, 30, 0.35) 118px, rgba(179, 38, 30, 0.35) 119px, transparent 119px); }
.row { display: grid; grid-template-columns: 118px 1fr 32px; align-items: center; gap: 0; padding: 26px 24px 26px 0; text-decoration: none; color: var(--ink); border-bottom: 1px solid rgba(41, 84, 158, 0.2); }
.row:last-child { border-bottom: 0; }
.row:hover { background-color: rgba(244, 239, 231, 0.7); }
.row-cat { padding-left: 24px; font: 700 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--pencil); }
.row-main { padding-left: 28px; display: grid; gap: 4px; }
.row-main strong { font: 600 22px/1.2 var(--serif); }
.row-main span { font-size: 15px; color: var(--pencil); }
.row-chev { font-size: 26px; color: var(--pencil); text-align: right; }

/* The ask, on the kraft folder. */
.get { width: var(--col); margin: 0 auto; padding: 120px 0 96px; }
.folder {
  position: relative; max-width: 940px; margin: 0 auto; padding: 84px 56px 60px; text-align: center; color: var(--ink);
  background: linear-gradient(rgba(255, 240, 210, 0.08), rgba(80, 50, 20, 0.12)), url("/tex/kraft.webp") center / 600px auto, #c9a46e;
  clip-path: polygon(0 34px, 60% 34px, 63.5% 0, 100% 0, 100% 100%, 0 100%);
  filter: drop-shadow(0 26px 50px rgba(0, 0, 0, 0.45));
}
.folder-tab { position: absolute; top: 8px; right: 22px; margin: 0; font: 700 12px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: #4a3520; }
.folder h2 { margin: 0 auto; max-width: 15em; font-size: clamp(34px, 4.6vw, 58px); line-height: 1.02; color: var(--ink); }
.folder-sub { margin: 20px auto 0; max-width: 36em; font-size: 17px; line-height: 1.55; color: #3a2a1a; }
.folder-cta { margin-top: 30px; display: flex; justify-content: center; }

/* Reading pages: one paper sheet on the desk. */
.desk { padding: 120px 20px 88px; }
.sheet { max-width: 780px; margin: 0 auto; padding: 52px 64px 44px; }
.crumbs { display: flex; gap: 8px; margin-bottom: 26px; font: 700 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--pencil); }
.crumbs a { color: var(--pencil); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.sheet h1 { margin: 0; font-size: clamp(34px, 5vw, 50px); line-height: 1.06; color: var(--ink); }
.sheet .lead { margin: 20px 0 0; font-size: 19px; line-height: 1.55; color: #3d3731; }
.sheet section { margin-top: 36px; }
.sheet h2 { margin: 0 0 10px; font-size: 25px; line-height: 1.2; color: var(--ink); }
.sheet p { margin: 0 0 14px; font-size: 17px; line-height: 1.65; color: #2e2a26; }
.sheet ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 17px; line-height: 1.6; color: #2e2a26; }
.sheet a { color: var(--link); text-underline-offset: 2px; }
.table { overflow-x: auto; margin: 6px 0 8px; }
.sheet table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.sheet th { text-align: left; padding: 10px 12px 10px 0; font: 700 11px/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--pencil); border-bottom: 2px solid var(--ink); }
.sheet td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--rule); vertical-align: top; color: #2e2a26; }
.sheet td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
.sheet td:nth-child(2) { font-family: var(--mono); font-size: 14px; }
.fine { margin-top: 36px !important; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 13px !important; color: var(--pencil) !important; }
.cta {
  margin-top: 40px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 22px 24px; border-radius: 4px; color: var(--ink);
  background: linear-gradient(rgba(255, 240, 210, 0.08), rgba(80, 50, 20, 0.1)), url("/tex/kraft.webp") center / 600px auto, #c9a46e;
}
.cta img { border-radius: 13px; display: block; }
.cta strong { display: block; font: 600 21px/1.2 var(--serif); }
.cta span { display: block; font-size: 15px; color: #3a2a1a; }
.cta-go { text-align: center; }
.cta-go .soon { margin-top: 6px; font-size: 12px; }

/* Footer */
.foot {
  width: var(--col); margin: 0 auto; padding: 28px 0 44px; border-top: 1px solid var(--cream-3);
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; font-size: 14px; color: var(--cream-2);
}
.foot a { text-decoration: none; color: var(--cream-2); }
.foot a:hover { color: var(--cream); }
.foot-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--cream) !important; }
.foot-brand svg { width: 18px; height: 18px; }
.foot-nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 20px; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; text-align: center; min-height: 0; padding-top: 116px; gap: 52px; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta, .stamps { justify-content: center; }
  .hero-phone { width: min(320px, 78vw); }
  .steps { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .wide { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .wide-words { padding: 36px 28px 32px; }
  .wide-shot { height: 420px; border-left: 0; border-top: 1px solid var(--rule); }
  .ledger { max-width: 720px; margin: 0 auto; }
  .head { text-align: center; }
}
@media (max-width: 640px) {
  .pill-links { display: none; }
  .pill { gap: 14px; }
  .band { padding-top: 88px; }
  .step-shot { height: 360px; }
  .ledger { background-image: none; }
  .row { grid-template-columns: 1fr 24px; padding: 22px 18px 22px 0; }
  .row-cat { display: none; }
  .row-main { padding-left: 20px; }
  .row-main strong { font-size: 20px; }
  .get { padding: 88px 0 72px; }
  .folder { padding: 70px 22px 44px; clip-path: polygon(0 30px, 46% 30px, 52% 0, 100% 0, 100% 100%, 0 100%); }
  .folder-tab { right: 14px; }
  .desk { padding: 92px 12px 64px; }
  .sheet { padding: 34px 22px 28px; }
  .sheet td:first-child { white-space: normal; }
  .cta { grid-template-columns: auto 1fr; }
  .cta-go { grid-column: 1 / -1; }
  .foot { justify-content: center; text-align: center; }
  .foot-nav { margin-left: 0; justify-content: center; }
}
