/* Savings Circle website — built from the "Savings Group App" Design canvas
   (LandingDesktop, LandingMobile, PricingDesktop artboards).
   Palette matches ui/theme/Color.kt; Turn gold is the contrast-lifted #E29D22. */

:root {
  --green: #0F5A45;
  --deep: #0B4535;
  --gold: #E29D22;
  --ivory: #F6F3EC;
  --ink: #16201C;
  --surface: #FFFFFF;
  --surface-alt: #FBFAF6;
  --border: #E4DED2;
  --divider: #EFEAE0;
  --text: #3F4A45;
  --muted: #5B6660;
  --green-wash: #E3EFE9;
  --mint: #A9D9C6;
  --mint-text: #D8EDE4;
  --mint-soft: #C9E6DA;
  --footer-text: #EDEFEA;
  --footer-muted: #A3AEA8;
  --footer-line: #26302B;
  --pro-check: #5CC29C;

  --display: "Bricolage Grotesque", "Manrope", sans-serif;
  --body: "Manrope", system-ui, sans-serif;
  --pad: clamp(16px, 5.5vw, 80px);
  --max: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 700; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 8px; color: #fff; }

.shell { max-width: var(--max); margin: 0 auto; }
.eyebrow { font-size: 13px; font-weight: 800; color: var(--green); letter-spacing: 0.8px; text-transform: uppercase; }
.check { flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 243, 236, 0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .shell { display: flex; align-items: center; gap: 36px; height: 80px; padding: 0 var(--pad); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand span { white-space: nowrap; font-family: var(--display); font-size: 22px; font-weight: 700; }
.main-nav { display: flex; gap: 28px; flex-grow: 1; justify-content: center; }
.main-nav a { white-space: nowrap; font-size: 15px; font-weight: 600; color: var(--ink); }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--green); }
.main-nav a[aria-current="page"] { font-weight: 800; }
.lang {
  height: 40px; border: 1px solid var(--border); border-radius: 10px; padding: 0 10px;
  background: var(--surface); font-family: inherit; font-size: 14px; font-weight: 700; color: var(--ink);
}
.pill-btn {
  height: 44px; padding: 0 20px; border-radius: 22px; background: var(--green); color: #fff;
  display: inline-flex; align-items: center; font-size: 15px; font-weight: 800; white-space: nowrap;
}
.pill-btn:hover { background: var(--deep); color: #fff; }
.menu-btn { display: none; width: 44px; height: 44px; border: none; background: transparent; color: var(--ink); margin-left: auto; padding: 0; cursor: pointer; }

@media (max-width: 1120px) {
  .site-header .shell { height: 64px; gap: 12px; }
  .brand svg { width: 30px; height: 30px; }
  .brand span { font-size: 20px; }
  .menu-btn { display: grid; place-items: center; }
  .main-nav, .site-header .lang, .site-header .pill-btn { display: none; }
  .site-header.open .shell { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 20px; }
  .site-header.open .brand, .site-header.open .menu-btn { height: 44px; }
  .site-header.open .main-nav {
    display: flex; flex-direction: column; gap: 0; order: 3; flex-basis: 100%;
  }
  .site-header.open .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--divider); font-size: 17px; }
  .site-header.open .lang, .site-header.open .pill-btn { display: inline-flex; order: 4; margin-top: 16px; }
  .site-header.open .pill-btn { order: 5; }
}

/* ---------- Store badges ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  height: 56px; padding: 0 20px; border-radius: 14px; background: var(--ink); color: #fff;
  display: inline-flex; align-items: center; gap: 10px;
}
.store:hover { color: #fff; background: #26302B; }
.store span { display: flex; flex-direction: column; line-height: 1.1; }
.store small { font-size: 11px; opacity: 0.8; }
.store b { font-size: 17px; font-weight: 800; }

/* ---------- Phone mockup: a 390×844 app screen scaled into a device frame ---------- */
.phone {
  --s: 0.78;
  width: calc(390px * var(--s) + 20px);
  height: calc(844px * var(--s) + 20px);
  border: 10px solid var(--ink);
  border-radius: calc(52px * var(--s));
  overflow: hidden;
  background: var(--ivory);
  box-shadow: 0 30px 60px rgba(22, 32, 28, 0.22);
  flex-shrink: 0;
}
.phone iframe {
  display: block; width: 390px; height: 844px; border: 0;
  transform: scale(var(--s)); transform-origin: 0 0;
  pointer-events: none;
}

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center;
  padding: 72px var(--pad) 40px;
}
.hero-copy { display: flex; flex-direction: column; gap: 26px; }
.badge {
  align-self: flex-start; font-size: 13px; font-weight: 800; color: var(--green); background: var(--green-wash);
  padding: 8px 14px; border-radius: 999px; letter-spacing: 0.4px;
}
.hero h1 { font-size: clamp(44px, 5.6vw, 80px); line-height: 1; letter-spacing: -0.03em; }
.hero .lede { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--text); max-width: 560px; }
.assurances { display: flex; flex-wrap: wrap; gap: 12px 22px; font-size: 14px; font-weight: 700; color: var(--text); }
.assurances span { display: flex; align-items: center; gap: 8px; }

.hero-art { position: relative; height: 700px; }
.hero-art .disc { position: absolute; left: 9%; top: 60px; width: 440px; height: 440px; border-radius: 50%; background: var(--green-wash); }
.hero-art .phone-back { position: absolute; left: 5%; top: 110px; --s: 0.66; }
.hero-art .phone-front { position: absolute; left: 36%; top: 10px; --s: 0.78; }

@media (max-width: 1180px) {
  .hero-art .phone-back { left: 0; }
  .hero-art .phone-front { left: 30%; }
}
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; gap: 32px; }
  .hero-art { height: auto; display: flex; justify-content: center; padding: 20px 0 0; }
  .hero-art .disc { left: 50%; top: 0; width: 300px; height: 300px; transform: translateX(-50%); }
  .hero-art .phone-back { display: none; }
  .hero-art .phone-front { position: relative; left: auto; top: auto; --s: 0.66; }
}
@media (max-width: 420px) {
  .hero-art .phone-front { --s: 0.6; }
  .store { padding: 0 16px; }
}

/* ---------- Names around the world ---------- */
.names { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 40px var(--pad) 80px; text-align: center; }
.names p { font-size: 16px; font-weight: 700; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 1100px; }
.chips span { display: flex; align-items: baseline; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
.chips b { font-size: 16px; font-weight: 800; }
.chips small { font-size: 12px; color: var(--muted); }
@media (max-width: 640px) {
  .names { padding-top: 24px; padding-bottom: 56px; }
  .chips span { padding: 8px 14px; }
  .chips b { font-size: 15px; }
  .chips small { display: none; }
}

/* ---------- Section heads ---------- */
.section-title { font-size: clamp(34px, 3.6vw, 52px); letter-spacing: -0.023em; line-height: 1.08; }

/* ---------- How it works ---------- */
.how { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.how .shell { padding: 96px var(--pad); display: flex; flex-direction: column; gap: 56px; }
.how header { text-align: center; display: flex; flex-direction: column; gap: 12px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.step { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.step .phone { --s: 0.62; }
.step-text { display: flex; flex-direction: column; gap: 8px; max-width: 320px; text-align: center; }
.num { width: 36px; height: 36px; border-radius: 18px; background: var(--green); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; align-self: center; flex: none; }
.step h3 { font-size: 22px; font-weight: 800; }
.step p { font-size: 15px; line-height: 1.6; color: var(--text); }

@media (max-width: 1100px) { .step .phone { --s: 0.5; } }
@media (max-width: 820px) {
  .how .shell { padding-top: 64px; padding-bottom: 64px; gap: 32px; }
  .how header { text-align: left; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .step { flex-direction: row; align-items: flex-start; }
  .step .phone { display: none; }
  .step-text { flex-direction: row; gap: 16px; text-align: left; max-width: none; }
  .step-text .num { align-self: flex-start; }
  .step-text div { display: flex; flex-direction: column; gap: 6px; }
}

/* ---------- Features ---------- */
.features .shell { padding: 96px var(--pad); display: flex; flex-direction: column; gap: 48px; }
.features header { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.features header > div { display: flex; flex-direction: column; gap: 12px; }
.features header h2 { max-width: 720px; }
.features header p { font-size: 17px; line-height: 1.6; color: var(--text); max-width: 420px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.feature .ico { width: 48px; height: 48px; border-radius: 14px; background: var(--green-wash); display: flex; align-items: center; justify-content: center; flex: none; }
.feature h3 { font-size: 20px; font-weight: 800; }
.feature p { font-size: 15px; line-height: 1.6; color: var(--text); }
@media (max-width: 1020px) {
  .features header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .features .shell { padding-top: 64px; padding-bottom: 64px; gap: 28px; }
  .feature-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature { flex-direction: row; align-items: flex-start; gap: 16px; padding: 20px; }
  .feature > div { display: flex; flex-direction: column; gap: 6px; }
  .feature h3 { font-size: 18px; }
}

/* ---------- Trust ---------- */
.trust-wrap { padding: 0 var(--pad); }
.trust {
  background: var(--green); color: #fff; border-radius: 32px; padding: 64px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center;
}
.trust-copy { display: flex; flex-direction: column; gap: 18px; }
.trust .eyebrow { color: var(--mint); }
.trust h2 { font-size: clamp(34px, 3.4vw, 48px); letter-spacing: -0.02em; line-height: 1.05; }
.trust-copy p { font-size: 18px; line-height: 1.6; color: var(--mint-text); }
.trust-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.trust-card { background: var(--deep); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.trust-card b { font-size: 17px; font-weight: 800; }
.trust-card span { font-size: 14px; color: var(--mint-soft); line-height: 1.5; }
@media (max-width: 960px) {
  .trust { grid-template-columns: 1fr; padding: 40px 28px; gap: 32px; border-radius: 24px; }
}
@media (max-width: 480px) { .trust-grid { grid-template-columns: 1fr; } }

/* ---------- Pricing teaser ---------- */
.teaser { padding: 96px var(--pad); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.teaser-copy { display: flex; flex-direction: column; gap: 16px; }
.teaser-copy h2 { font-size: clamp(34px, 3.4vw, 48px); letter-spacing: -0.02em; line-height: 1.08; }
.teaser-copy p { font-size: 17px; line-height: 1.6; color: var(--text); }
.outline-btn {
  align-self: flex-start; height: 48px; padding: 0 20px; border-radius: 24px; border: 1.5px solid var(--green);
  display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; color: var(--green);
}
.outline-btn:hover { background: var(--green-wash); }
.plans-mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.plan-mini { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.plan-mini.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.plan-mini .name { font-size: 18px; font-weight: 800; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.plan-mini .price { font-family: var(--display); font-size: 40px; font-weight: 700; }
.plan-mini .price small { font-family: var(--body); font-size: 16px; font-weight: 400; color: #A3AEA8; }
.plan-mini .list { font-size: 14px; color: var(--text); line-height: 1.7; }
.plan-mini.dark .list { color: #C9CFCB; }
.tag { font-size: 12px; font-weight: 800; background: var(--gold); color: var(--ink); padding: 4px 10px; border-radius: 8px; letter-spacing: 0.3px; }
@media (max-width: 960px) {
  .teaser { grid-template-columns: 1fr; gap: 32px; padding-top: 64px; padding-bottom: 64px; }
}
@media (max-width: 520px) { .plans-mini { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { padding: 0 var(--pad) 96px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 56px; }
.faq-head { display: flex; flex-direction: column; gap: 14px; }
.faq-head h2 { font-size: clamp(34px, 3.4vw, 48px); letter-spacing: -0.02em; line-height: 1.08; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px 22px; }
.faq summary {
  font-size: 18px; font-weight: 800; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 10px; height: 10px; flex: none; margin-right: 4px;
  border-right: 2px solid var(--green); border-bottom: 2px solid var(--green);
  transform: rotate(45deg) translateY(-3px); transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--text); }
@media (max-width: 960px) { .faq { grid-template-columns: 1fr; gap: 28px; padding-bottom: 64px; } }
@media (max-width: 520px) { .faq summary { font-size: 16px; } }

/* ---------- Closing CTA ---------- */
.cta-wrap { padding: 0 var(--pad) 96px; }
.cta {
  background: var(--green-wash); border-radius: 32px; padding: 64px;
  display: flex; justify-content: space-between; align-items: center; gap: 40px;
}
.cta-lead { display: flex; align-items: center; gap: 24px; }
.cta-lead > div { display: flex; flex-direction: column; gap: 8px; }
.cta h2 { font-size: clamp(32px, 3.1vw, 44px); letter-spacing: -0.02em; line-height: 1.08; }
.cta p { font-size: 17px; color: var(--text); }
@media (max-width: 1100px) {
  .cta { flex-direction: column; align-items: flex-start; padding: 40px 28px; border-radius: 24px; }
}
@media (max-width: 560px) {
  .cta-lead { flex-direction: column; align-items: flex-start; gap: 16px; }
  .cta-lead svg { width: 64px; height: 64px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--footer-text); }
.site-footer .shell { padding: 64px var(--pad) 40px; display: flex; flex-direction: column; gap: 36px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 32px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand > div { display: flex; align-items: center; gap: 10px; }
.footer-brand span { font-family: var(--display); font-size: 22px; font-weight: 700; }
.footer-brand p { font-size: 14px; line-height: 1.6; color: var(--footer-muted); max-width: 320px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h3 { font-family: var(--body); font-size: 13px; font-weight: 800; color: var(--footer-muted); letter-spacing: 0.6px; }
.footer-col a { font-size: 14px; color: var(--footer-text); }
.footer-col a:hover { color: var(--mint); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--footer-line); padding-top: 22px; font-size: 13px; color: var(--footer-muted); }
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-base { flex-direction: column; }
}

/* ---------- Pricing page ---------- */
.pricing-hero { text-align: center; padding: 72px var(--pad) 40px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.pricing-hero h1 { font-size: clamp(42px, 4.5vw, 64px); letter-spacing: -0.025em; line-height: 1.05; }
.pricing-hero p { font-size: 19px; color: var(--text); max-width: 640px; line-height: 1.55; }
.period { display: flex; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 4px; margin-top: 8px; }
.period button {
  height: 40px; padding: 0 20px; border-radius: 999px; border: none; background: transparent;
  font-family: inherit; font-size: 14px; font-weight: 700; color: var(--ink); cursor: pointer;
}
.period button[aria-checked="true"] { background: var(--ink); color: #fff; font-weight: 800; }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; padding: 0 var(--pad) 72px; align-items: start; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.plan.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.plan-name { display: flex; justify-content: space-between; align-items: center; font-size: 20px; font-weight: 800; }
.plan-price b { font-family: var(--display); font-size: 48px; font-weight: 700; }
.plan-price span { font-size: 16px; color: var(--text); }
.plan.dark .plan-price span { color: #C9CFCB; }
.plan .cta-btn {
  height: 50px; border-radius: 25px; border: 1.5px solid var(--green); color: var(--green);
  display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800;
}
.plan .cta-btn:hover { background: var(--green-wash); }
.plan.dark .cta-btn { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.plan.dark .cta-btn:hover { background: #EDAA33; }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--text); }
.plan li svg { margin-top: 2px; }
.plan.dark li { color: #C9CFCB; }
@media (max-width: 960px) {
  .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .plan.dark { order: -1; }
}

.compare-wrap { padding: 0 var(--pad) 72px; }
.compare { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; overflow-x: auto; }
.compare table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15px; text-align: left; }
.compare th, .compare td { padding: 16px 24px; border-bottom: 1px solid var(--divider); }
.compare thead th { background: var(--surface-alt); border-bottom-color: var(--border); font-size: 13px; font-weight: 800; color: var(--muted); letter-spacing: 0.4px; }
.compare thead th.pro { color: var(--green); }
.compare tbody th { font-weight: 700; width: 34%; }
.compare td { color: var(--text); }
.compare td.pro { font-weight: 700; color: var(--green); }
.compare tbody tr:last-child > * { border-bottom: none; }

.price-faq { padding: 0 var(--pad) 80px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.price-faq div { background: var(--green-wash); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.price-faq h3 { font-size: 17px; font-weight: 800; }
.price-faq p { font-size: 14px; line-height: 1.6; color: var(--deep); }
@media (max-width: 860px) { .price-faq { grid-template-columns: 1fr; } }

/* ---------- Plain content pages (privacy, terms) ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 64px var(--pad) 96px; }
.doc h1 { font-size: clamp(38px, 4.4vw, 56px); letter-spacing: -0.025em; line-height: 1.05; margin-bottom: 12px; }
.doc .meta { color: var(--muted); font-size: 15px; margin-bottom: 36px; }
.doc h2 { font-size: 24px; letter-spacing: -0.01em; margin: 36px 0 12px; }
.doc p, .doc li { font-size: 16px; line-height: 1.7; color: var(--text); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; margin: 12px 0; }
.draft {
  background: #FBEFD9; color: #8A5200; border-radius: 14px; padding: 14px 18px;
  font-size: 15px; font-weight: 700; line-height: 1.5; margin-bottom: 32px;
}

/* A plan that isn't on sale yet: the button shape without the button. */
.plan span.cta-btn { cursor: default; opacity: 0.75; }
.plan span.cta-btn:hover { background: transparent; }
.plan.dark span.cta-btn:hover { background: var(--gold); }
