/* Laureatus website
 * Palette: laurel night (from the gold wreath photograph), blazer green, medal gold.
 * Type: Libre Caslon Display for headings, Lexend for everything else.
 */

:root {
  --night: #0E1B17;          /* matches the backdrop of the wreath photograph */
  --night-2: #142721;
  --green: #1D5A42;
  --green-hover: #174A36;
  --green-tint: #EDF3EF;
  --gold: #D4AE45;           /* on dark backgrounds */
  --gold-hover: #E2C063;
  --gold-ink: #7E5E0E;       /* gold for text on white, 5.6:1 */
  --ink: #17221E;
  --muted: #4B5A53;
  --line: #D6E0DA;
  --paper: #FFFFFF;
  --on-night: #F3F1E8;
  --on-night-muted: #B9C4BE;

  --bronze: #B06B35;
  --silver: #A3ACB3;
  --medal-gold: #D4AE45;
  --goldplus: #E9C85A;
  --hit: #2E8A57;
  --smash: #7A4CC2;

  --serif: "Libre Caslon Display", "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: "Lexend", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 10px;
  --section: clamp(4rem, 9vw, 7rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; color: inherit; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.1rem); line-height: 1.05; }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.25rem; font-weight: 500; }
h4 { font-size: 1.0625rem; font-weight: 500; }
p, ul, ol, dl { margin: 0 0 1rem; }
strong, b { font-weight: 500; }

a { color: var(--green); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: 38rem; }
.lede { font-size: 1.1875rem; color: var(--muted); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--gold); color: var(--night); padding: .6rem 1rem; border-radius: 6px; font-weight: 500;
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3rem; padding: .7rem 1.4rem;
  border: 1.5px solid transparent; border-radius: 999px;
  font: 500 1rem/1.2 var(--sans); text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.btn-gold { background: var(--gold); color: var(--night); }
.btn-gold:hover { background: var(--gold-hover); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-hover); }
.btn-outline { border-color: var(--green); color: var(--green); background: transparent; }
.btn-outline:hover { background: var(--green-tint); }
.btn-outline-light { border-color: rgba(243, 241, 232, .55); color: var(--on-night); background: transparent; }
.btn-outline-light:hover { border-color: var(--on-night); background: rgba(255, 255, 255, .06); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--night); color: var(--on-night);
  border-bottom: 1px solid rgba(212, 174, 69, .18);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 4.5rem; }

.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  color: var(--gold); text-decoration: none; margin-right: auto;
  --logo-l: var(--on-night);
}
.brand .logo-mark { width: 2.6rem; height: 2.6rem; }
.brand-name { font-family: var(--serif); font-size: 1.6rem; color: var(--on-night); letter-spacing: .01em; line-height: 1; }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav a:not(.btn) {
  color: var(--on-night); text-decoration: none; padding: .5rem .8rem; border-radius: 6px; font-weight: 400; font-size: .97rem;
}
.nav a:not(.btn):hover { color: var(--gold-hover); }
.nav a[aria-current="page"] { color: var(--gold); }
.nav .btn { margin-left: .75rem; min-height: 2.6rem; padding: .5rem 1.15rem; font-size: .95rem; }

.nav-toggle {
  display: none; background: none; border: 0; color: var(--on-night);
  padding: .5rem; margin-right: -.5rem; cursor: pointer; border-radius: 6px;
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--night); padding: .5rem var(--gutter) 1.5rem;
    border-bottom: 1px solid rgba(212, 174, 69, .25);
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: .85rem 0; border-bottom: 1px solid rgba(255, 255, 255, .08); border-radius: 0; font-size: 1.05rem; }
  .nav .btn { margin: 1.25rem 0 0; min-height: 3rem; }
}

/* ---------- Hero ---------- */

.hero { background: var(--night); color: var(--on-night); overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 4vw, 4rem); align-items: center;
  padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(3rem, 7vw, 5rem);
}
.hero h1 { color: #fff; max-width: 13ch; }
.hero .lede { color: var(--on-night-muted); max-width: 34rem; margin-bottom: 2rem; }
.hero-call { margin-top: 1.5rem; color: var(--on-night-muted); font-size: .97rem; }
.hero-call a { color: var(--on-night); }

/* The wreath crowns a live medal: the one interactive moment on the page */
.medal-demo { --medal: var(--bronze); text-align: center; }
.medal-demo[data-medal="silver"] { --medal: var(--silver); }
.medal-demo[data-medal="gold"] { --medal: var(--medal-gold); }
.medal-demo[data-medal="goldplus"] { --medal: var(--goldplus); }

.wreath-stage {
  position: relative; aspect-ratio: 1; max-width: 560px; margin: 0 auto;
  display: grid; place-items: center;
}
.wreath-stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wreath-stage::after {
  /* soften the photograph's edges into the page */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(closest-side, transparent 78%, var(--night) 100%);
}
.medal-face { position: relative; z-index: 1; display: grid; justify-items: center; gap: .15rem; padding-top: 4%; }
.medal-disc {
  width: clamp(4rem, 9vw, 5.5rem); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .55), transparent 45%), var(--medal);
  box-shadow: inset 0 0 0 4px rgba(0, 0, 0, .12), inset 0 0 0 7px rgba(255, 255, 255, .25);
  display: grid; place-items: center; margin-bottom: .6rem;
  transition: background-color .4s;
}
.medal-disc svg { width: 46%; color: rgba(14, 27, 23, .55); }
.medal-demo.is-promoted .medal-disc { animation: promote .9s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes promote {
  0% { transform: scale(1); }
  35% { transform: scale(1.18) rotate(-6deg); }
  100% { transform: scale(1) rotate(0); }
}
.medal-name { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 1.85rem); color: #fff; line-height: 1.1; }
.medal-who { font-size: .9rem; color: var(--on-night-muted); }
.medal-points { font-size: .95rem; color: var(--on-night); margin-top: .35rem; }
.medal-points strong { font-size: 1.6rem; font-weight: 500; color: var(--gold); margin-right: .25rem; font-variant-numeric: tabular-nums; }
.medal-rank { font-size: .9rem; color: var(--gold); text-align: center; margin: 0 0 .35rem; font-variant-numeric: tabular-nums; }

.demo-panel {
  max-width: 30rem; margin: .25rem auto 0; text-align: left;
}
.demo-status {
  min-height: 3.2em; margin: 0 0 1rem; color: var(--on-night); font-size: .97rem; text-align: center;
}
.demo-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.demo-actions button {
  font: 400 .92rem/1.2 var(--sans); color: var(--on-night); cursor: pointer;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(212, 174, 69, .45);
  border-radius: 999px; padding: .6rem 1rem; min-height: 2.75rem;
}
.demo-actions button:hover { background: rgba(212, 174, 69, .14); border-color: var(--gold); }
.demo-actions button span { color: var(--gold); font-weight: 500; margin-left: .3rem; }
.demo-foot { margin: .9rem 0 0; text-align: center; font-size: .82rem; color: var(--on-night-muted); }
.demo-foot button {
  background: none; border: 0; padding: 0 .1rem; font: inherit; color: var(--on-night);
  text-decoration: underline; text-underline-offset: .18em; cursor: pointer;
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 16ch; }
  .wreath-stage { max-width: 420px; }
}

/* Load moment: the wreath settles in once */
@media (prefers-reduced-motion: no-preference) {
  .wreath-stage > img { animation: wreath-in 1.4s cubic-bezier(.2, .7, .2, 1) both; }
  .medal-face { animation: fade-in .8s .6s both; }
}
@keyframes wreath-in { from { opacity: 0; transform: scale(.94) rotate(-4deg); } }
@keyframes fade-in { from { opacity: 0; } }

/* ---------- Facts strip ---------- */

.facts { background: var(--night-2); color: var(--on-night); border-top: 1px solid rgba(212, 174, 69, .18); }
.facts ul {
  list-style: none; margin: 0; padding: 1.75rem 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem;
}
.facts li { display: grid; gap: .15rem; padding-left: 1rem; border-left: 2px solid var(--gold); font-size: .92rem; color: var(--on-night-muted); line-height: 1.45; }
.facts strong { color: #fff; font-size: 1rem; }
@media (max-width: 880px) { .facts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .facts ul { grid-template-columns: 1fr; } }

/* ---------- Sections ---------- */

.section { padding: var(--section) 0; }
.section-tint { background: var(--green-tint); }
.section-night { background: var(--night); color: var(--on-night); }
.section-night h2, .section-night h3 { color: #fff; }
.section-night .lede { color: var(--on-night-muted); }
.section-night a:not(.btn) { color: var(--gold); }

.section-head { max-width: 44rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head p:last-child { margin-bottom: 0; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.split-flip > :first-child { order: 2; }
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; }
  .split-flip > :first-child { order: 0; }
}

/* Tick list */
.ticks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.1rem; }
.ticks li { display: grid; grid-template-columns: 1.5rem 1fr; gap: .8rem; }
.ticks li::before {
  content: ""; width: 1.5rem; height: 1.5rem; margin-top: .1rem; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.ticks strong { display: block; color: var(--ink); }
.ticks span { color: var(--muted); }
.section-night .ticks li::before { background-color: var(--gold); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%230E1B17' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7'/%3E%3C/svg%3E"); }
.section-night .ticks strong { color: #fff; }
.section-night .ticks span { color: var(--on-night-muted); }

/* ---------- How it works: a term, from first reward to raffle day ---------- */

.term { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.term li { position: relative; padding: 3.25rem 1.5rem 0 0; counter-increment: step; }
.term li::before {
  content: counter(step); position: absolute; top: 0; left: 0; z-index: 1;
  width: 2.25rem; height: 2.25rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); border: 1.5px solid var(--green); color: var(--green); font-weight: 500; font-size: .95rem;
}
.term li::after { content: ""; position: absolute; top: 1.1rem; left: 0; right: 0; height: 2px; background: var(--line); }
.term li:last-child::before { background: var(--gold); border-color: var(--gold); color: var(--night); }
.term li:last-child::after { right: auto; width: 2.25rem; }
.term p { color: var(--muted); margin: 0; }
@media (max-width: 880px) {
  .term { grid-template-columns: 1fr; gap: 2rem; }
  .term li { padding: 0 0 0 3.5rem; }
  .term li::after { top: 2.25rem; bottom: -2rem; left: 1.07rem; right: auto; width: 2px; height: auto; }
  .term li:last-child::after { display: none; }
}

/* ---------- Medals ---------- */

.yeargroup { margin: 0 0 1rem; }
.yeargroup-bar { display: flex; height: 4.5rem; border-radius: var(--radius); overflow: hidden; }
.yeargroup-bar span {
  display: flex; align-items: flex-end; padding: .55rem .7rem; font-size: .85rem; font-weight: 500; color: var(--night);
}
.yg-bronze { flex: 30; background: var(--bronze); color: #fff !important; }
.yg-silver { flex: 30; background: var(--silver); }
.yg-gold { flex: 30; background: var(--medal-gold); }
.yg-goldplus { flex: 10; background: var(--goldplus); }
.yeargroup-scale { display: flex; justify-content: space-between; font-size: .82rem; color: var(--muted); margin-top: .5rem; }

.medal-key { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.medal-key li { border-top: 3px solid var(--k); padding-top: .8rem; }
.medal-key h3 { margin-bottom: .25rem; }
.medal-key p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 720px) { .medal-key { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.raffle-rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.raffle-rules p { color: var(--muted); margin: 0; }
@media (max-width: 880px) { .raffle-rules { grid-template-columns: 1fr; } }

/* ---------- Product mockups ---------- */

.mock {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 1px 2px rgba(14, 27, 23, .06), 0 18px 40px -18px rgba(14, 27, 23, .28);
  overflow: hidden; font-size: .85rem; line-height: 1.4;
}
.mock-bar { display: flex; align-items: center; gap: .75rem; padding: .7rem 1rem; background: var(--night); color: var(--on-night); font-size: .82rem; }
.mock-bar b { font-weight: 500; }
.mock-bar .dots { display: flex; gap: .3rem; }
.mock-bar .dots i { width: .55rem; height: .55rem; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.mock-tools { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem 1rem; border-bottom: 1px solid var(--line); }
.mock-tools .chip { background: var(--green); color: #fff; padding: .35rem .8rem; border-radius: 999px; font-weight: 500; font-size: .8rem; }
.mock-tools span:first-child { font-weight: 500; }

.mock table { width: 100%; border-collapse: collapse; }
.mock th, .mock td { text-align: left; padding: .55rem 1rem; border-bottom: 1px solid #EEF2EF; white-space: nowrap; }
.mock th { font-weight: 500; color: var(--muted); font-size: .76rem; }
.mock td:last-child, .mock th:last-child { text-align: right; }
.mock tr.is-picked td { background: #F4F8F5; }
.box { display: inline-block; width: .95rem; height: .95rem; border: 1.5px solid #A9B7AF; border-radius: 3px; vertical-align: -2px; }
.box.on { background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7'/%3E%3C/svg%3E") center / 90% no-repeat; border-color: var(--green); }
.pill { display: inline-flex; align-items: center; gap: .35rem; }
.pill::before { content: ""; width: .7rem; height: .7rem; border-radius: 50%; background: var(--k); }
.k-bronze { --k: var(--bronze); }
.k-silver { --k: var(--silver); }
.k-gold { --k: var(--medal-gold); }
.k-goldplus { --k: var(--goldplus); }
.up { color: var(--hit); }

.mock-sheet {
  margin: -.5rem 1rem 1rem auto; width: min(18rem, 85%); position: relative;
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: .9rem 1rem;
  box-shadow: 0 12px 30px -10px rgba(14, 27, 23, .35);
}
.mock-sheet p { margin: 0 0 .5rem; font-weight: 500; }
.mock-sheet ul { list-style: none; padding: 0; margin: 0 0 .75rem; display: grid; gap: .35rem; }
.mock-sheet li { display: flex; justify-content: space-between; padding: .4rem .6rem; border: 1px solid var(--line); border-radius: 6px; }
.mock-sheet li.on { border-color: var(--green); background: var(--green-tint); }
.mock-sheet .chip { display: block; text-align: center; background: var(--green); color: #fff; border-radius: 999px; padding: .4rem; font-weight: 500; }

/* Rewards analysis chart */
.chart { padding: 1rem 1rem .5rem; }
.chart-legend { display: flex; gap: 1rem; font-size: .78rem; color: var(--muted); margin-bottom: .75rem; }
.chart-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.chart-legend i { width: .7rem; height: .7rem; border-radius: 2px; background: var(--c); }
.bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; align-items: end; height: 10rem; border-bottom: 1px solid var(--line); }
.bars div { display: flex; gap: 3px; align-items: flex-end; height: 100%; justify-content: center; }
.bars i { width: 38%; max-width: 1.6rem; border-radius: 3px 3px 0 0; height: var(--h); background: var(--c); }
.bar-labels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; font-size: .78rem; color: var(--muted); padding: .4rem 0 .5rem; }
.c-boys { --c: #3D7CC9; }
.c-girls { --c: #D8669A; }

/* Phones */
.phones { display: flex; justify-content: center; gap: clamp(1rem, 3vw, 2rem); align-items: flex-start; }
.phone {
  width: min(16.5rem, 46%); border-radius: 2.2rem; padding: .55rem;
  background: #1D2A25; box-shadow: 0 24px 50px -20px rgba(14, 27, 23, .5);
}
.phone:nth-child(2) { margin-top: 3rem; }
.screen { border-radius: 1.75rem; overflow: hidden; background: #F6F8F7; font-size: .76rem; line-height: 1.35; min-height: 28rem; }
.screen-top { background: var(--green); color: #fff; padding: 1.4rem 1rem 1rem; text-align: center; }
.screen-top .medal-disc { width: 3.4rem; margin: .5rem auto .4rem; --medal: var(--silver); }
.screen-top .medal-disc svg { width: 46%; }
.screen-top b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.15rem; }
.screen-body { padding: .8rem; display: grid; gap: .55rem; }
.card { background: #fff; border-radius: 10px; padding: .65rem .75rem; border: 1px solid #E3EAE6; }
.card b { font-weight: 500; display: block; }
.card small { color: var(--muted); font-size: .7rem; }
.tag { display: inline-block; font-size: .66rem; font-weight: 500; padding: .1rem .45rem; border-radius: 999px; background: var(--green-tint); color: var(--green); }
.tag-smash { background: #F0E9FA; color: var(--smash); }
.tag-gift { background: #FBF3DC; color: var(--gold-ink); }
.screen-home .screen-top { background: var(--night); }
@media (max-width: 520px) {
  .phone { width: 48%; border-radius: 1.6rem; padding: .4rem; }
  .screen { border-radius: 1.25rem; min-height: 0; }
  .phone:nth-child(2) { margin-top: 2rem; }
}

.apps-copy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4rem); margin-top: clamp(3rem, 6vw, 4rem); }
.apps-copy ul { padding-left: 1.2rem; color: var(--muted); }
.apps-copy li { margin-bottom: .35rem; }
.note { font-size: .93rem; color: var(--muted); border-left: 2px solid var(--gold); padding-left: 1rem; }
@media (max-width: 760px) { .apps-copy { grid-template-columns: 1fr; } }

/* ---------- Safeguarding ---------- */

.guard-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 3vw, 2.5rem); }
.guard-list li { border-top: 1px solid rgba(212, 174, 69, .35); padding-top: 1rem; }
.guard-list h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.guard-list p { color: var(--on-night-muted); margin: 0; font-size: .97rem; }
.section:not(.section-night) .guard-list li { border-top-color: var(--line); }
.section:not(.section-night) .guard-list p { color: var(--muted); }
@media (max-width: 880px) { .guard-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .guard-list { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */

.calc {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0;
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--paper);
}
.calc-input { padding: clamp(1.5rem, 4vw, 2.5rem); }
.calc-input label { display: block; font-weight: 500; font-size: 1.1rem; margin-bottom: 1.25rem; }
.calc-count { font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 3.6rem); line-height: 1; color: var(--green); font-variant-numeric: tabular-nums; }
.calc-count small { font-family: var(--sans); font-size: 1rem; color: var(--muted); margin-left: .4rem; }
input[type="range"] { width: 100%; margin: 1.25rem 0 .4rem; accent-color: var(--green); height: 2rem; }
.range-scale { display: flex; justify-content: space-between; font-size: .82rem; color: var(--muted); }
.calc-result { background: var(--night); color: var(--on-night); padding: clamp(1.5rem, 4vw, 2.5rem); display: flex; flex-direction: column; gap: .2rem; }
.calc-tier { color: var(--on-night-muted); font-size: .95rem; margin: 0; }
.calc-price { font-family: var(--serif); font-size: clamp(2.8rem, 6vw, 3.8rem); line-height: 1.05; color: #fff; margin: .2rem 0 0; }
.calc-vat { color: var(--on-night-muted); font-size: .9rem; margin: 0 0 1rem; }
.calc-per { margin: 0 0 1.5rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .12); }
.calc-per strong { color: var(--gold); font-size: 1.25rem; }
.calc.is-quote .calc-vat, .calc.is-quote .calc-per { display: none; }
.calc-result .btn-row { margin-top: auto; }
@media (max-width: 760px) { .calc { grid-template-columns: 1fr; } }

.tier-table { width: 100%; border-collapse: collapse; margin-top: 2.5rem; font-variant-numeric: tabular-nums; }
.tier-table caption { text-align: left; font-weight: 500; margin-bottom: .75rem; }
.tier-table th, .tier-table td { text-align: left; padding: .9rem 1rem; border-bottom: 1px solid var(--line); }
.tier-table thead th { font-weight: 500; color: var(--muted); font-size: .9rem; }
.tier-table td:last-child, .tier-table th:last-child { text-align: right; }
.tier-table tr.is-current td { background: var(--green-tint); }
.tier-table tr.is-current td:first-child { box-shadow: inset 3px 0 0 var(--green); }

.includes { columns: 2; column-gap: 3rem; list-style: none; padding: 0; margin: 0; }
.includes li { break-inside: avoid; padding: .55rem 0 .55rem 1.9rem; position: relative; border-bottom: 1px solid var(--line); }
.includes li::before {
  content: ""; position: absolute; left: 0; top: .8rem; width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7'/%3E%3C/svg%3E") center / 72% no-repeat;
}
@media (max-width: 680px) { .includes { columns: 1; } }

.pay-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.pay-ways > div { display: flex; flex-direction: column; align-items: flex-start; padding-top: 1.25rem; border-top: 3px solid var(--green); }
.pay-ways > div:first-child { border-top-color: var(--gold); }
.pay-ways p { color: var(--muted); }
.pay-ways .btn { margin-top: auto; }
@media (max-width: 880px) { .pay-ways { grid-template-columns: 1fr; } }

.steps-list { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; max-width: 46rem; }
.steps-list li { counter-increment: s; display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem; }
.steps-list li::before {
  content: counter(s); width: 2.25rem; height: 2.25rem; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--green); color: var(--green); font-weight: 500;
}
.steps-list strong { display: block; }
.steps-list span { color: var(--muted); }

/* ---------- Name story ---------- */

.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.story figure { margin: 0; }
.story img { border-radius: var(--radius); filter: grayscale(1) contrast(1.05); }
.story figcaption { font-size: .8rem; color: var(--muted); margin-top: .5rem; }
.story blockquote { margin: 0 0 1.25rem; font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2; color: var(--green); }
@media (max-width: 820px) { .story { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */

.faq { max-width: 50rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.2rem 2.5rem 1.2rem 0; position: relative;
  font-weight: 500; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .4rem; top: 50%; width: .7rem; height: .7rem; margin-top: -.5rem;
  border-right: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -.15rem; }
.faq details p { color: var(--muted); padding-right: 2.5rem; }

/* ---------- Call to action band ---------- */

.cta {
  background:
    linear-gradient(180deg, var(--night), rgba(14, 27, 23, 0) 18%, rgba(14, 27, 23, 0) 82%, var(--night)),
    linear-gradient(90deg, var(--night) 42%, rgba(14, 27, 23, .55) 62%, rgba(14, 27, 23, 0) 80%),
    var(--night) url("../assets/img/laurel-wreath.jpg") right -4rem center / auto 135% no-repeat;
  color: var(--on-night); padding: clamp(4rem, 8vw, 6rem) 0;
}
.cta h2 { color: #fff; max-width: 16ch; }
.cta p { color: var(--on-night-muted); max-width: 32rem; margin-bottom: 2rem; }
.cta-contact { margin-top: 1.5rem; font-size: .97rem; color: var(--on-night-muted); }
.cta-contact a { color: var(--on-night); }
@media (max-width: 760px) {
  .cta { background:
    linear-gradient(180deg, rgba(14, 27, 23, .7), var(--night) 70%),
    var(--night) url("../assets/img/laurel-wreath.jpg") center top / 140% auto no-repeat; }
}

/* ---------- Page header (inner pages) ---------- */

.page-head { background: var(--night); color: var(--on-night); padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 6vw, 4rem); }
.page-head h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 3.6rem); max-width: 18ch; }
.page-head .lede { color: var(--on-night-muted); max-width: 40rem; margin: 0; }
.crumbs { font-size: .85rem; color: var(--on-night-muted); margin-bottom: 1.25rem; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; gap: .5rem; flex-wrap: wrap; }
.crumbs li + li::before { content: "/"; margin-right: .5rem; opacity: .6; }
.crumbs a { color: var(--on-night); }

/* ---------- Forms ---------- */

.form-wrap { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: clamp(1.5rem, 4vw, 2.5rem); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1.25rem; }
.field { display: grid; gap: .3rem; align-content: start; }
.field-full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

label, legend { font-weight: 500; font-size: .97rem; }
.hint { font-size: .85rem; color: var(--muted); margin-top: -.15rem; }
input:not([type="range"]):not([type="radio"]):not([type="checkbox"]), select, textarea {
  width: 100%; font: 300 1rem/1.4 var(--sans); color: var(--ink);
  padding: .75rem .85rem; min-height: 3rem; background: #fff;
  border: 1.5px solid #A9B7AF; border-radius: 8px;
}
textarea { min-height: 7.5rem; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--green); }
[aria-invalid="true"] { border-color: #B3261E !important; }
.field-error { color: #B3261E; font-size: .9rem; margin: 0; font-weight: 400; }
.field-error:empty { display: none; }

fieldset { border: 0; padding: 0; margin: 0; }
legend { margin-bottom: .6rem; padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: .6rem; }
.choices label {
  display: inline-flex; align-items: center; gap: .5rem; font-weight: 400; cursor: pointer;
  padding: .6rem 1rem; border: 1.5px solid #A9B7AF; border-radius: 999px;
}
.choices label:has(input:checked) { border-color: var(--green); background: var(--green-tint); }
.choices input { accent-color: var(--green); width: 1.1rem; height: 1.1rem; margin: 0; }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.75rem; }
.form-foot small { color: var(--muted); font-size: .85rem; flex: 1 1 16rem; }
.form-success { padding: 1rem 0; }
.form-success h3 { color: var(--green); }

.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-ways { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: 1.25rem; }
.contact-ways li { display: grid; grid-template-columns: 2.75rem 1fr; gap: 1rem; align-items: center; }
.contact-ways .icon { width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--green-tint); color: var(--green); display: grid; place-items: center; }
.contact-ways a { font-weight: 500; font-size: 1.1rem; }
.contact-ways small { display: block; color: var(--muted); font-size: .88rem; }

/* ---------- Prose (privacy) ---------- */

.prose { max-width: 44rem; }
.prose h2 { font-size: 1.6rem; margin-top: 2.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }

/* ---------- Footer ---------- */

.site-footer { background: var(--night); color: var(--on-night-muted); padding: 4rem 0 2rem; font-size: .93rem; border-top: 1px solid rgba(212, 174, 69, .18); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2.5rem; }
.footer-grid h2 { font-family: var(--sans); font-size: .95rem; font-weight: 500; color: #fff; margin-bottom: .9rem; letter-spacing: 0; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.site-footer a { color: var(--on-night); text-decoration: none; }
.site-footer .brand { color: var(--gold); }
.site-footer a:hover { color: var(--gold-hover); text-decoration: underline; }
.footer-about p { margin-top: 1rem; max-width: 22rem; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }
.footer-legal p { margin: 0; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Refinements ---------- */
h1, h2 { text-wrap: balance; }
.story blockquote i { font-style: normal; }
.split-top { align-items: start; }
