/* Padeland marketing site — mirrors the app's brand (lib/config/theme.dart) */

:root {
  --primary: #09614F;
  --primary-dark: #053E32;
  --mid: #67B834;
  --lime: #B6F745;
  --cream: #FFF8F0;
  --ink: #2A2A2A;
  --text-mid: #5A5A5A;
  --text-light: #8A8A8A;
  --sand: #F0F0EC;
  --white: #FFFFFF;
  --divider: #E8E8E4;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 100px;
  --shadow: 0 4px 24px rgba(26, 26, 26, .08);
  --shadow-lg: 0 18px 50px rgba(5, 62, 50, .18);
  --maxw: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Fraunces', Georgia, serif; line-height: 1.08; letter-spacing: -0.01em; }

a { color: inherit; text-decoration: none; }

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

.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }

.eyebrow {
  font-size: 13px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--primary);
}

/* ── Wordmark ─────────────────────────────────────────── */
.wordmark { font-family: 'Fraunces', serif; font-weight: 800; letter-spacing: -0.02em; }
.wordmark .a { color: currentColor; }
.wordmark .b { color: var(--mid); }
.on-dark .wordmark .a, .wordmark.on-dark .a { color: #fff; }
.on-dark .wordmark .b, .wordmark.on-dark .b { color: var(--lime); }

/* ── Buttons / badges ─────────────────────────────────── */
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff;
  border-radius: 14px; padding: 10px 16px; min-width: 180px;
  border: 1px solid rgba(255,255,255,.08);
}
.badge svg { width: 24px; height: 24px; flex: none; }
.badge .bt { display: flex; flex-direction: column; line-height: 1.15; }
.badge .bt small { font-size: 10px; opacity: .8; letter-spacing: .4px; }
.badge .bt span { font-size: 15px; font-weight: 700; }
.badge--soon { opacity: .92; cursor: default; }
.soon-pill {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .6px;
  text-transform: uppercase; color: var(--primary);
  background: var(--lime); border-radius: var(--radius-full); padding: 4px 11px;
}

/* ── Nav ──────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 240, .85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--divider);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav .brand { display: flex; align-items: center; gap: 10px; font-size: 22px; }
.nav .brand img { width: 30px; height: 30px; }
.nav .links { display: flex; align-items: center; gap: 28px; }
.nav .links a { font-size: 15px; font-weight: 600; color: var(--text-mid); }
.nav .links a:hover { color: var(--primary); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  background: linear-gradient(150deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; overflow: hidden; position: relative;
}
.hero::after {
  content: ''; position: absolute; right: -120px; top: -120px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(182,247,69,.18), transparent 70%);
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero h1 { font-size: 54px; font-weight: 900; color: #fff; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero p.lead { font-size: 19px; color: rgba(255,255,255,.82); margin: 18px 0 28px; max-width: 30ch; }
.hero .eyebrow { color: var(--lime); }

/* ── Phone mockup ─────────────────────────────────────── */
.phone-wrap { display: flex; justify-content: center; }
.phone {
  width: 300px; height: 600px; background: var(--cream);
  border: 10px solid #14201d; border-radius: 44px;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.phone .notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 120px; height: 26px; background: #14201d;
  border-bottom-left-radius: 14px; border-bottom-right-radius: 14px; z-index: 3;
}
.phone .screen { position: absolute; inset: 0; padding: 40px 16px 16px; overflow: hidden; }

/* mini scoreboard inside the phone */
.mini-appbar { background: var(--primary); color: #fff; border-radius: 12px; padding: 12px 14px; font-family: 'Fraunces', serif; font-weight: 800; font-size: 17px; display:flex; align-items:center; justify-content:space-between; }
.mini-appbar .rd { font-family:'DM Sans',sans-serif; font-size: 11px; font-weight:700; background: rgba(255,255,255,.16); padding: 3px 8px; border-radius: 100px; }
.score-card { background:#fff; border:1.5px solid var(--divider); border-radius: 16px; padding: 14px; margin-top: 12px; box-shadow: var(--shadow); }
.score-row { display:flex; align-items:center; justify-content:space-between; padding: 8px 0; }
.score-row + .score-row { border-top: 1px solid var(--divider); }
.team { display:flex; align-items:center; gap: 8px; }
.dot { width: 26px; height: 26px; border-radius: 50%; display:grid; place-items:center; color:#fff; font-size: 12px; font-weight:800; font-family:'DM Sans',sans-serif; }
.team .nm { font-size: 13px; font-weight: 700; }
.score { font-family:'Fraunces',serif; font-weight: 900; font-size: 26px; color: var(--primary); }
.mini-cta { margin-top: 12px; background: var(--primary); color:#fff; text-align:center; border-radius: 100px; padding: 11px; font-weight: 700; font-size: 14px; }

/* mini chat */
.bubble { max-width: 78%; padding: 9px 13px; border-radius: 16px; font-size: 13px; margin: 6px 0; }
.bubble.them { background:#fff; border:1.5px solid var(--divider); border-bottom-left-radius:6px; }
.bubble.me { background: var(--primary); color:#fff; margin-left:auto; border-bottom-right-radius:6px; }
.react { display:inline-block; background:#fff; border:1px solid var(--divider); border-radius:100px; padding:1px 6px; font-size:12px; box-shadow:var(--shadow); margin-top:-4px; }
.poll { background:#fff; border:1.5px solid var(--divider); border-radius:16px; padding:12px; margin-top:8px; }
.poll .q { font-size:13px; font-weight:800; margin-bottom:8px; }
.poll .opt { position:relative; background: var(--sand); border-radius:8px; height:30px; margin-bottom:6px; overflow:hidden; }
.poll .opt .fill { position:absolute; inset:0; background: rgba(182,247,69,.55); }
.poll .opt .lbl { position:absolute; inset:0; display:flex; align-items:center; padding:0 10px; font-size:12px; font-weight:600; }

/* ── Feature grid ─────────────────────────────────────── */
.center { text-align: center; }
.section h2 { font-size: 38px; font-weight: 800; }
.section .sub { color: var(--text-mid); font-size: 18px; margin-top: 10px; max-width: 56ch; margin-inline:auto; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.card {
  background: #fff; border: 1.5px solid var(--divider); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow);
}
.card .ic {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--lime); margin-bottom: 14px;
}
.card .ic svg { width: 24px; height: 24px; stroke: var(--primary); }
.card h3 { font-size: 19px; font-weight: 700; }
.card p { color: var(--text-mid); font-size: 15px; margin-top: 6px; }

/* ── How it works ─────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.step .n {
  width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: #fff;
  display: grid; place-items: center; font-family:'Fraunces',serif; font-weight: 800; margin-bottom: 12px;
}
.step h3 { font-size: 17px; }
.step p { color: var(--text-mid); font-size: 14px; margin-top: 4px; }

/* ── Split highlight (chat) ───────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.alt { background: var(--badge-green, #EFF5ED); }
.feature-list { margin-top: 18px; display: grid; gap: 12px; }
.feature-list li { list-style: none; display: flex; gap: 10px; font-size: 16px; color: var(--ink); }
.feature-list .tick { color: var(--primary); font-weight: 900; }

/* ── CTA band ─────────────────────────────────────────── */
.cta {
  background: linear-gradient(150deg, var(--primary), var(--primary-dark)); color: #fff;
  border-radius: var(--radius-lg); padding: 56px; text-align: center; box-shadow: var(--shadow-lg);
}
.cta h2 { font-size: 34px; color: #fff; }
.cta p { color: rgba(255,255,255,.8); margin: 12px 0 26px; font-size: 17px; }
.cta .store-badges { justify-content: center; }

/* ── Footer ───────────────────────────────────────────── */
.footer { border-top: 1px solid var(--divider); padding: 48px 0; }
.footer .row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.footer .brand { display:flex; align-items:center; gap:10px; font-size:20px; }
.footer .brand img { width: 28px; height: 28px; }
.footer .tag { color: var(--text-light); font-size: 14px; margin-top: 8px; }
.footer .flinks { display: flex; gap: 22px; font-size: 15px; font-weight: 600; color: var(--text-mid); flex-wrap: wrap; }
.footer .flinks a:hover { color: var(--primary); }
.footer .copy { color: var(--text-light); font-size: 13px; margin-top: 28px; }

/* ── Legal / support content pages ────────────────────── */
.doc { max-width: 760px; }
.doc h1 { font-size: 40px; font-weight: 900; }
.doc .updated { color: var(--text-light); font-size: 14px; margin-top: 8px; }
.doc h2 { font-size: 24px; font-weight: 800; margin-top: 36px; }
.doc h3 { font-size: 18px; margin-top: 24px; }
.doc p, .doc li { color: var(--text-mid); font-size: 16px; margin-top: 12px; }
.doc ul { margin-top: 12px; padding-left: 22px; }
.doc li { margin-top: 8px; }
.doc a.link { color: var(--primary); font-weight: 600; text-decoration: underline; }
.faq { background:#fff; border:1.5px solid var(--divider); border-radius: var(--radius-md); padding: 4px 20px; margin-top: 24px; }
.faq details { border-bottom: 1px solid var(--divider); padding: 16px 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary { font-family:'Fraunces',serif; font-weight:700; font-size: 17px; cursor: pointer; color: var(--ink); }
.faq details[open] summary { color: var(--primary); }
.faq p { margin-top: 10px; }

/* ── Feature groups (features page) ───────────────────── */
.group { padding: 64px 0; }
.group:nth-child(even) { background: #EFF5ED; }
.group .head { max-width: 640px; }
.group .head h2 { font-size: 32px; font-weight: 800; }
.group .head .sub { margin-top: 8px; margin-inline: 0; }
.group .grid { margin-top: 32px; }

/* ── Pricing ──────────────────────────────────────────── */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; text-align: left; }
.tier {
  background: #fff; border: 1.5px solid var(--divider); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow); position: relative; display: flex; flex-direction: column;
}
.tier.feat { border-color: var(--mid); box-shadow: var(--shadow-lg); }
.tier .tag {
  position: absolute; top: -12px; left: 24px; background: var(--mid); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase;
  padding: 4px 12px; border-radius: var(--radius-full);
}
.tier h3 { font-size: 18px; font-weight: 700; }
.tier .amt { font-family: 'Fraunces', serif; font-weight: 900; font-size: 46px; color: var(--primary); line-height: 1; margin-top: 10px; }
.tier .amt .cur { font-size: 24px; vertical-align: super; font-weight: 800; }
.tier .per { color: var(--text-mid); font-size: 14px; margin-top: 10px; }
.tier .save { display: inline-block; margin-top: 14px; background: var(--lime); color: var(--primary); font-weight: 800; font-size: 12px; padding: 4px 12px; border-radius: var(--radius-full); }
.fineprint { color: var(--text-light); font-size: 13px; margin-top: 26px; max-width: 60ch; margin-inline: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
.chip { background: #fff; border: 1.5px solid var(--divider); border-radius: var(--radius-full); padding: 8px 16px; font-size: 14px; font-weight: 700; color: var(--ink); box-shadow: var(--shadow); }
.chip .c { color: var(--mid); margin-right: 6px; font-weight: 900; }

/* ── Sub-page header band ─────────────────────────────── */
.pagehead { background: linear-gradient(150deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; padding: 64px 0 56px; text-align: center; position: relative; overflow: hidden; }
.pagehead::after { content: ''; position: absolute; right: -120px; top: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(182,247,69,.16), transparent 70%); }
.pagehead .eyebrow { color: var(--lime); }
.pagehead h1 { font-size: 46px; font-weight: 900; color: #fff; margin-top: 8px; }
.pagehead h1 em { font-style: normal; color: var(--lime); }
.pagehead p { color: rgba(255,255,255,.82); font-size: 18px; margin: 14px auto 0; max-width: 52ch; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 880px) {
  .tiers { grid-template-columns: 1fr; }
  .pagehead h1 { font-size: 34px; }
  .group .head h2 { font-size: 26px; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero h1 { font-size: 40px; }
  .hero p.lead { margin-inline: auto; }
  .hero .store-badges { justify-content: center; }
  .phone-wrap { margin-top: 12px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split .phone-wrap { order: -1; }
  .nav .links { display: none; }
  .nav .links.open {
    display: flex; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column;
    background: var(--cream); border-bottom: 1px solid var(--divider); padding: 16px 24px; gap: 16px;
  }
  .nav-toggle { display: block; }
  .section { padding: 60px 0; }
  .cta { padding: 40px 22px; }
  .section h2, .cta h2 { font-size: 30px; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .badge { min-width: 0; flex: 1; }
}
