/* M26 Digital — shared styles. Change the palette here. */
:root {
  --forest: #10291f;
  --forest-2: #17382b;
  --forest-3: #21503d;
  --lime: #c9f26b;
  --lime-dark: #3f6212;
  --coral: #ff8266;
  --paper: #f5f6f0;
  --white: #ffffff;
  --ink: #14201a;
  --muted: #526159;
  --muted-on-dark: #b4c8bc;
  --line: #dce2d8;
  --line-on-dark: rgba(255, 255, 255, 0.14);

  --radius: 18px;
  --shadow: 0 18px 48px rgba(16, 41, 31, 0.1);
  --font: "Avenir Next", Avenir, "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1120px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.85rem, 4vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 650; }
h4 { font-size: 1.05rem; font-weight: 650; letter-spacing: -0.01em; }
p { text-wrap: pretty; }
a { color: inherit; }
ul, ol { list-style: none; }

:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }

.skip {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--lime); color: var(--forest);
  padding: .6rem 1rem; border-radius: 8px; font-weight: 650;
}
.skip:focus { top: 1rem; }

/* Unfilled [placeholders]: replace the whole <span class="ph"> with real text, then delete this rule. */
.ph {
  padding: 0 .3em; border: 2px dashed var(--coral); border-radius: 6px;
  background: rgba(255, 130, 102, .16);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--forest); color: var(--white);
  border-bottom: 1px solid var(--line-on-dark);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem 1.5rem; flex-wrap: wrap; padding-block: .85rem;
}
.logo { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.2rem; text-decoration: none; }
.logo img { width: 34px; height: 34px; }
.nav { display: flex; align-items: center; gap: 1.6rem; font-size: .98rem; }
.nav a:not(.btn) { text-decoration: none; color: var(--muted-on-dark); padding-block: .35rem; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover { color: var(--white); }
.nav a[aria-current="page"] { color: var(--white) !important; border-bottom-color: var(--lime) !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.4rem; border-radius: 999px;
  font-weight: 650; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  border: 2px solid transparent; transition: transform .15s, background-color .15s, border-color .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-lime { background: var(--lime); color: var(--forest); }
.btn-lime:hover { background: #d7fa8a; }
.btn-dark { background: var(--forest); color: var(--white); }
.btn-dark:hover { background: var(--forest-3); }
.btn-outline { border-color: currentColor; }
.btn-sm { padding: .55rem 1.05rem; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.center .btn-row { justify-content: center; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-white { background: var(--white); }
.section-dark { background: var(--forest); color: var(--white); }
.section-lime { background: var(--lime); color: var(--forest); }

.eyebrow {
  display: inline-block; margin-bottom: 1rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--lime-dark);
}
.section-dark .eyebrow { color: var(--lime); }
.section-lime .eyebrow { color: var(--forest); }

.lead { font-size: 1.15rem; color: var(--muted); margin-top: 1rem; max-width: 62ch; }
.section-dark .lead { color: var(--muted-on-dark); }
.section-lime .lead { color: var(--forest-2); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.section-head { margin-bottom: 3rem; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse 60% 70% at 85% 20%, rgba(201, 242, 107, .13), transparent 70%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(255, 130, 102, .12), transparent 70%),
    var(--forest);
  color: var(--white);
  padding-block: clamp(3.5rem, 9vw, 7rem);
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3.5rem; align-items: center; }
.hero .eyebrow { color: var(--lime); }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.hero h1 span { display: block; color: var(--lime); }
.hero .lead { color: var(--muted-on-dark); font-size: 1.2rem; }
.hero-note { margin-top: 1.25rem; font-size: .92rem; color: var(--muted-on-dark); }

.page-hero { background: var(--forest); color: var(--white); padding-block: clamp(3rem, 7vw, 5rem); }
.page-hero .eyebrow { color: var(--lime); }
.page-hero h1 { max-width: 18ch; font-size: clamp(2.2rem, 5vw, 3.4rem); }
.page-hero .lead { color: var(--muted-on-dark); }

.jump { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.jump a {
  text-decoration: none; font-size: .92rem; padding: .45rem 1rem;
  border: 1px solid var(--line-on-dark); border-radius: 999px;
}
.jump a:hover { border-color: var(--lime); color: var(--lime); }

/* Example plan card */
.plan { background: var(--white); color: var(--ink); border-radius: 24px; padding: 1.6rem; box-shadow: 0 30px 70px rgba(0, 0, 0, .35); }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.1rem; }
.tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: var(--paper); color: var(--muted); padding: .3rem .65rem; border-radius: 999px; white-space: nowrap;
}
.plan li { display: grid; grid-template-columns: 1fr auto; gap: .35rem 1rem; padding-block: .75rem; border-top: 1px solid var(--line); font-size: .96rem; }
.plan li strong { font-variant-numeric: tabular-nums; }
.bar { grid-column: 1 / -1; display: block; height: 6px; border-radius: 6px; background: var(--paper); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w); border-radius: 6px; background: var(--forest-3); }
.plan-total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: .6rem; padding: .9rem 1.1rem; background: var(--lime); color: var(--forest); border-radius: 14px; font-weight: 650; }
.plan-total b { font-size: 1.6rem; }

/* Fact strip */
.facts { background: var(--lime); color: var(--forest); padding-block: 1.75rem; }
.facts ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; text-align: center; }
.facts b { display: block; font-size: 1.7rem; line-height: 1.2; }
.facts span { font-size: .95rem; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; color: var(--ink); }
.section-white .card { background: var(--paper); }
.card p { color: var(--muted); margin-top: .6rem; }
.card-dark { background: var(--forest-2); border-color: var(--line-on-dark); color: var(--white); }
.section-dark .card-dark p { color: var(--muted-on-dark); }

.service { display: flex; flex-direction: column; }
.service .tag { align-self: flex-start; margin-bottom: 1.1rem; background: var(--forest); color: var(--lime); }
.service .price { margin-top: auto; padding-top: 1.5rem; font-size: 1.35rem; font-weight: 700; color: var(--ink); }
.service a.more { margin-top: .5rem; font-weight: 650; color: var(--lime-dark); text-underline-offset: 4px; }

/* Numbered steps */
.steps { counter-reset: step; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.steps li { counter-increment: step; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.section-white .steps li { background: var(--paper); }
.steps li::before {
  content: counter(step); display: grid; place-items: center;
  width: 40px; height: 40px; margin-bottom: 1rem; border-radius: 50%;
  background: var(--forest); color: var(--lime); font-weight: 700;
}
.steps p { color: var(--muted); margin-top: .5rem; font-size: .98rem; }
.steps small { display: block; margin-top: .9rem; font-weight: 700; color: var(--lime-dark); }

/* Tick lists */
.ticks li { position: relative; padding-left: 2rem; margin-top: .75rem; }
.ticks li::before { content: "✓"; position: absolute; left: 0; font-weight: 800; color: var(--lime-dark); }
.section-dark .ticks li::before, .card-dark .ticks li::before { color: var(--lime); }
.ticks.no li::before { content: "✕"; color: #b83a20; }
.card-dark .ticks.no li::before { color: var(--coral); }
.ticks-cols { columns: 2; column-gap: 3rem; }
.ticks-cols li { break-inside: avoid; }

/* Service detail */
.detail { display: grid; grid-template-columns: .85fr 1.15fr; gap: 3.5rem; align-items: start; }
.price-box { margin-top: 2rem; padding: 1.5rem; border-radius: var(--radius); background: var(--forest); color: var(--white); }
.section-dark .price-box { background: var(--forest-2); border: 1px solid var(--line-on-dark); }
.price-box b { display: block; font-size: 1.8rem; color: var(--lime); line-height: 1.2; }
.price-box p { color: var(--muted-on-dark); font-size: .95rem; margin-top: .4rem; }
.price-box .btn { margin-top: 1.1rem; }
.stack > * + * { margin-top: 2.5rem; }
.stack h3 { margin-bottom: .75rem; }

/* ---------- Pricing table ---------- */
.table-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; text-align: left; }
caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
th, td { padding: 1.15rem 1.4rem; vertical-align: top; border-top: 1px solid var(--line); }
thead th { border-top: 0; background: var(--forest); color: var(--white); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
tbody th { font-weight: 650; }
td.amount { font-weight: 700; white-space: nowrap; }
td:last-child { color: var(--muted); }
.footnote { margin-top: 1.25rem; font-size: .95rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin-inline: auto; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.section-white .faq details { background: var(--paper); }
.faq details + details { margin-top: .75rem; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; cursor: pointer; list-style: none; padding: 1.15rem 1.4rem; font-weight: 650; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--lime-dark); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 1.4rem 1.3rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: #0a1b14; color: var(--muted-on-dark); padding-block: 3.5rem 2rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; }
.site-footer .logo { color: var(--white); margin-bottom: .75rem; }
.site-footer h2 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--white); margin-bottom: .75rem; }
.site-footer li + li { margin-top: .35rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--lime); }
.copyright { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line-on-dark); font-size: .85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap, .detail { grid-template-columns: 1fr; }
  .detail { gap: 2.5rem; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 130px; }
  .nav { width: 100%; justify-content: space-between; gap: .75rem; font-size: .92rem; }
  .grid-2, .grid-4, .facts ul, .footer-grid { grid-template-columns: 1fr; }
  .ticks-cols { columns: 1; }
  .btn-row .btn { width: 100%; }

  /* Price table becomes stacked rows */
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  table, tbody, tr, th, td { display: block; }
  tbody tr { padding: 1.15rem 1.25rem; border-top: 1px solid var(--line); }
  tbody tr:first-child { border-top: 0; }
  th, td { padding: 0; border: 0; }
  td.amount { margin-block: .2rem; font-size: 1.2rem; white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Utilities (replace former inline styles so CSP can forbid them) ---------- */
.plan-title { font-size: 1.2rem; }
.bar i.w100 { --w: 100%; }
.bar i.w83 { --w: 83%; }
.bar i.w50 { --w: 50%; }
.mt-lg { margin-top: 3.5rem; }
.mt-sm { margin-top: 1.25rem; }
.mb-md { margin-bottom: 1.25rem; }
.copyright + .copyright-links { margin-top: .5rem; font-size: .85rem; }
.copyright-links a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Legal pages ---------- */
.legal { max-width: 780px; }
.legal h2 { font-size: 1.5rem; margin: 2.5rem 0 .75rem; }
.legal h3 { font-size: 1.1rem; margin: 1.5rem 0 .5rem; }
.legal p, .legal li { margin-top: .75rem; color: var(--ink); }
.legal ul { list-style: disc; padding-left: 1.4rem; }
.legal ol { list-style: decimal; padding-left: 1.4rem; }
.legal .updated { color: var(--muted); font-size: .95rem; }
