/* ============================================================
   Porchlight — shared site styles
   Palette: warm cream + deep brown + amber lantern glow
   Type: Fraunces (display) / Inter (body & UI)
   ============================================================ */

:root {
  --cream: #201810;
  --cream-2: #F3E7D6;
  --paper: #2B2016;
  --brown-deep: #F3E7D6;
  --brown-mid: #D89B54;
  --brown-soft: #B99A78;
  --amber: #E8A33D;
  --amber-glow: #F5C36B;
  --amber-pale: rgba(232, 163, 61, 0.16);
  --ink: #E7DBC7;
  --ink-soft: #B1A088;
  --line: #47372A;
  --line-soft: #392C20;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.55);
  --radius: 14px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--brown-deep);
  line-height: 1.12;
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--ink); }
p:last-child { margin-bottom: 0; }

a { color: var(--brown-mid); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brown-soft);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 16px;
  height: 1px;
  background: var(--amber);
}

/* ---------- Lantern mark ---------- */
.lantern-mark {
  position: relative;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}
.lantern-mark svg { width: 100%; height: 100%; display: block; }
.lantern-glow {
  animation: flicker 4.5s ease-in-out infinite;
  transform-origin: center;
}
@keyframes flicker {
  0%, 100% { opacity: 0.55; r: 9; }
  35% { opacity: 0.85; r: 10.5; }
  55% { opacity: 0.6; r: 9.2; }
  75% { opacity: 0.9; r: 10.8; }
}
@media (prefers-reduced-motion: reduce) {
  .lantern-glow { animation: none; opacity: 0.75; }
}

/* ---------- Header / nav (hanging sign tabs) ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(32, 24, 16, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  max-width: var(--max);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-word {
  font-family: 'Fraunces', serif;
  font-size: 21px;
  font-weight: 600;
  color: var(--brown-deep);
  letter-spacing: -0.01em;
}
.brand-word .dot { color: var(--amber); }

nav.tabs {
  display: flex;
  gap: 4px;
}
nav.tabs a {
  position: relative;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 500;
  padding: 9px 16px 11px;
  border-radius: 9px 9px 0 0;
  transition: color 0.15s ease, background 0.15s ease;
}
nav.tabs a:hover { color: var(--brown-deep); background: var(--line-soft); }
nav.tabs a.active {
  color: var(--brown-deep);
  font-weight: 600;
  background: var(--paper);
  box-shadow: 0 -1px 0 var(--line) inset;
}
nav.tabs a.active::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: -1px;
  height: 2px;
  background: var(--amber);
  border-radius: 2px;
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 38px; height: 38px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; stroke: var(--brown-deep); }

@media (max-width: 720px) {
  nav.tabs {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 6px;
    display: none;
  }
  nav.tabs.open { display: flex; }
  nav.tabs a { border-radius: 8px; padding: 12px 14px; }
  nav.tabs a.active::after { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--amber);
  color: var(--cream);
}
.btn-primary:hover { background: var(--amber-glow); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost {
  background: transparent;
  color: var(--brown-deep);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--paper); border-color: var(--brown-soft); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 88px 0 70px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -180px; left: 50%;
  transform: translateX(-50%);
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(224,147,46,0.28) 0%, rgba(224,147,46,0.08) 45%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 700px; }
.hero h1 {
  font-size: clamp(38px, 5.6vw, 58px);
  margin-bottom: 20px;
}
.hero .lede {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 540px;
  margin-bottom: 32px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.pilot-strip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-soft);
  padding: 10px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.pilot-strip strong { color: var(--brown-deep); }
.pilot-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-pale);
}

/* ---------- Sections ---------- */
section { padding: 64px 0; }
section.tight { padding: 48px 0; }
.section-head { max-width: 620px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 36px); }
.section-head p { color: var(--ink-soft); font-size: 16.5px; margin-top: 12px; }

hr.rule {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 800px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.card .icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--amber-pale);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.card .icon svg { width: 19px; height: 19px; stroke: var(--brown-mid); }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 15px; }

/* ---------- How it works (steps) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}
.step {
  padding: 30px 26px;
  position: relative;
}
.step:not(:last-child) { border-right: 1px solid var(--line); }
.step .tag {
  font-family: 'Fraunces', serif;
  font-size: 13px;
  color: var(--amber);
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  display: block;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 14.5px; }
@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; }
  .step:not(:last-child) { border-right: none; border-bottom: 1px solid var(--line); }
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 52px 44px;
  color: var(--cream-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(224,147,46,0.35), transparent 70%);
}
.cta-band h2 { color: var(--cream-2); font-size: 27px; max-width: 420px; }
.cta-band p { color: #D9C9B4; margin-top: 8px; }
.cta-band .btn-primary { background: var(--amber); color: var(--cream); }
.cta-band .btn-primary:hover { background: var(--amber-glow); }

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--line);
  padding: 44px 0 34px;
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.footer-brand p { color: var(--ink-soft); font-size: 14px; max-width: 260px; margin-top: 10px; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4 {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brown-soft);
  margin-bottom: 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}
.footer-col a {
  display: block;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14.5px;
  margin-bottom: 9px;
}
.footer-col a:hover { color: var(--brown-deep); }
.footer-bottom {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Page header (for About / Support / Privacy) ---------- */
.page-hero {
  padding: 56px 0 42px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(32px, 4.4vw, 44px); }
.page-hero p.lede { color: var(--ink-soft); font-size: 17.5px; max-width: 560px; margin-top: 14px; }

/* ---------- Contact cards (Support page) ---------- */
.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-card .label { font-size: 13px; color: var(--brown-soft); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.contact-card .value { font-family: 'Fraunces', serif; font-size: 22px; color: var(--brown-deep); }
.contact-card .value a { color: inherit; text-decoration: none; }
.contact-card .value a:hover { text-decoration: underline; }
.contact-card p.desc { color: var(--ink-soft); font-size: 14.5px; }

/* ---------- FAQ accordion ---------- */
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 20px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: 'Fraunces', serif;
  font-size: 17px;
  color: var(--brown-deep);
}
.faq-q .plus {
  flex-shrink: 0;
  width: 22px; height: 22px;
  position: relative;
}
.faq-q .plus::before, .faq-q .plus::after {
  content: '';
  position: absolute;
  background: var(--brown-mid);
  transition: transform 0.2s ease;
}
.faq-q .plus::before { left: 0; top: 50%; width: 100%; height: 1.5px; transform: translateY(-50%); }
.faq-q .plus::after { top: 0; left: 50%; width: 1.5px; height: 100%; transform: translateX(-50%); }
.faq-item.open .faq-q .plus::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-item.open .faq-a { max-height: 240px; }
.faq-a-inner { padding: 0 4px 22px; color: var(--ink-soft); font-size: 15px; max-width: 640px; }

/* ---------- Legal / Privacy page ---------- */
.legal-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  padding: 48px 0 90px;
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.legal-toc a {
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 7px 10px;
  border-radius: 7px;
  border-left: 2px solid transparent;
}
.legal-toc a:hover { color: var(--brown-deep); background: var(--line-soft); }
.legal-body h2 {
  font-size: 21px;
  margin-top: 40px;
  margin-bottom: 12px;
  scroll-margin-top: 90px;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { color: var(--ink); font-size: 15.5px; margin-bottom: 14px; }
.legal-body ul { margin: 0 0 14px; padding-left: 20px; color: var(--ink); font-size: 15.5px; }
.legal-body li { margin-bottom: 6px; }
.legal-meta {
  display: inline-block;
  font-size: 13.5px;
  color: var(--ink-soft);
  font-style: italic;
  margin-bottom: 6px;
}
.notice-box {
  background: var(--amber-pale);
  border: 1px solid rgba(232, 163, 61, 0.45);
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 14.5px;
  color: var(--brown-deep);
  margin: 24px 0;
}
table.subproc {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 20px;
  font-size: 14.5px;
}
table.subproc th, table.subproc td {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--line);
}
table.subproc th {
  background: var(--cream-2);
  color: var(--brown-deep);
  font-weight: 600;
}
@media (max-width: 860px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; flex-direction: row; flex-wrap: wrap; }
}

/* ---------- Misc ---------- */
.mailto-form textarea, .mailto-form input {
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  color: var(--ink);
}
.mailto-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--brown-soft);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.mailto-form .field { margin-bottom: 18px; }
