/* Getjournaling.app landing pages: A ("Paper & ink") and B ("Darkroom").
   Colours and fonts follow the app's DESIGN tokens. */
@font-face { font-family: "Instrument Sans"; src: url("/fonts/InstrumentSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/InstrumentSans-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/InstrumentSans-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("/fonts/Caveat-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("/fonts/CourierPrime-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("/fonts/CourierPrime-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --gold: #EDC95B; --on-gold: #1D1D1D; --paper: #FBFBF8; --ink: #1D1D1D; --ink-soft: #3A3B3F;
  --muted: #5F6064; --accent: #7A5D0E; --wash: #F6ECC9; --hairline: #D6D6D6; --outline: #8E8F93;
  --sand: #EDDEC9; --stone: #F2F1EC; --night: #1D1D1D; --night-2: #2A2A2B; --night-text: #D6D6D6;
  --hand: #30527F; --postmark: #3F5A7A;
  --sans: "Instrument Sans", system-ui, sans-serif; --script: "Caveat", cursive; --mono: "Courier Prime", ui-monospace, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: #5C4609; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.1; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--paper); padding: 8px 16px; z-index: 10; }
.skip:focus { left: 8px; }
.eyebrow { font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: 0.12em; color: var(--postmark); text-transform: uppercase; }
.soft { color: var(--ink-soft); }
.small { font-size: 14px; color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.header { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-top: 24px; padding-bottom: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 20px; color: inherit; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; font-size: 15px; }
.nav a { color: inherit; text-decoration: none; }
.nav a:hover { text-decoration: underline; }

/* Buttons and forms */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px; font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; }
.button-gold { background: var(--gold); color: var(--on-gold); }
.button-gold:hover { background: #E3BC45; color: var(--on-gold); }
.button-dark { background: var(--ink); color: var(--paper); }
.button-dark:hover { background: #000; color: var(--paper); }
.button-outline { min-height: 44px; padding: 0 20px; border: 1px solid var(--outline); background: transparent; color: inherit; }
.button[disabled] { opacity: 0.7; cursor: progress; }
.waitlist { display: flex; flex-direction: column; gap: 10px; }
.waitlist label { font-weight: 600; font-size: 15px; }
.form-row { display: flex; flex-wrap: wrap; gap: 10px; }
.form-row input { flex: 1 1 220px; min-width: 0; min-height: 52px; padding: 0 18px; border: 1px solid var(--outline); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; }
.form-row input::placeholder { color: #6B6C70; }
.form-row input[aria-invalid="true"] { border-color: #B3261E; }
.form-message { min-height: 1.5em; font-size: 15px; font-weight: 600; }
.arrow-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.arrow-link:hover { color: var(--ink); text-decoration-color: var(--accent); }

/* Shared stamp cards */
.stamp-card { background: var(--paper); border-radius: 8px; padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.stamp-card svg { width: 100%; max-width: 120px; height: auto; }
.stamp-card span { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.tilt-l { transform: rotate(-2deg); } .tilt-r { transform: rotate(1.5deg); }

/* Footer */
.footer { border-top: 1px solid var(--hairline); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; padding-top: 32px; padding-bottom: 48px; font-size: 14px; color: var(--muted); }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ---------- A: Paper & ink ---------- */
.a-hero { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; padding-top: 40px; padding-bottom: 96px; }
.a-hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.a-hero h1 { font-size: clamp(42px, 6vw, 64px); line-height: 1.04; letter-spacing: -0.02em; }
.a-hero .lead { font-size: 19px; color: var(--ink-soft); max-width: 34em; }
.a-hero .waitlist { max-width: 520px; }
.a-figure { flex: 1 1 380px; min-width: 0; margin: 0; display: flex; justify-content: center; padding: 24px 0; }
.a-page { width: 380px; max-width: 100%; aspect-ratio: 95 / 140; position: relative; background: #F8F4EB; transform: rotate(1.5deg);
  background-image: repeating-linear-gradient(to bottom, transparent 0 27px, rgba(180, 197, 214, 0.45) 27px 28px);
  box-shadow: 0 2px 4px rgba(29, 29, 29, 0.08), 0 12px 32px rgba(29, 29, 29, 0.12); }
.a-print { position: absolute; left: 12%; top: 9%; width: 62%; background: var(--paper); padding: 10px 10px 14px; transform: rotate(-2deg); box-shadow: 0 2px 8px rgba(29, 29, 29, 0.18); display: flex; flex-direction: column; gap: 8px; }
.a-print img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.a-print .meta { display: flex; justify-content: space-between; align-items: flex-end; }
.a-print .place { font-family: Georgia, serif; font-size: 20px; }
.a-print .foot { font-family: var(--mono); font-size: 10px; color: var(--postmark); text-align: center; border-top: 1px solid #D9CDBB; padding-top: 6px; }
.a-receipt { position: absolute; right: -6%; bottom: 14%; width: 30%; background: #fff; padding: 10px 8px; transform: rotate(4deg); box-shadow: 0 2px 8px rgba(29, 29, 29, 0.16); font-family: var(--mono); font-size: 9px; line-height: 1.6; color: var(--ink-soft); }
.a-receipt div { display: flex; justify-content: space-between; }
.a-receipt .title { justify-content: center; font-weight: 700; }
.a-receipt .total { font-weight: 700; border-top: 1px solid var(--ink); margin-top: 4px; }
.a-note { position: absolute; left: 12%; bottom: 7%; font-family: var(--script); font-size: 30px; color: var(--hand); transform: rotate(-3deg); }
.a-band { background: var(--stone); padding: 96px 0; }
.a-section-head { display: flex; flex-direction: column; gap: 12px; max-width: 640px; margin-bottom: 48px; }
.a-section-head h2, .a-fits h2 { font-size: clamp(32px, 4vw, 40px); letter-spacing: -0.01em; }
.a-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.a-steps li { display: flex; flex-direction: column; gap: 14px; }
.a-steps img, .a-fits img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 8px; border: 1px solid var(--hairline); }
.a-steps h3 { font-size: 22px; }
.a-steps .num { font-family: var(--mono); color: var(--accent); margin-right: 8px; }
.a-fits { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; padding-top: 96px; padding-bottom: 96px; }
.a-fits img { flex: 1 1 340px; min-width: 0; max-width: 480px; }
.a-fits-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.a-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.a-points h3 { font-size: 18px; margin-bottom: 6px; }
.a-points p { font-size: 16px; color: var(--ink-soft); }
.a-wander { background: var(--sand); padding: 96px 0; }
.a-wander .wrap { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.a-wander-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.a-wander .eyebrow { color: #674B36; }
.a-wander h2 { font-size: clamp(34px, 4.5vw, 44px); letter-spacing: -0.01em; }
.a-stamps { flex: 1 1 420px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.a-privacy { display: flex; flex-wrap: wrap; gap: 32px 48px; padding-top: 96px; padding-bottom: 96px; }
.a-privacy h2 { flex: 1 1 300px; font-size: clamp(28px, 3.5vw, 36px); }
.a-privacy div { flex: 2 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 14px; color: var(--ink-soft); }
.a-join { padding-bottom: 96px; }
.a-join-card { background: #fff; border: 1px solid var(--hairline); border-radius: 16px; padding: 48px; display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: center; }
.a-join-intro { flex: 1 1 360px; min-width: 0; display: flex; gap: 20px; align-items: center; }
.a-join-intro img { width: 72px; height: 72px; border-radius: 50%; flex: none; }
.a-join-intro h2 { font-size: 32px; margin-bottom: 8px; }
.a-join-card .waitlist { flex: 1 1 400px; min-width: 0; }

/* ---------- B: Darkroom ---------- */
.b-dark { background: var(--night); color: var(--paper); }
.b-dark .nav a { color: #E2E2E2; }
.b-hero { display: flex; flex-wrap: wrap; gap: 72px; align-items: center; padding-top: 48px; padding-bottom: 112px; }
.b-hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.b-script { font-family: var(--script); font-size: 30px; color: var(--gold); }
.b-hero h1 { font-size: clamp(44px, 6.5vw, 72px); line-height: 1.02; letter-spacing: -0.025em; }
.b-hero .lead { font-size: 19px; color: var(--night-text); max-width: 32em; }
.b-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; }
.b-actions .waitlist { flex: 1 1 380px; min-width: 0; background: var(--night-2); border-radius: 16px; padding: 20px; }
.b-dark .form-row input { background: var(--night); border-color: var(--muted); color: var(--paper); }
.b-dark .form-row input::placeholder { color: #A9AAAE; }
.b-dark .small { color: #A9AAAE; }
.b-play { flex: 0 1 230px; min-width: 0; border: 1px solid var(--muted); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; color: var(--paper); text-decoration: none; }
.b-play:hover { border-color: var(--gold); color: var(--paper); }
.b-play strong { font-size: 17px; display: block; }
.b-figure { flex: 1 1 360px; min-width: 0; margin: 0; display: flex; justify-content: center; }
.b-print { width: 360px; max-width: 100%; background: var(--paper); padding: 14px 14px 18px; transform: rotate(-2.5deg); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); display: flex; flex-direction: column; gap: 10px; color: var(--ink); }
.b-print img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.b-print .meta { display: flex; justify-content: space-between; align-items: flex-end; }
.b-print .place { font-family: Georgia, serif; font-size: 26px; display: block; }
.b-print .date { font-family: var(--mono); font-size: 12px; color: var(--postmark); }
.b-print figcaption { font-family: var(--script); font-size: 26px; color: var(--hand); }
.b-features { padding-top: 104px; padding-bottom: 104px; }
.b-features-head { display: flex; flex-wrap: wrap; gap: 16px 64px; align-items: flex-end; justify-content: space-between; margin-bottom: 48px; }
.b-features-head h2 { font-size: clamp(32px, 4.5vw, 44px); letter-spacing: -0.015em; max-width: 14em; }
.b-features-head p { max-width: 26em; color: var(--ink-soft); }
.b-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.b-card { background: #fff; border: 1px solid var(--hairline); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.b-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-bottom: 1px solid var(--hairline); }
.b-card div { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.b-card h3 { font-size: 21px; }
.b-card p { font-size: 16px; color: var(--ink-soft); }
.b-card-wash { background: var(--wash); border: 0; justify-content: center; }
.b-card-wash .b-script { color: var(--ink); font-size: 34px; line-height: 1.2; }
.b-wander { background: var(--sand); padding: 104px 0; }
.b-wander .wrap { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.b-pile { flex: 1 1 360px; min-width: 0; position: relative; height: 380px; }
.b-pile .stamp-card { position: absolute; padding: 24px; box-shadow: 0 6px 18px rgba(29, 29, 29, 0.12); }
.b-pile svg { max-width: none; }
.b-pile .s1 { left: 4%; top: 4%; width: 52%; transform: rotate(-6deg); }
.b-pile .s2 { right: 4%; top: 16%; width: 46%; transform: rotate(5deg); }
.b-pile .s3 { left: 22%; bottom: 2%; width: 54%; transform: rotate(2deg); }
.b-wander-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.b-wander .eyebrow { color: #674B36; }
.b-wander h2 { font-size: clamp(34px, 4.5vw, 48px); letter-spacing: -0.015em; }
.b-wander ul { margin: 0; padding-left: 20px; font-size: 16px; line-height: 1.8; color: var(--ink-soft); }
.b-wander-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.b-wander-actions .text-link { display: inline-flex; align-items: center; min-height: 52px; padding: 0 12px; color: var(--ink); font-weight: 600; }
.b-privacy { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; padding-top: 96px; padding-bottom: 48px; }
.b-privacy h2 { font-size: 32px; }
.b-privacy p { font-size: 16px; color: var(--ink-soft); }
.b-privacy strong { color: var(--ink); }
.b-join { padding-top: 48px; padding-bottom: 104px; }
.b-join-card { background: var(--night); color: var(--paper); border-radius: 24px; padding: 64px 48px; display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: center; justify-content: space-between; }
.b-join-card h2 { font-size: clamp(30px, 4vw, 40px); letter-spacing: -0.015em; margin-bottom: 10px; }
.b-join-card p { color: var(--night-text); }
.b-join-card .waitlist { flex: 1 1 420px; min-width: 0; }
.b-join-card > div:first-child { flex: 1 1 360px; min-width: 0; }
.b-join-card .form-row input { background: var(--night-2); border-color: var(--muted); color: var(--paper); }
.b-join-card .form-row input::placeholder { color: #A9AAAE; }
.b-join-card .form-message { color: var(--gold); }

@media (max-width: 640px) {
  .a-hero, .b-hero { padding-top: 16px; padding-bottom: 64px; gap: 40px; }
  .a-band, .a-wander, .b-wander { padding: 64px 0; }
  .a-fits, .a-privacy, .b-features { padding-top: 64px; padding-bottom: 64px; }
  .a-join-card, .b-join-card { padding: 32px 20px; }
  .a-join-intro { flex-direction: column; align-items: flex-start; }
  .a-receipt { right: 2%; }
  .b-pile { height: 300px; }
  .button { width: 100%; }
  .a-wander-copy .button, .b-wander-actions .button { width: auto; }
}
