/* CDA website — same palette as the app */
:root {
  --bg: #F2F4F3;
  --card: #FFFFFF;
  --line: #D9DDDC;
  --green: #4E7F7A;
  --green-dark: #3D5A4A;
  --green-tint: #E6EFED;
  --olive: #7A8763;
  --purple: #6F5A82;
  --purple-tint: #EFEAF4;
  --text: #2F3E36;
  --muted: #5E6B64;
  --radius: 14px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-size: 26px; font-weight: 800; color: var(--green-dark); text-decoration: none; letter-spacing: -0.5px; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--green-dark); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--green); color: #fff; text-decoration: none;
  font-weight: 700; padding: 13px 22px; border-radius: 12px; border: 0;
}
.btn:hover { background: var(--green-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--green-dark); border: 1.5px solid var(--green); }
.btn.ghost:hover { background: var(--green-tint); }
.btn .small { display: block; font-size: 12px; font-weight: 500; opacity: 0.9; line-height: 1.2; }
.btn .big { display: block; font-size: 17px; line-height: 1.2; }
.soon { display: inline-block; background: var(--purple-tint); color: var(--purple); font-weight: 700; font-size: 13px; padding: 3px 10px; border-radius: 20px; }

/* Hero */
.hero { padding: 56px 0 52px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--olive); font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; font-size: 13px; margin: 0 0 10px; }
.hero h1 { font-size: 46px; line-height: 1.12; color: var(--green-dark); margin: 0 0 16px; letter-spacing: -1px; }
.hero p.lead { font-size: 19px; color: var(--muted); margin: 0 0 26px; max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 8px; }
.points li { padding-left: 28px; position: relative; color: var(--green-dark); font-weight: 600; }
.points li::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--green-tint); border: 2px solid var(--green); }

.phone {
  width: 280px; max-width: 100%; margin: 0 auto; position: relative;
  border-radius: 38px; padding: 12px; background: #1F2A25;
  /* green block just behind the phone, offset down-right */
  box-shadow: 16px 16px 0 0 var(--green), 0 20px 50px rgba(61, 90, 74, 0.25);
}
.phone img { border-radius: 28px; }

/* Screen slideshow inside the phone */
.showcase { text-align: center; }
.screens { position: relative; aspect-ratio: 540 / 1045; border-radius: 28px; overflow: hidden; background: var(--bg); }
.screens .screen { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity 0.8s ease; }
.screens .screen.on { opacity: 1; }
.screen-caption { margin: 26px 0 8px; font-weight: 700; color: var(--green-dark); min-height: 1.6em; }
.screen-dots { display: flex; justify-content: center; gap: 8px; }
.screen-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: var(--line); cursor: pointer; }
.screen-dots button[aria-selected="true"] { background: var(--green); width: 22px; border-radius: 5px; }
@media (prefers-reduced-motion: reduce) { .screens .screen { transition: none; } }

/* Sections */
section { padding: 48px 0; }
section.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: 32px; color: var(--green-dark); margin: 0 0 10px; letter-spacing: -0.5px; line-height: 1.2; }
.section-lead { color: var(--muted); margin: 0 0 30px; max-width: 40em; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
section.alt .card { background: var(--bg); }
.card h3 { margin: 0 0 8px; font-size: 19px; color: var(--green-dark); display: flex; align-items: center; gap: 10px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.icon { width: 34px; height: 34px; border-radius: 10px; background: var(--green-tint); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.icon svg { width: 19px; height: 19px; stroke: var(--green); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Compare */
.compare { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 16px; }
.compare th { background: var(--green-tint); color: var(--green-dark); }
.compare tr:last-child td { border-bottom: 0; }

/* Pricing */
.prices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 760px; }
.price { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.price.best { border: 2px solid var(--green); }
.price h3 { margin: 0; color: var(--green-dark); font-size: 20px; }
.price .amount { font-size: 38px; font-weight: 800; color: var(--green-dark); margin: 8px 0 0; }
.price .per { color: var(--muted); margin: 0 0 14px; }
.price ul { margin: 0; padding-left: 20px; color: var(--muted); }
.price .amount .was { font-size: 24px; font-weight: 600; color: var(--muted); text-decoration: line-through; text-decoration-thickness: 2px; margin-right: 6px; vertical-align: middle; }
.tag.offer-tag { background: #C6A24A; margin-left: 4px; }
.offer { margin: 14px 0 0; background: var(--green-tint); border-radius: 10px; padding: 10px 12px; font-size: 14px; color: var(--green-dark); }
.tag { display: inline-block; background: var(--green); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; margin-left: 8px; vertical-align: middle; }
.fine { font-size: 14px; color: var(--muted); margin-top: 16px; max-width: 46em; }

/* FAQ */
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; color: var(--green-dark); }
details p { margin: 10px 0 0; color: var(--muted); }

/* Notice */
.notice { background: var(--green-tint); border: 1px solid #B9D1CC; border-radius: var(--radius); padding: 18px 20px; color: var(--green-dark); }

/* Closing call to action — full-width green band */
section.cta { background: var(--green); color: #fff; padding: 44px 0; }
section.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
section.cta h2 { color: #fff; margin: 0 0 6px; }
section.cta p { margin: 0; color: #E6EFED; max-width: 36em; }
section.cta a { color: #fff; }
.btn.light { background: #fff; color: var(--green-dark); }
.btn.light:hover { background: var(--green-tint); color: var(--green-dark); }

/* Legal pages */
.doc { max-width: 760px; padding: 44px 20px 60px; margin: 0 auto; }
.doc h1 { font-size: 36px; color: var(--green-dark); margin: 0 0 6px; letter-spacing: -0.5px; }
.doc .updated { color: var(--muted); margin: 0 0 26px; }
.doc h2 { font-size: 22px; margin: 30px 0 8px; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 30px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer a { color: var(--green-dark); margin-right: 16px; }
.site-footer p { margin: 0; max-width: 46em; }

/* Sample dispute pack (home page section + sample-pack.html) */
section.sample .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center; }
section.sample .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
section.sample .points { margin-top: 0; }
section.sample .fine { margin-top: 12px; }
.sample-preview { display: block; }
.sample-preview img { width: 100%; height: auto; }
section.alt .compare th { background: var(--green-tint); }
#pricing .price { background: var(--card); }
.sample-doc { max-width: 860px; }
.sample-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 6px; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 26px; position: sticky; top: 64px; background: var(--bg); padding: 10px 0; z-index: 5; }
.jump a { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 5px 13px; font-size: 14px; font-weight: 600; color: var(--green-dark); text-decoration: none; }
.jump a:hover { background: var(--green-tint); }
.pack-page { margin: 0 0 34px; scroll-margin-top: 130px; }
.pack-page img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 30px rgba(61, 90, 74, 0.15); background: #fff; }
.pack-page figcaption { margin-top: 12px; color: var(--muted); font-size: 16px; }
.pack-page figcaption strong { color: var(--green-dark); }
.pack-page .pg { display: inline-block; background: var(--green-tint); color: var(--green-dark); font-weight: 700; font-size: 13px; padding: 2px 9px; border-radius: 12px; margin-right: 8px; }
.sample-end { margin-top: 10px; }

/* "Sample pack" in the menu: a pill with gold stars so it stands out */
.nav { align-items: center; }
.nav a.nav-star { display: inline-flex; align-items: center; background: var(--green-tint); border: 1.5px solid #C6A24A; border-radius: 20px; padding: 3px 12px; white-space: nowrap; }
.nav a.nav-star:hover, .nav a.nav-star[aria-current="page"] { background: #F6EDD3; text-decoration: none; color: var(--green-dark); }
.nav-star .star { color: #C6A24A; font-size: 14px; line-height: 1; margin: 0 6px; display: inline-block; animation: twinkle 2.4s ease-in-out infinite; }
.nav-star .star + .star, .nav-star .star:last-child { animation-delay: 1.2s; }
@keyframes twinkle { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35) rotate(15deg); opacity: 0.75; } }
@media (prefers-reduced-motion: reduce) { .nav-star .star { animation: none; } }

/* Mobile */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .phone { box-shadow: 12px 12px 0 0 var(--green), 0 20px 50px rgba(61, 90, 74, 0.25); }
  .hero h1 { font-size: 34px; }
  .grid { grid-template-columns: 1fr; }
  .prices { grid-template-columns: 1fr; }
  .nav { gap: 14px; }
  .nav a.hide-sm { display: none; }
  .nav a.nav-star { padding: 3px 9px; }
  .nav-star .star { margin: 0 4px; font-size: 12px; }
  h2 { font-size: 26px; }
  .compare th, .compare td { padding: 10px 12px; font-size: 15px; }
  section.sample .wrap { grid-template-columns: 1fr; gap: 24px; }
  .jump { position: static; margin-bottom: 18px; }
  .pack-page { scroll-margin-top: 74px; }
}

/* Small phones: keep the menu on one line next to the logo */
@media (max-width: 430px) {
  .site-header .wrap { gap: 10px; }
  .logo { font-size: 22px; }
  .nav { gap: 10px; }
  .nav a { font-size: 14px; }
  .nav a.nav-star { padding: 2px 8px; }
  .nav-star .star { margin: 0 3px; font-size: 11px; }
}
@media (max-width: 350px) {
  .site-header .wrap { padding: 0 12px; }
  .logo { font-size: 20px; }
  .nav { gap: 8px; }
  .nav a { font-size: 13px; }
  .nav-star .star { margin: 0 2px; }
}
