/* ===========================================================
   Sepia Travels — Shared stylesheet
   Warm cream / charcoal / terracotta-brown system
   =========================================================== */

:root {
  --cream-top: #faf7f1;
  --cream-bottom: #f1e9da;
  --paper: #fffefb;
  --paper-border: #e8e2d4;
  --ink: #1a1816;
  --ink-soft: #2b2723;
  --grey: #6b6660;
  --grey-light: #9a948c;
  --brown: #7a4a2e;
  --brown-dark: #623a23;
  --brown-tint: #f3e6dc;
  --green-tag: #4f6a4a;
  --green-tag-bg: #eaf0e6;
  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(26, 24, 22, 0.04), 0 8px 24px rgba(26, 24, 22, 0.05);
  --shadow-hover: 0 4px 8px rgba(26, 24, 22, 0.06), 0 16px 32px rgba(26, 24, 22, 0.08);
  --maxw: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream-top);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

/* ---------- Display type ---------- */
.display {
  font-family: "Archivo", "Inter", sans-serif;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin: 0;
}

.eyebrow {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey-light);
  margin: 0 0 18px;
}

/* ---------- Background wash ---------- */
.wash {
  background: linear-gradient(180deg, var(--cream-top) 0%, var(--cream-bottom) 100%);
}

/* ---------- Top nav ---------- */
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}

.nav-logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--brown);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  font-family: "Archivo", sans-serif;
  font-weight: 900;
  font-size: 16px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14.5px;
  font-weight: 600;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--brown);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--brown);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--brown);
  color: var(--paper);
  box-shadow: var(--shadow-card);
}

.btn-primary:hover {
  background: var(--brown-dark);
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper-border);
}

.btn-ghost:hover {
  border-color: var(--brown);
  color: var(--brown);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 13.5px;
}

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 30px 24px 90px;
  text-align: center;
}

.hero .eyebrow {
  text-align: center;
}

.hero .display {
  font-size: clamp(40px, 8vw, 86px);
  margin: 0 auto;
  max-width: 920px;
}

.hero-sub {
  margin: 28px auto 0;
  max-width: 620px;
  color: var(--grey);
  font-size: 17px;
  line-height: 1.65;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 34px 0 0;
}

.tag {
  background: var(--paper);
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-pill);
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

/* ---------- Page header (non-hero pages) ---------- */
.page-head {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 26px 24px 64px;
  text-align: center;
}

.page-head .display {
  font-size: clamp(34px, 6.4vw, 62px);
  margin: 0 auto;
  max-width: 760px;
}

.page-head-sub {
  margin: 22px auto 0;
  max-width: 560px;
  color: var(--grey);
  font-size: 16.5px;
  line-height: 1.65;
}

/* ---------- Section shells ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 70px 24px;
}

.section-tight {
  padding: 36px 24px 70px;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-title {
  font-family: "Archivo", sans-serif;
  font-weight: 900;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.section-sub {
  color: var(--grey);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

/* ---------- Pricing toggle ---------- */
.toggle-row {
  display: flex;
  justify-content: center;
  margin: 0 0 48px;
}

.toggle {
  display: inline-flex;
  background: var(--paper);
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-pill);
  padding: 5px;
  gap: 4px;
}

.toggle button {
  font-family: inherit;
  font-weight: 700;
  font-size: 13.5px;
  border: none;
  background: transparent;
  color: var(--grey);
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.toggle button.active {
  background: var(--brown);
  color: var(--paper);
}

.toggle button:focus-visible {
  outline: 2px solid var(--brown);
  outline-offset: 2px;
}

/* ---------- Pricing cards ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

.price-card {
  background: var(--paper);
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.price-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.price-card.featured {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.price-card.featured .tier-sub,
.price-card.featured .price-note,
.price-card.featured .feature-list li {
  color: #cfc8bf;
}

.price-card.featured .feature-list li svg {
  stroke: #e7c9b3;
}

.tier-name {
  font-family: "Archivo", sans-serif;
  font-weight: 900;
  font-size: 21px;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}

.tier-sub {
  font-size: 13.5px;
  color: var(--grey);
  margin: 0 0 26px;
  line-height: 1.55;
  min-height: 40px;
}

.price-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 4px;
}

.price-amount {
  font-family: "Archivo", sans-serif;
  font-weight: 900;
  font-size: 40px;
  letter-spacing: -0.02em;
  line-height: 1;
}

.price-period {
  font-size: 14px;
  font-weight: 600;
  color: var(--grey);
  padding-bottom: 6px;
}

.price-card.featured .price-period {
  color: #cfc8bf;
}

.price-note {
  font-size: 12.5px;
  color: var(--grey-light);
  margin: 0 0 26px;
}

.feature-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.feature-list li svg {
  flex-shrink: 0;
  margin-top: 3px;
  stroke: var(--brown);
}

.price-card.featured .btn-ghost {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.price-card.featured .btn-primary {
  background: var(--paper);
  color: var(--ink);
}

.price-card.featured .btn-primary:hover {
  background: #ece6da;
}

/* badge */
.badge {
  display: inline-flex;
  align-self: flex-start;
  background: var(--green-tag-bg);
  color: var(--green-tag);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}

.price-card.featured .badge {
  background: #3a4636;
  color: #cfe0c8;
}

/* ---------- Module add-on table ---------- */
.addon-table {
  background: var(--paper);
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.addon-row {
  display: grid;
  grid-template-columns: 1.6fr 2.4fr 1fr;
  gap: 24px;
  padding: 22px 30px;
  border-bottom: 1px solid var(--paper-border);
  align-items: center;
}

.addon-row:last-child {
  border-bottom: none;
}

.addon-row.head {
  background: var(--cream-bottom);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-light);
  padding: 16px 30px;
}

.addon-name {
  font-weight: 700;
  font-size: 15.5px;
}

.addon-desc {
  color: var(--grey);
  font-size: 14px;
  line-height: 1.55;
}

.addon-price {
  font-weight: 800;
  font-size: 15.5px;
  text-align: right;
  font-family: "Archivo", sans-serif;
}

.addon-price .per {
  font-size: 12px;
  font-weight: 600;
  color: var(--grey-light);
  display: block;
  margin-top: 2px;
}

/* ---------- Ownership comparison ---------- */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.compare-card {
  background: var(--paper);
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.compare-card h3 {
  font-family: "Archivo", sans-serif;
  font-weight: 900;
  font-size: 19px;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.compare-card .compare-cost {
  font-family: "Archivo", sans-serif;
  font-weight: 900;
  font-size: 28px;
  margin: 14px 0 4px;
  color: var(--brown);
}

.compare-card .compare-period {
  font-size: 13px;
  color: var(--grey-light);
  margin: 0 0 22px;
}

/* ---------- Feature cards (3 col) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--paper);
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--brown-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-icon svg {
  stroke: var(--brown);
}

.feature-card h3 {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 17px;
  margin: 0 0 10px;
  letter-spacing: -0.005em;
}

.feature-card p {
  color: var(--grey);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
}

/* ---------- Module showcase rows ---------- */
.module-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--paper-border);
}

.module-row:last-child {
  border-bottom: none;
}

.module-row.reverse .module-visual {
  order: 2;
}

.module-eyebrow {
  display: inline-flex;
  background: var(--brown-tint);
  color: var(--brown);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.module-row h3 {
  font-family: "Archivo", sans-serif;
  font-weight: 900;
  font-size: clamp(22px, 3vw, 28px);
  margin: 0 0 14px;
  letter-spacing: -0.015em;
}

.module-row p {
  color: var(--grey);
  font-size: 15.5px;
  line-height: 1.7;
  margin: 0 0 18px;
}

.module-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.module-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.module-list li svg {
  stroke: var(--brown);
  flex-shrink: 0;
  margin-top: 3px;
}

.module-visual {
  background: var(--paper);
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-card {
  width: 100%;
}

.visual-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--cream-bottom);
  margin-bottom: 10px;
  font-size: 13.5px;
  font-weight: 600;
}

.visual-row:last-child {
  margin-bottom: 0;
}

.visual-row .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brown);
  display: inline-block;
  margin-right: 10px;
}

.visual-pill {
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--green-tag-bg);
  color: var(--green-tag);
}

.visual-pill.amber {
  background: #f7ecd9;
  color: #9a6b1f;
}

/* ---------- Logo / trust strip ---------- */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 40px 24px;
  border-top: 1px solid var(--paper-border);
  border-bottom: 1px solid var(--paper-border);
  font-family: "Archivo", sans-serif;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--grey-light);
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--paper);
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 15.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary .chev {
  flex-shrink: 0;
  transition: transform 0.2s ease;
  stroke: var(--grey-light);
}

.faq-item[open] summary .chev {
  transform: rotate(180deg);
}

.faq-item p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--grey);
  font-size: 14.5px;
  line-height: 1.65;
}

/* ---------- CTA band ---------- */
.cta-band {
  max-width: var(--maxw);
  margin: 0 auto 80px;
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 64px 40px;
  text-align: center;
  color: var(--paper);
}

.cta-band h2 {
  font-family: "Archivo", sans-serif;
  font-weight: 900;
  font-size: clamp(26px, 4.5vw, 40px);
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

.cta-band p {
  color: #cfc8bf;
  font-size: 16px;
  margin: 0 0 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-band .hero-actions {
  margin-top: 0;
}

.cta-band .btn-primary {
  background: var(--paper);
  color: var(--ink);
}

.cta-band .btn-primary:hover {
  background: #ece6da;
}

.cta-band .btn-ghost {
  background: transparent;
  border-color: #4a453f;
  color: var(--paper);
}

.cta-band .btn-ghost:hover {
  border-color: var(--paper);
}

/* ---------- Footer ---------- */
.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px 50px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  border-top: 1px solid var(--paper-border);
  padding-top: 50px;
}

.footer-brand p {
  color: var(--grey);
  font-size: 14px;
  line-height: 1.6;
  margin: 14px 0 0;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-light);
  margin: 0 0 16px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 600;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--brown);
}

.footer-bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--grey-light);
  flex-wrap: wrap;
  gap: 12px;
}

/* ===========================================================
   Auth pages (sign up / sign in)
   =========================================================== */

.auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 24px 70px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--paper);
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-lg);
  padding: 44px 38px;
  box-shadow: var(--shadow-card);
}

.auth-head {
  text-align: center;
  margin-bottom: 32px;
}

.auth-head .display {
  font-size: 30px;
  margin: 0 0 10px;
}

.auth-head p {
  color: var(--grey);
  font-size: 14.5px;
  margin: 0;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink-soft);
}

.field input,
.field select {
  width: 100%;
  font-family: inherit;
  font-size: 14.5px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--paper-border);
  background: var(--cream-top);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--brown);
  box-shadow: 0 0 0 3px var(--brown-tint);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field-hint {
  font-size: 12.5px;
  color: var(--grey-light);
  margin-top: 6px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 26px 0;
  color: var(--grey-light);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--paper-border);
}

.auth-foot {
  text-align: center;
  margin-top: 26px;
  font-size: 14px;
  color: var(--grey);
}

.auth-foot a {
  color: var(--brown);
  font-weight: 700;
  text-decoration: none;
}

.plan-pick {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.plan-pick label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.plan-pick input {
  accent-color: var(--brown);
}

.plan-pick label:has(input:checked) {
  border-color: var(--brown);
  background: var(--brown-tint);
}

.plan-pick .plan-price {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  color: var(--grey);
}

.plan-pick label:has(input:checked) .plan-price {
  color: var(--brown);
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .compare-grid {
    grid-template-columns: 1fr;
  }

  .module-row,
  .module-row.reverse {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 0;
  }

  .module-row.reverse .module-visual {
    order: 0;
  }

  .footer {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .addon-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .addon-row.head {
    display: none;
  }

  .addon-price {
    text-align: left;
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--paper-border);
    background: var(--paper);
    cursor: pointer;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .auth-card {
    padding: 34px 24px;
  }

  .footer {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
