/* Design Patternly — shared styles */

:root {
  --ink:        #17332e;
  --ink-deep:   #0e211d;
  --ink-soft:   #2a4a44;
  --cream:      #f8f4ec;
  --cream-warm: #f1e9db;
  --card:       #ffffff;
  --accent:     #b8553a;
  --accent-dk:  #98422b;
  --accent-lt:  #e2a98f;
  --text:       #262521;
  --muted:      #6d6b62;
  --line:       #ded4c3;
  --line-soft:  #ebe3d5;
  --ok:         #2f6b52;

  --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1140px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(23,51,46,.05), 0 8px 28px rgba(23,51,46,.07);
  --shadow-lg: 0 2px 6px rgba(23,51,46,.06), 0 24px 60px rgba(23,51,46,.12);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }

/* ---------- Disclosure bar ---------- */
.disclosure-bar {
  background: var(--ink-deep);
  color: #e9e2d4;
  font-size: 12.5px;
  letter-spacing: .01em;
  text-align: center;
  padding: 9px 20px;
}
.disclosure-bar strong { color: #fff; font-weight: 600; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(248,244,236,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 68px;
}
.brand {
  font-family: var(--serif);
  font-size: 21px; font-weight: 600; letter-spacing: -.02em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.brand em { font-style: italic; color: var(--accent); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-size: 14px; color: var(--ink-soft); text-decoration: none;
  font-weight: 500; transition: color .15s ease;
}
.nav a:hover { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-size: 14.5px; font-weight: 600;
  padding: 12px 22px; border-radius: 999px;
  text-decoration: none; border: 1px solid transparent;
  cursor: pointer; transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-soft); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(184,85,58,.28); }
.btn-accent:hover { background: var(--accent-dk); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-lg { font-size: 16px; padding: 16px 32px; }
.btn-block { display: flex; width: 100%; }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-tag {
  font-size: 11.5px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 14px;
}
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 46px); }
.section-head p { color: var(--muted); font-size: 17px; margin: 18px 0 0; }

/* ---------- Hero ---------- */
.hero { padding: 76px 0 72px; text-align: center; }
.hero h1 { font-size: clamp(38px, 6.4vw, 68px); }
.hero h1 .accent { font-style: italic; color: var(--ink-soft); display: block; }
.hero-sub {
  max-width: 560px; margin: 24px auto 0;
  font-size: 18px; color: var(--muted);
}

.price-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  max-width: 720px; margin: 40px auto 0; overflow: hidden;
}
.price-split {
  display: flex; align-items: center; justify-content: center;
  gap: 40px; padding: 34px 28px 26px; flex-wrap: wrap;
}
.price-node { text-align: center; }
.price-node .amount {
  font-family: var(--serif); font-size: clamp(34px, 5vw, 46px);
  font-weight: 600; color: var(--ink); line-height: 1;
}
.price-node .label {
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-top: 10px;
}
.price-arrow { color: var(--accent); font-size: 26px; line-height: 1; }
.price-terms {
  background: var(--cream-warm); border-top: 1px solid var(--line-soft);
  padding: 16px 26px; font-size: 13px; color: var(--muted); line-height: 1.6;
}
.price-terms strong { color: var(--ink); font-weight: 600; }

.hero-cta { margin-top: 30px; }
.chips {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px 28px; margin-top: 34px;
  font-size: 13.5px; color: var(--ink-soft);
}
.chips span { display: inline-flex; align-items: center; gap: 8px; }
.chips span::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex: none;
}

/* ---------- Category grid ---------- */
.cat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.cat {
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 26px 24px;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.cat:hover { border-color: var(--accent-lt); transform: translateY(-2px); box-shadow: var(--shadow); }
.cat .ico { font-size: 26px; line-height: 1; }
.cat h3 { font-size: 19px; margin: 16px 0 6px; }
.cat .count {
  font-size: 11.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
.cat-wide {
  grid-column: 1 / -1;
  background: var(--ink); border-color: var(--ink);
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
}
.cat-wide:hover { border-color: var(--ink); }
.cat-wide h3 { color: var(--cream); margin: 0; }
.cat-wide .count { color: var(--accent-lt); margin-top: 6px; }

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); margin-top: 56px;
}
.stat { padding: 26px 18px 0; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .k { font-size: 12.5px; color: var(--muted); }
.stat .v {
  font-family: var(--serif); font-size: 28px; font-weight: 600;
  color: var(--ink); margin-top: 4px;
}

/* ---------- Included cards ---------- */
.included { background: var(--cream-warm); }
.inc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.inc {
  background: var(--cream-warm); padding: 32px 28px;
}
.inc .num {
  font-family: var(--serif); font-size: 13px; font-weight: 600;
  color: var(--accent); letter-spacing: .08em;
}
.inc h3 { font-size: 20px; margin: 12px 0 10px; }
.inc p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Trust / billing ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust {
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 26px 22px;
}
.trust .ico { font-size: 22px; }
.trust h3 { font-size: 17px; margin: 14px 0 8px; }
.trust p { margin: 0; font-size: 14.5px; color: var(--muted); }

/* ---------- Operator block ---------- */
.operator { background: var(--ink); color: #dfd8ca; padding: 54px 0; }
.op-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.op h4 {
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-lt); margin: 0 0 12px;
}
.op p { margin: 0; font-size: 15px; line-height: 1.7; color: #efe9dd; }
.op a { color: #efe9dd; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; align-items: start; }
.plan {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow);
  position: relative;
}
.plan.featured { border-color: var(--ink); box-shadow: var(--shadow-lg); }
.plan-badge {
  position: absolute; top: -12px; left: 32px;
  background: var(--ink); color: #fff; font-size: 10.5px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px;
}
.plan-name {
  font-size: 11.5px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 22px;
}
.plan-line {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 18px; padding: 16px 0; border-top: 1px solid var(--line-soft);
}
.plan-line:first-of-type { border-top: 0; padding-top: 0; }
.plan-line .when { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.plan-line .what { font-size: 13px; color: var(--muted); margin-top: 2px; }
.plan-line .amt {
  font-family: var(--serif); font-size: 30px; font-weight: 600;
  color: var(--ink); line-height: 1; white-space: nowrap;
}
.plan ul { list-style: none; margin: 22px 0; padding: 0; }
.plan li {
  font-size: 14.5px; color: var(--text); padding: 7px 0 7px 26px;
  position: relative;
}
.plan li::before {
  content: "✓"; position: absolute; left: 0; top: 6px;
  color: var(--ok); font-size: 13px; font-weight: 700;
}
.legal-note {
  font-size: 11.5px; line-height: 1.65; color: var(--muted);
  margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line-soft);
}
.legal-note strong { color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq details {
  border-bottom: 1px solid var(--line); padding: 4px 0;
}
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0;
  font-family: var(--serif); font-size: 19px; font-weight: 600;
  color: var(--ink); position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%;
  transform: translateY(-50%); font-family: var(--sans);
  font-size: 22px; font-weight: 400; color: var(--accent);
}
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 40px 22px 0; color: var(--muted); font-size: 15.5px; }
.faq .answer p { margin: 0 0 12px; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Final CTA ---------- */
.final-cta { background: var(--ink); color: var(--cream); text-align: center; }
.final-cta h2 { color: var(--cream); font-size: clamp(30px, 4.6vw, 46px); }
.final-cta p { color: #c8c1b3; max-width: 520px; margin: 20px auto 0; }
.final-cta .legal-note { color: #a7a094; border-top-color: rgba(255,255,255,.14); max-width: 620px; margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-deep); color: #9d968a;
  padding: 48px 0 40px; font-size: 13.5px;
}
.footer-top {
  display: flex; justify-content: space-between; gap: 32px;
  flex-wrap: wrap; padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand { font-family: var(--serif); font-size: 20px; color: var(--cream); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { color: #c3bcb0; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { padding-top: 24px; line-height: 1.8; }
.footer-bottom p { margin: 0 0 8px; }

/* ---------- Legal / content pages ---------- */
.legal-page { padding: 64px 0 90px; }
.legal-page h1 { font-size: clamp(32px, 5vw, 46px); margin-bottom: 8px; }
.legal-page .updated { color: var(--muted); font-size: 13.5px; margin: 0 0 40px; }
.legal-page h2 { font-size: 22px; margin: 40px 0 12px; }
.legal-page p, .legal-page li { color: #3d3b35; font-size: 15.5px; }
.legal-page ul { padding-left: 20px; }
.legal-page li { margin-bottom: 8px; }
.callout {
  background: var(--cream-warm); border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0; padding: 18px 22px; margin: 26px 0;
  font-size: 15px;
}

/* ---------- Checkout ---------- */
.checkout-page { padding: 44px 0 80px; }
.checkout-grid {
  display: grid; grid-template-columns: 1.25fr .95fr; gap: 40px; align-items: start;
}
.co-panel {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow);
}
.co-panel h2 { font-size: 24px; margin-bottom: 6px; }
.co-step {
  font-size: 11px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 26px;
}
fieldset { border: 0; margin: 0 0 26px; padding: 0; }
legend {
  font-size: 11.5px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
  padding: 0 0 14px; width: 100%; border-bottom: 1px solid var(--line-soft);
  margin-bottom: 18px;
}
.field { margin-bottom: 16px; }
.field label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--ink); margin-bottom: 7px;
}
.field input, .field select {
  width: 100%; font-family: var(--sans); font-size: 15px; color: var(--text);
  padding: 12px 14px; background: #fdfcfa;
  border: 1px solid var(--line); border-radius: 10px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus {
  outline: none; border-color: var(--ink-soft);
  box-shadow: 0 0 0 3px rgba(23,51,46,.09);
}
.field input::placeholder { color: #b3ada1; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row-3 { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 14px; }

.card-brands {
  display: flex; gap: 8px; align-items: center;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--muted);
}
.card-brands span {
  border: 1px solid var(--line); border-radius: 5px;
  padding: 3px 8px; background: #fff;
}

.consent {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--cream-warm); border: 1px solid var(--line);
  border-radius: 12px; padding: 18px; margin: 24px 0;
}
.consent input { margin-top: 3px; width: 17px; height: 17px; flex: none; accent-color: var(--ink); }
.consent label { font-size: 13px; line-height: 1.65; color: #3d3b35; }
.consent strong { color: var(--ink); }

.form-error {
  display: none; background: #fdeeea; border: 1px solid #e8b7a6;
  color: #8d3a22; border-radius: 10px; padding: 12px 16px;
  font-size: 14px; margin-bottom: 18px;
}
.form-error.show { display: block; }

.form-notice {
  display: none; background: #eaf3ee; border: 1px solid #a9cbb8;
  color: #235741; border-radius: 10px; padding: 14px 16px;
  font-size: 14px; margin-top: 18px; line-height: 1.6;
}
.form-notice.show { display: block; }

/* Order summary */
.summary { position: sticky; top: 92px; }
.summary-inner {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
}
.summary-head { padding: 24px 26px 20px; border-bottom: 1px solid var(--line-soft); }
.summary-head h3 { font-size: 19px; }
.summary-head p { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); }
.summary-body { padding: 22px 26px; }
.sum-row {
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 14.5px; padding: 9px 0;
}
.sum-row .lbl { color: var(--muted); }
.sum-row .val { font-weight: 600; color: var(--ink); }
.sum-total {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px solid var(--line); margin-top: 12px; padding-top: 16px;
}
.sum-total .lbl { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sum-total .val { font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--ink); }
.summary-terms {
  background: var(--cream-warm); border-top: 1px solid var(--line-soft);
  padding: 18px 26px; font-size: 12px; line-height: 1.65; color: var(--muted);
}
.summary-terms strong { color: var(--ink); }

.plan-switch { display: flex; gap: 10px; margin-bottom: 22px; }
.plan-switch button {
  flex: 1; font-family: var(--sans); font-size: 13.5px; font-weight: 600;
  padding: 11px 12px; border-radius: 10px; cursor: pointer;
  background: #fff; border: 1px solid var(--line); color: var(--muted);
  transition: all .15s ease;
}
.plan-switch button[aria-pressed="true"] {
  background: var(--ink); border-color: var(--ink); color: #fff;
}

.secure-line {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 12.5px; color: var(--muted); margin-top: 16px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .summary { position: static; order: -1; }
  .inc-grid, .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--line); padding-bottom: 22px; }
  .stat:nth-child(2n) { border-right: 0; }
  .op-grid { grid-template-columns: 1fr; gap: 24px; }
  .plans { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav { display: none; }
  section { padding: 60px 0; }
  .hero { padding: 54px 0 52px; }
  .price-split { gap: 22px; padding: 26px 20px 20px; }
  .price-arrow { transform: rotate(90deg); }
  .cat-grid, .inc-grid, .trust-grid { grid-template-columns: 1fr; }
  .co-panel { padding: 24px 20px; }
  .row-3 { grid-template-columns: 1fr 1fr; }
  .row-3 > :first-child { grid-column: 1 / -1; }
  .footer-top { flex-direction: column; }
}
