/* The home page: the dewgrow.com look (badge, Fredoka word mark, garden
   greens), led by real app screens in phone frames, one feature per row.
   privacy.html, terms.html and delete-data.html keep styles.css. */
:root {
  --brand: #2F8A4E;
  --brand-deep: #1E5C3A;
  --brand-soft: #E6F2E9;
  --dew: #1F6FA8;
  --sun: #E0A23A;
  --sun-soft: #FFF4D6;
  --accent: #C9693A;
  --ink: #1E2A22;
  --ink-soft: #56645A;
  --paper: #F4F7F2;
  --card: #FFFFFF;
  --line: #DDE5DA;
  --bezel: #1B231E;
  --on-brand: #FFFFFF;
  --display: "Fredoka", "Inter", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 18px;
  --maxw: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #7CC48F; --brand-deep: #9AD8A8; --brand-soft: #213A28; --dew: #8CC2F0;
    --sun: #F2B33D; --sun-soft: #2A2418; --accent: #E0885A; --ink: #E6EFE7; --ink-soft: #A7B8AC;
    --paper: #111814; --card: #1A241E; --line: #2C3A31; --bezel: #050806; --on-brand: #0E1A12;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; }
a { color: var(--brand-deep); }
img { max-width: 100%; display: block; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* word mark */
.wordmark { font-family: var(--display); font-weight: 600; color: var(--brand-deep); letter-spacing: -.01em; }
.wordmark .dew { color: var(--dew); }

/* nav */
nav { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 20px; padding-block: 10px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.nav-links { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
.nav-links a { color: var(--ink-soft); font-weight: 600; font-size: .95rem; text-decoration: none; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--brand-deep); text-decoration: underline; }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: center; padding-block: 56px 40px; }
.status { display: inline-flex; align-items: center; gap: 8px; background: var(--brand-soft); border: 1px solid var(--brand); color: var(--brand-deep); font-weight: 700; font-size: .8rem; padding: 4px 12px; border-radius: 999px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.hero h1 { font-family: var(--display); font-weight: 600; font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.08; margin-top: 16px; color: var(--ink); }
.hero h1 .wordmark { display: block; font-size: 1.1em; margin-bottom: 4px; }
.lede { font-size: 1.18rem; color: var(--ink-soft); margin-top: 18px; max-width: 34em; }
.stores { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.store { display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 14px; border-radius: 14px; min-width: 190px; border: 1.5px dashed var(--line); color: var(--ink-soft); }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.15; font-weight: 700; font-size: 1.2rem; }
.store small { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
/* A store DewGrow is in: a solid button that links to it. */
a.store.live { border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper); text-decoration: none; }
a.store.live:hover, a.store.live:focus-visible { background: var(--brand-deep); border-color: var(--brand-deep); }
.fine { font-size: .88rem; color: var(--ink-soft); margin-top: 14px; }

/* phone frame */
.phone { width: 100%; max-width: 280px; margin-inline: auto; background: var(--bezel); border-radius: 38px; padding: 10px; box-shadow: 0 24px 48px rgba(20, 40, 28, .22); }
.phone img { border-radius: 29px; width: 100%; aspect-ratio: 600 / 1233; object-fit: cover; object-position: top; }
.phone.tilt { transform: rotate(2deg); }
.phone img.free { aspect-ratio: 600 / 1170; }
.duo { display: flex; gap: 16px; align-items: flex-start; }
.duo .phone { flex: 1 1 0; min-width: 0; max-width: 210px; padding: 8px; border-radius: 30px; }
.duo .phone img { border-radius: 23px; }
.duo .phone:last-child { margin-top: 36px; }
.feature.chat { grid-template-columns: minmax(0, 1fr) 440px; }

/* sections */
section { padding-block: 64px; }
section.band { background: var(--card); border-block: 1px solid var(--line); }
.kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-deep); font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; }
.kicker::before { content: ""; width: 26px; height: 3px; border-radius: 2px; background: var(--sun); }
h2 { font-family: var(--display); font-weight: 600; font-size: clamp(1.7rem, 3.6vw, 2.4rem); line-height: 1.15; margin-top: 8px; }
.sub { color: var(--ink-soft); max-width: 42em; margin-top: 10px; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.step .num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--sun-soft); border: 2px solid var(--sun); color: var(--brand-deep); font-weight: 800; }
.step h3 { font-size: 1.1rem; margin-top: 12px; }
.step p { color: var(--ink-soft); font-size: .95rem; margin-top: 4px; }

/* feature rows */
.features { display: grid; gap: 72px; margin-top: 40px; }
.feature { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 56px; align-items: center; }
.feature:nth-child(even) { grid-template-columns: minmax(0, 1fr) 280px; }
.feature:nth-child(even) .shot { order: 2; }
.feature h3 { font-family: var(--display); font-weight: 600; font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.2; }
.feature p { color: var(--ink-soft); margin-top: 12px; max-width: 32em; }
.feature ul { margin: 14px 0 0; padding-left: 20px; color: var(--ink-soft); display: grid; gap: 6px; max-width: 32em; }
.new { display: inline-block; vertical-align: middle; background: var(--brand); color: var(--on-brand); font-family: var(--body); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; margin-left: 8px; }
.quote { margin-top: 16px; background: var(--brand-soft); border-radius: 14px; padding: 12px 16px; font-weight: 600; color: var(--brand-deep); max-width: 30em; }

/* more */
.more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.tile { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.tile h3 { font-size: 1.02rem; display: flex; align-items: center; gap: 10px; }
.tile svg { width: 22px; height: 22px; flex: none; color: var(--brand); }
.tile p { color: var(--ink-soft); font-size: .93rem; margin-top: 6px; }
.tag { font-size: .7rem; font-weight: 700; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 1px 8px; margin-left: auto; white-space: nowrap; }
.tag.inline { font-family: var(--body); vertical-align: middle; margin-left: 8px; font-size: .72rem; padding: 3px 9px; }

/* privacy */
.privacy { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; color: var(--ink); }
.checks svg { width: 22px; height: 22px; color: var(--brand); margin-top: 2px; }

/* free vs premium table */
.table-scroll { overflow-x: auto; margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
table.compare { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .95rem; }
.compare th, .compare td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--display); font-weight: 600; font-size: 1.25rem; padding-block: 16px; }
.compare th:nth-child(2), .compare td:nth-child(2) { width: 26%; color: var(--ink-soft); }
.compare th:nth-child(3), .compare td:nth-child(3) { width: 26%; background: var(--brand-soft); color: var(--brand-deep); font-weight: 700; }
.compare tr.group th { background: var(--card); color: var(--brand-deep); font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding-block: 10px; }
.compare td.y::before { content: "\2713"; margin-right: 6px; color: var(--brand); font-weight: 800; }
.compare td.n { color: var(--ink-soft); opacity: .75; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare .new { font-size: .62rem; padding: 2px 7px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#plans .fine { margin-top: 14px; }

.callout { background: var(--brand-soft); border-radius: var(--radius); padding: 20px 22px; margin-top: 28px; font-size: .95rem; }

footer { padding-block: 44px 56px; color: var(--ink-soft); font-size: .85rem; border-top: 1px solid var(--line); }
footer .wrap { display: grid; gap: 10px; }
footer a { font-weight: 600; }

/* other apps from Cardrama, LLC */
.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 28px; }
.app-tile { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; color: var(--ink); text-decoration: none; }
.app-tile img { width: 56px; height: 56px; border-radius: 14px; }
.app-tile .t { display: grid; gap: 4px; min-width: 0; }
.app-tile .n { font-family: var(--display); font-weight: 600; font-size: 1.2rem; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.app-tile .d { color: var(--ink-soft); font-size: .95rem; }
.app-tile .go { color: var(--brand-deep); font-weight: 700; font-size: .92rem; margin-top: 2px; }
.app-tile:hover .go, .app-tile:focus-visible .go { text-decoration: underline; }
.chip { font-family: var(--body); font-size: .7rem; font-weight: 700; color: var(--ink); background: var(--sun-soft); border: 1px solid var(--sun); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.xnudge { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; margin-top: 18px; padding: 12px 16px; background: var(--sun-soft); border-radius: 14px; font-size: .93rem; max-width: 32em; }
.xnudge img { width: 40px; height: 40px; border-radius: 10px; }
.feature .xnudge p { margin: 0; color: var(--ink); max-width: none; }
.family-line img { width: 18px; height: 18px; border-radius: 5px; display: inline-block; vertical-align: -4px; margin-right: 5px; }
.family-line a { white-space: nowrap; margin-right: 10px; }
@media (prefers-reduced-motion: no-preference) {
  .app-tile { transition: transform .15s ease; }
  .app-tile:hover { transform: translateY(-3px); }
}

a:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }

@media (max-width: 820px) {
  .hero, .privacy { grid-template-columns: 1fr; gap: 32px; padding-block: 36px 24px; }
  .hero .phone-col { order: -1; }
  .feature, .feature:nth-child(even), .feature.chat { grid-template-columns: 1fr; gap: 24px; }
  .duo { justify-content: center; }
  .duo .phone:last-child { margin-top: 24px; }
  .feature:nth-child(even) .shot { order: 0; }
  .feature .phone, .privacy .phone, .hero .phone { max-width: 240px; }
  .phone.tilt { transform: none; }
  .steps, .more { grid-template-columns: 1fr; }
  .features { gap: 56px; }
  section { padding-block: 48px; }
}
/* Phones: the Free or Premium table stacks, so nothing scrolls sideways.
   Each feature takes a full line, with its Free and Premium answers in
   two labeled columns underneath. */
@media (max-width: 640px) {
  /* The menu: one even row under the word mark, not a ragged wrap. */
  .nav-inner { gap: 4px 16px; padding-block: 8px; }
  .nav-links { margin-left: 0; width: 100%; justify-content: space-between; gap: 8px; }
  .nav-links a { font-size: .88rem; }

  .table-scroll { overflow-x: visible; }
  table.compare { min-width: 0; font-size: .92rem; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .compare tbody { display: block; }
  .compare tr.group { display: block; }
  .compare tr.group th { display: block; }
  .compare tr:not(.group) { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
  .compare tbody tr:last-child { border-bottom: 0; }
  .compare tr:not(.group) td { border-bottom: 0; width: auto; padding: 6px 14px 12px; }
  .compare tr:not(.group) td:first-child { grid-column: 1 / -1; padding: 12px 14px 2px; font-weight: 600; color: var(--ink); }
  .compare td:nth-child(2)::before, .compare td:nth-child(3)::before {
    display: block; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 2px;
  }
  .compare td:nth-child(2)::before { content: "Free"; color: var(--ink-soft); }
  .compare td:nth-child(3)::before { content: "Premium"; color: var(--brand-deep); }
  .compare td.y::after { content: " \2713"; color: var(--brand); font-weight: 800; }
}

@media (prefers-reduced-motion: no-preference) {
  .phone { transition: transform .3s ease; }
}

/* How-to video cards: each card links to the video on YouTube. Plain
   links, no embedded player, so the page loads nothing from YouTube. */
a.step.vid { display: block; color: inherit; text-decoration: none; transition: transform .15s ease, border-color .15s ease; }
a.step.vid:hover, a.step.vid:focus-visible { transform: translateY(-3px); border-color: var(--brand); }
a.step.vid p { color: var(--brand-deep); font-weight: 600; }
.vid-all { margin-top: 24px; }
.vid-all a.store { display: inline-flex; }
/* Five menu links (How-to added): keep them on one line on a phone. */
@media (max-width: 640px) {
  .nav-links { gap: 6px; }
  .nav-links a { font-size: .82rem; }
}
