/* Affirm Away site — extends the existing landing/privacy design language.
   Palette mirrors the app: sage bg, ink text, slate accents, white cards. */
:root {
  --bg: #EAF1ED;
  --ink: #28373D;
  --muted: #5D6F76;
  --muted-2: #7C8B91;
  --card: #ffffff;
  --slate: #43585F;
  --hairline: rgba(40, 55, 61, .12);
  --danger: #A9524A;
  --ok: #3E6B4F;
}
* { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--slate); }
img { max-width: 100%; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 680px; margin: 0 auto; padding: 0 24px; }

/* header / nav */
.site-header { padding: 26px 0 0; }
.site-header .bar { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { font-family: Georgia, "Times New Roman", serif; font-size: 24px; color: var(--ink); text-decoration: none; }
.nav { display: flex; gap: 18px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

/* hero */
.hero { padding: 56px 0 8px; }
.hero h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 42px; line-height: 1.15; max-width: 720px; }
.hero .tag { color: var(--muted); margin-top: 14px; font-size: 19px; max-width: 640px; }

/* headings */
h2.section { font-family: Georgia, serif; font-weight: 400; font-size: 28px; margin: 44px 0 6px; }
.section-sub { color: var(--muted); font-size: 15px; margin-bottom: 18px; }

/* cards + grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 20px; }
.card {
  background: var(--card); border-radius: 20px; padding: 24px 26px;
  box-shadow: 0 4px 14px rgba(40, 55, 61, .08);
}
a.card { display: block; text-decoration: none; color: inherit; transition: transform .12s ease, box-shadow .12s ease; }
a.card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(40, 55, 61, .12); }
.card .kicker { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; }
.card h3 { font-family: Georgia, serif; font-weight: 400; font-size: 21px; line-height: 1.3; margin-top: 8px; }
.card .excerpt { color: var(--muted); font-size: 15px; margin-top: 8px; }
.card .meta { color: var(--muted-2); font-size: 13px; margin-top: 14px; }
.card-featured { grid-column: 1 / -1; }
.card-featured h3 { font-size: 27px; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--card);
  color: var(--slate); font-size: 14px; text-decoration: none; border: 1px solid var(--hairline);
}
.chip:hover { border-color: var(--slate); }
.chip[aria-current="page"] { background: var(--slate); color: #fff; border-color: var(--slate); }

/* breadcrumbs + answer box */
.crumbs { font-size: 13.5px; color: var(--muted-2); margin-bottom: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { color: var(--muted-2); padding: 0 2px; }
.answer-box {
  background: var(--card); border-radius: 14px; padding: 16px 20px; margin-top: 22px;
  border-left: 3px solid var(--slate);
}
.answer-box .answer-label {
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted-2); font-weight: 600;
}
.answer-box p { margin-top: 6px; font-size: 16px; }

/* article body */
.article-head { padding-top: 48px; }
.article-head h1 { font-family: Georgia, serif; font-weight: 400; font-size: 38px; line-height: 1.18; }
.article-head .subtitle { color: var(--muted); font-size: 19px; margin-top: 10px; }
.article-head .meta { color: var(--muted-2); font-size: 14px; margin-top: 14px; }
.prose { margin-top: 28px; }
.prose h2 { font-family: Georgia, serif; font-weight: 400; font-size: 26px; margin: 36px 0 10px; }
.prose h3 { font-size: 18px; margin: 26px 0 8px; }
.prose p { margin: 14px 0; }
.prose ul, .prose ol { margin: 14px 0; padding-left: 26px; }
.prose li { margin: 6px 0; }
.prose blockquote {
  margin: 20px 0; padding: 16px 22px; background: var(--card); border-radius: 14px;
  border-left: 3px solid var(--slate); font-family: Georgia, serif; font-size: 18px;
}
.prose hr { border: none; border-top: 1px solid var(--hairline); margin: 30px 0; }

/* CTA / waitlist */
.cta-card {
  background: var(--slate); color: #fff; border-radius: 20px; padding: 30px 30px 26px;
  margin: 40px 0; box-shadow: 0 6px 18px rgba(40, 55, 61, .18);
}
.cta-card h3 { font-family: Georgia, serif; font-weight: 400; font-size: 24px; }
.cta-card p { color: rgba(255, 255, 255, .82); margin-top: 8px; font-size: 15.5px; }
.cta-card .store-links { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px; font-size: 15px; font-weight: 600;
  text-decoration: none; border: none; cursor: pointer;
}
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #f0f4f2; }
.btn-dark { background: var(--slate); color: #fff; }
.btn[disabled] { opacity: .5; cursor: default; }

.waitlist-form { margin-top: 18px; }
.waitlist-form .row { display: flex; gap: 10px; flex-wrap: wrap; }
.waitlist-form input[type="email"] {
  flex: 1; min-width: 220px; padding: 13px 18px; border-radius: 999px; border: none;
  font-size: 15.5px; color: var(--ink); background: #fff; outline: none;
}
.waitlist-survey { margin-top: 16px; }
.waitlist-survey .q { font-size: 14px; color: rgba(255, 255, 255, .85); margin-bottom: 8px; }
.waitlist-survey .chips { margin-top: 4px; }
.waitlist-survey .chip { background: rgba(255, 255, 255, .12); color: #fff; border-color: transparent; cursor: pointer; }
.waitlist-survey .chip[aria-pressed="true"] { background: #fff; color: var(--ink); }
.waitlist-survey input[type="text"] {
  width: 100%; margin-top: 10px; padding: 11px 16px; border-radius: 12px; border: none;
  font-size: 14.5px; background: rgba(255, 255, 255, .12); color: #fff; outline: none;
}
.waitlist-survey input[type="text"]::placeholder { color: rgba(255, 255, 255, .5); }
.waitlist-note { font-size: 13px; color: rgba(255, 255, 255, .6); margin-top: 12px; }
.waitlist-status { margin-top: 12px; font-size: 14.5px; min-height: 20px; }
.waitlist-status.ok { color: #D9EFE1; }
.waitlist-status.err { color: #F3C9C3; }
.turnstile-slot { margin-top: 14px; }

/* footer */
.site-footer {
  margin-top: 72px; padding: 22px 0 48px; border-top: 1px solid var(--hairline);
  font-size: 14px; color: var(--muted);
}
.site-footer .wrap { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

@media (max-width: 560px) {
  .hero h1 { font-size: 32px; }
  .article-head h1 { font-size: 30px; }
}
