/* ============================================================
   REJOIN — marketing site (rejoinvoice.com)
   Dusk hero → light body. Builds on the app's Dusk & Lantern tokens.
   ============================================================ */
:root {
  --paper: #F6F4EF;
  --surface: #FFFFFF;
  --surface-2: #ECE9E2;
  --ink: #262A33;
  --ink-2: #5C6170;
  --ink-3: #9094A0;
  --line: rgba(38, 42, 51, 0.10);
  --gold: #D69A33;
  --gold-hi: #F2C770;
  --gold-deep: #96690F;
  --gold-soft: rgba(214, 154, 51, 0.13);
  --gold-glow: rgba(230, 170, 60, 0.45);
  --ink-on-gold: #2E2410;
  --dusk: #14161B;
  --dusk-2: #1B2029;
  --dusk-ink: #F1EFE8;
  --dusk-ink-2: #A9ADB8;
  --dusk-line: rgba(241, 239, 232, 0.12);
  --night-gold: #E2AC4B;
  --sans: -apple-system, "SF Pro Display", "SF Pro Text", system-ui, "Helvetica Neue", Helvetica, sans-serif;
  --serif: "New York", ui-serif, "Iowan Old Style", "Palatino", Georgia, serif;
  --shadow-card: 0 1px 2px rgba(38,42,51,.05), 0 6px 24px rgba(38,42,51,.07);
  --shadow-float: 0 2px 6px rgba(38,42,51,.08), 0 18px 48px rgba(38,42,51,.16);
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 36px; }

/* visible focus for keyboard users */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}
.btn-gold:focus-visible, .btn-ghost-dark:focus-visible, .as-badge:focus-visible { border-radius: 27px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--surface); color: var(--ink);
  font-weight: 700; font-size: 16px; padding: 14px 22px; border-radius: 0 0 14px 0;
}
.skip-link:focus { left: 0; }

/* ---------- wordmark (serif "rejoin", o = the orb) ---------- */
.wordmark {
  display: inline-flex; align-items: baseline; line-height: 1;
  font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em;
  text-decoration: none; color: var(--dusk-ink);
}
.wordmark .orb-o {
  width: .54em; height: .54em; margin: 0 .05em;
  border-radius: 50%; align-self: center;
  background: radial-gradient(circle at 36% 30%, #FBE3AC 0%, var(--gold-hi) 22%, var(--gold) 55%, #B57718 100%);
  box-shadow: 0 1px 6px var(--gold-glow), 0 0 14px var(--gold-glow);
  transform: translateY(.04em);
}

/* ---------- nav ---------- */
.site-nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; gap: 36px;
  max-width: 1140px; margin: 0 auto; padding: 26px 36px;
}
.site-nav .links { display: flex; gap: 30px; flex: 1; justify-content: center; }
.site-nav a { color: var(--dusk-ink-2); text-decoration: none; font-size: 16px; font-weight: 600; }
.site-nav a:hover { color: var(--dusk-ink); }
.site-nav a.wordmark { color: var(--dusk-ink); font-size: 30px; }

.btn-gold {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  background: linear-gradient(180deg, var(--gold-hi) -30%, var(--gold) 55%, #C07F1B 130%);
  color: var(--ink-on-gold); text-decoration: none;
  font-size: 17px; font-weight: 700; font-family: var(--sans);
  height: 54px; padding: 0 28px; border-radius: 27px; border: none;
  box-shadow: 0 2px 6px rgba(0,0,0,.12), 0 10px 30px var(--gold-glow);
  cursor: pointer;
}
.btn-ghost-dark {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--dusk-ink); text-decoration: none; font-size: 17px; font-weight: 600;
  height: 54px; padding: 0 24px; border-radius: 27px;
  border: 1.5px solid var(--dusk-line);
}

.site-nav .btn-gold { box-shadow: 0 2px 10px rgba(0,0,0,.25); height: 46px; padding: 0 22px; font-size: 16px; }
.site-nav a.btn-gold, .site-nav a.btn-gold:hover { color: var(--ink-on-gold); }

/* mobile menu (CSS-only, native <details>) */
.mobile-menu { display: none; position: relative; margin-left: auto; }
.mobile-menu summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 23px; border: 1.5px solid var(--dusk-line);
  color: var(--dusk-ink);
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu .sheet {
  position: fixed; left: 16px; right: 16px; top: 82px; z-index: 40;
  background: var(--dusk-2); border: 1px solid var(--dusk-line); border-radius: 20px;
  box-shadow: var(--shadow-float); padding: 12px 0; display: flex; flex-direction: column;
}
.mobile-menu .sheet a {
  padding: 13px 24px; font-size: 17px; font-weight: 600;
  color: var(--dusk-ink); text-decoration: none;
}
.mobile-menu .sheet a:hover { background: rgba(241,239,232,.06); }

/* ---------- hero (dusk) ---------- */
.hero {
  background: linear-gradient(180deg, #232838 0%, var(--dusk-2) 34%, var(--dusk) 100%);
  color: var(--dusk-ink);
  position: relative; overflow: hidden;
  padding: 150px 0 0;
}
.hero .horizon {
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--dusk-line);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px;
  align-items: center; position: relative;
}
.hero-copy { padding-bottom: 110px; }
.hero .audience {
  display: flex; align-items: center; gap: 18px; margin-bottom: 34px;
  font-size: 15px; font-weight: 600; color: var(--dusk-ink-2); letter-spacing: .4px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: 72px; line-height: 1.06; letter-spacing: -1.5px;
  text-wrap: balance;
}
.hero .lede {
  font-size: 21px; line-height: 1.55; color: var(--dusk-ink-2);
  font-weight: 500; max-width: 480px; margin-top: 26px; text-wrap: pretty;
}
.hero .cta-row { display: flex; gap: 14px; margin-top: 38px; align-items: center; flex-wrap: wrap; }
.hero .fine { font-size: 14px; color: var(--dusk-ink-2); opacity: .8; margin-top: 18px; font-weight: 500; }
.hero-device { display: flex; justify-content: center; align-items: flex-end; padding-top: 10px; }

/* the breathing orb, hero-sized */
.orb {
  border-radius: 50%; flex: none;
  background: radial-gradient(circle at 36% 30%, #FBE3AC 0%, var(--gold-hi) 22%, var(--gold) 55%, #B57718 100%);
  box-shadow: 0 4px 18px var(--gold-glow), 0 0 46px var(--gold-glow);
  position: relative;
}
.orb::after {
  content: ""; position: absolute; inset: -30%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 65%);
  z-index: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .orb.breathe { animation: siteBreathe 3.6s ease-in-out infinite; }
}
@keyframes siteBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* dusk → light transition band */
.dawn {
  height: 160px;
  background: linear-gradient(180deg, var(--dusk) 0%, #3A3A40 30%, #B9AE9C 68%, var(--paper) 100%);
}

/* ---------- sections ---------- */
section { padding: 96px 0; }
.eyebrow {
  font-size: 14px; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--gold-deep);
}
h2.sec {
  font-family: var(--serif); font-weight: 600;
  font-size: 46px; line-height: 1.12; letter-spacing: -0.8px;
  margin-top: 14px; text-wrap: balance;
}
.sec-sub { font-size: 19px; line-height: 1.6; color: var(--ink-2); font-weight: 500; margin-top: 18px; max-width: 620px; text-wrap: pretty; }

/* feature rows */
.feat {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: center; padding: 56px 0;
}
.feat .copy h3 {
  font-family: var(--serif); font-weight: 600;
  font-size: 36px; line-height: 1.15; letter-spacing: -0.5px; text-wrap: balance;
  margin-top: 10px;
}
.feat .copy p { font-size: 18px; line-height: 1.65; color: var(--ink-2); font-weight: 500; margin-top: 16px; text-wrap: pretty; }
.feat .copy .points { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.feat .point { display: flex; gap: 10px; align-items: flex-start; font-size: 16.5px; font-weight: 500; color: var(--ink-2); line-height: 1.45; }
.feat .point .dot { width: 7px; height: 7px; border-radius: 4px; background: var(--gold); margin-top: 8px; flex: 0 0 7px; }
.feat .device { display: flex; justify-content: center; }

/* phone bezel around static app-screen images */
.phone-frame {
  border-radius: 44px; padding: 7px; background: #1b1d22;
  box-shadow: 0 18px 60px rgba(20,22,27,.28);
  display: inline-block;
}
.phone-frame img { display: block; width: 240px; height: auto; border-radius: 37px; }
.hero .phone-frame img { width: 266px; }

/* ---------- privacy band (dusk returns) ---------- */
.trust {
  background: linear-gradient(180deg, var(--dusk) 0%, var(--dusk-2) 100%);
  color: var(--dusk-ink); padding: 110px 0;
}
.trust .eyebrow { color: var(--night-gold); }
.trust h2.sec { color: var(--dusk-ink); }
.trust .sec-sub { color: var(--dusk-ink-2); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 52px; }
.trust-card {
  border: 1px solid var(--dusk-line); border-radius: 22px; padding: 26px 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.trust-card .t { font-size: 19px; font-weight: 700; color: var(--dusk-ink); line-height: 1.3; }
.trust-card .d { font-size: 15.5px; font-weight: 500; color: var(--dusk-ink-2); line-height: 1.55; }
.trust-card svg { color: var(--night-gold); }
.trust .more { margin-top: 36px; font-size: 15.5px; color: var(--dusk-ink-2); font-weight: 500; }
.trust .more a { color: var(--night-gold); font-weight: 600; }

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 52px; max-width: 880px; }
.price-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px;
  box-shadow: var(--shadow-card); padding: 38px 36px;
  display: flex; flex-direction: column; gap: 8px;
}
.price-card.hero-card { border: 2px solid var(--gold); box-shadow: var(--shadow-float); }
.price-card .plan { font-size: 15px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--gold-deep); }
.price-card .amount { font-family: var(--serif); font-size: 44px; font-weight: 600; letter-spacing: -0.5px; }
.price-card .amount .per-unit { font-size: 22px; }
.price-card .per { font-size: 15px; color: var(--ink-3); font-weight: 500; }
.price-card ul { list-style: none; padding: 0; margin-top: 18px; display: flex; flex-direction: column; gap: 11px; }
.price-card li { display: flex; gap: 10px; font-size: 16.5px; font-weight: 500; color: var(--ink-2); line-height: 1.4; }
.price-card li::before { content: "✓"; color: var(--gold-deep); font-weight: 700; }
.price-note {
  margin-top: 26px; font-size: 16.5px; font-weight: 600; color: var(--ink);
  background: var(--gold-soft); border-radius: 16px; padding: 16px 20px;
  max-width: 880px; line-height: 1.5;
}

/* ---------- story ---------- */
.story {
  max-width: 760px; margin: 0 auto; text-align: center;
}
.story .orb { margin: 0 auto 34px; }
.story .q {
  font-family: var(--serif); font-size: 30px; line-height: 1.4;
  font-weight: 500; letter-spacing: -0.2px; text-wrap: balance;
}
.story .attr { margin-top: 22px; font-size: 16px; font-weight: 600; color: var(--ink-3); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin-top: 40px; }
details.faq {
  border-bottom: 1px solid var(--line); padding: 4px 0;
}
details.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px;
  font-size: 19px; font-weight: 600; padding: 20px 4px; color: var(--ink);
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; margin-left: auto; font-size: 26px; font-weight: 400; color: var(--gold-deep);
  transition: transform .2s ease;
}
@media (prefers-reduced-motion: reduce) {
  details.faq summary::after { transition: none; }
}
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq .a {
  font-size: 17px; line-height: 1.65; color: var(--ink-2); font-weight: 500;
  padding: 0 4px 22px; max-width: 660px; text-wrap: pretty;
}
.faq-more { margin-top: 30px; font-size: 16.5px; font-weight: 500; color: var(--ink-2); }
.faq-more a { color: var(--gold-deep); font-weight: 600; }

/* ---------- final CTA + footer ---------- */
.final {
  background: linear-gradient(180deg, var(--paper) 0%, #EFE7D8 100%);
  text-align: center; padding: 110px 0 120px;
}
.final .orb { margin: 0 auto 36px; }
.final h2 { font-family: var(--serif); font-size: 54px; font-weight: 600; letter-spacing: -1px; line-height: 1.1; text-wrap: balance; }
.final .sec-sub { margin: 18px auto 0; text-align: center; }
.final .cta-row { display: flex; justify-content: center; gap: 14px; margin-top: 36px; }
.final .fine { margin-top: 18px; font-size: 14px; color: var(--ink-3); font-weight: 500; }

footer.site-footer {
  background: var(--dusk); color: var(--dusk-ink-2); padding: 64px 0 54px;
}
footer .cols { display: flex; gap: 60px; align-items: flex-start; flex-wrap: wrap; }
footer .brandcol { flex: 1; min-width: 240px; }
footer .brandcol .wordmark { font-size: 28px; }
footer .brandcol p { font-size: 15px; margin-top: 14px; line-height: 1.6; max-width: 300px; }
footer a { color: var(--dusk-ink-2); text-decoration: none; font-size: 15.5px; font-weight: 500; display: block; padding: 5px 0; }
footer a:hover { color: var(--dusk-ink); }
footer .col h4 { color: var(--dusk-ink); font-size: 14px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; }
footer .fineline { border-top: 1px solid var(--dusk-line); margin-top: 44px; padding-top: 24px; font-size: 13.5px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
footer .fineline a { display: inline; padding: 0; font-size: 13.5px; }

/* App Store badge (stand-in — swap for Apple's official artwork at launch) */
.as-badge {
  display: inline-flex; align-items: center; gap: 11px;
  background: #000; color: #fff; text-decoration: none;
  border: 1px solid rgba(255,255,255,.28); border-radius: 14px;
  height: 58px; padding: 0 22px;
}
.as-badge .txt { display: flex; flex-direction: column; line-height: 1.15; }
.as-badge .small { font-size: 11.5px; font-weight: 500; opacity: .85; }
.as-badge .big { font-size: 19px; font-weight: 600; letter-spacing: -0.2px; }

/* ---------- subpages (privacy / support / accessibility) ---------- */
.subpage-head {
  background: linear-gradient(180deg, #232838 0%, var(--dusk) 100%);
  color: var(--dusk-ink); padding: 140px 0 70px;
}
.subpage-head h1 { font-family: var(--serif); font-size: 52px; font-weight: 600; letter-spacing: -1px; }
.subpage-head p { color: var(--dusk-ink-2); font-size: 19px; margin-top: 14px; font-weight: 500; max-width: 640px; line-height: 1.6; }
.subpage-head p b { color: var(--dusk-ink); }
.prose { max-width: 760px; padding-top: 70px; padding-bottom: 100px; }
.prose h2 { font-family: var(--serif); font-size: 30px; font-weight: 600; letter-spacing: -0.4px; margin: 44px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { font-size: 17.5px; line-height: 1.7; color: var(--ink-2); font-weight: 500; }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.prose b { color: var(--ink); }
.prose a { color: var(--gold-deep); font-weight: 600; }
.prose .updated { font-size: 15px; color: var(--ink-3); font-weight: 600; margin-bottom: 8px; }
.prose .callout {
  background: var(--gold-soft); border-radius: 16px; padding: 18px 22px;
  font-size: 17px; font-weight: 500; color: var(--ink); line-height: 1.6;
  margin: 18px 0 8px;
}
.prose .callout b { color: var(--ink); }

/* ---------- 404 ---------- */
.notfound {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  background: linear-gradient(180deg, #232838 0%, var(--dusk-2) 40%, var(--dusk) 100%);
  color: var(--dusk-ink); padding: 40px 24px; position: relative;
}
.notfound .orb { margin-bottom: 38px; }
.notfound h1 { font-family: var(--serif); font-size: 46px; font-weight: 600; letter-spacing: -1px; text-wrap: balance; }
.notfound p { color: var(--dusk-ink-2); font-size: 18px; font-weight: 500; margin-top: 16px; max-width: 440px; line-height: 1.6; }
.notfound .btn-gold { margin-top: 34px; }
.notfound .horizon { position: absolute; left: 0; right: 0; bottom: 18vh; height: 1px; background: var(--dusk-line); }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero { padding-top: 120px; }
  .hero h1 { font-size: 52px; }
  .hero-copy { padding-bottom: 24px; }
  .hero-grid, .feat, .price-grid { grid-template-columns: 1fr; }
  .hero-device { padding-bottom: 64px; }
  .feat { gap: 36px; padding: 44px 0; }
  .feat .copy { order: 0; }
  .feat .device { order: 1; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .site-nav .links { display: none; }
  .mobile-menu { display: block; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 22px; }
  .site-nav { padding: 18px 22px; gap: 14px; }
  .site-nav a.wordmark { font-size: 26px; }
  section { padding: 64px 0; }
  .hero { padding-top: 104px; }
  .hero h1 { font-size: 42px; letter-spacing: -1px; }
  .hero .lede { font-size: 18.5px; }
  .hero .audience { gap: 14px; margin-bottom: 26px; }
  h2.sec { font-size: 34px; }
  .sec-sub { font-size: 17.5px; }
  .feat .copy h3 { font-size: 28px; }
  .trust { padding: 72px 0; }
  .trust-grid { grid-template-columns: 1fr; }
  .price-card { padding: 30px 26px; }
  .story .q { font-size: 24px; }
  .final { padding: 80px 0 90px; }
  .final h2 { font-size: 38px; }
  .subpage-head { padding: 116px 0 52px; }
  .subpage-head h1 { font-size: 38px; }
  .prose { padding-top: 48px; padding-bottom: 72px; }
  .phone-frame img { width: 216px; }
  .hero .phone-frame img { width: 232px; }
  footer .cols { gap: 32px; }
}
