/* Tokens: docs/07-frontend.md (same values as web/src/styles/tokens.css). */
:root {
  --bg: #ffffff;
  --surface: #f5f8f6;
  --border: #e2e8e4;
  --input-border: #cbd5cf;
  --text: #0e1a13;
  --text-2: #4b5b52;
  --primary: #0b7a45;
  --primary-hover: #08633a;
  --tint: #e6f4ec;
  --dark: #0e1a13;
  --dark-card: #131b17;
  --dark-border: #25332b;
  --dark-text-2: #a3b3a9;
  --accent-dark: #34c77b;
  --sans: 'Inter', system-ui, sans-serif;
  --head: 'Space Grotesk', 'Inter', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; }
h3 { font-size: 21px; }
p { margin: 0; }
a { color: var(--primary); }
.mono { font-family: var(--mono); }
.muted { color: var(--text-2); }
.small { font-size: 14px; }
.green { color: var(--primary); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 880px; }
.section { padding-top: 88px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 40px; }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.section-row { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-end; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
.between { display: flex; justify-content: space-between; }

/* Buttons */
.btn { height: 44px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 10px; border: 1px solid transparent; font: 600 15px var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer; }
.btn-lg { height: 52px; padding: 0 24px; border-radius: 12px; font-size: 16px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: #fff; color: var(--text); border-color: var(--input-border); }
.btn-secondary:hover { background: var(--surface); }
.btn-white { background: #fff; color: var(--primary); font-weight: 700; }

/* Header */
.header { border-bottom: 1px solid var(--border); background: #fff; position: sticky; top: 0; z-index: 10; }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-text { font-family: var(--head); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; color: var(--text); }
.logo-text span { color: var(--primary); }
.nav-links { display: flex; gap: 28px; font-weight: 500; font-size: 15px; }
.nav-links a { color: var(--text); text-decoration: none; }
.nav-links a:hover { color: var(--primary); }
.nav-actions { display: flex; gap: 10px; }

/* Hero */
.hero { padding-top: 80px; padding-bottom: 72px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.hero h1 { font-size: clamp(38px, 6vw, 66px); line-height: 1.03; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--primary); }
.lead { font-size: 19px; color: var(--text-2); max-width: 560px; }
.pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--tint); color: var(--primary); font-size: 14px; font-weight: 600; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: var(--text-2); }
.trust li::before { content: '✓'; color: var(--primary); font-weight: 700; margin-right: 8px; }

.hero-card { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); }
.mock { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 16px; background: #fff; border: 1px solid var(--border); }
.mock small { font-size: 12px; color: var(--text-2); }
.mock b { font-size: 15px; }
.mock-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.mock-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mock-grid div { display: flex; flex-direction: column; gap: 2px; }
.mock-disk { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.bar { height: 8px; border-radius: 999px; background: #edf1ee; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--primary); border-radius: 999px; }
.mock-row { display: flex; gap: 14px; }
.mock-row .mock { flex: 1; }
.mock-dark { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 16px; background: var(--dark); color: #e7efea; font-size: 14px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--tint); color: var(--primary); font-size: 13px; font-weight: 600; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Features */
.band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.feature { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: 18px; background: #fff; border: 1px solid var(--border); }
.feature p { font-size: 15px; color: var(--text-2); }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--tint); color: var(--primary); display: flex; align-items: center; justify-content: center; }

/* Plans */
.segmented { display: inline-flex; padding: 4px; gap: 4px; border-radius: 12px; background: #edf1ee; }
.segmented button { height: 44px; padding: 0 16px; border: 0; border-radius: 9px; background: transparent; font: 600 15px var(--sans); color: var(--text-2); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.segmented button[aria-pressed='true'] { background: #fff; color: var(--text); }
.save { padding: 2px 8px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 12px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 28px; border-radius: 20px; border: 1px solid var(--border); background: #fff; }
.plan p { font-size: 14px; margin-top: -10px; }
.plan.popular { border: 2px solid var(--primary); background: #f5fbf7; }
.flag { position: absolute; top: -13px; left: 28px; padding: 4px 12px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 600; }
.price { font-family: var(--head); font-size: 40px; font-weight: 600; letter-spacing: -0.03em; }
.per-year { font-size: 13px; min-height: 20px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; font-size: 15px; }
.plan li::before { content: '✓'; color: var(--primary); font-weight: 700; margin-right: 10px; }

/* Steps */
.dark { background: var(--dark); color: #e7efea; }
.step { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: 18px; background: var(--dark-card); border: 1px solid var(--dark-border); }
.step p { color: var(--dark-text-2); font-size: 15px; }
.step .num { color: var(--accent-dark); }
.pay-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--dark-text-2); }
.chip { padding: 8px 16px; border-radius: 10px; border: 1px solid var(--dark-border); color: #e7efea; font-weight: 600; }

/* FAQ */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { min-height: 64px; padding: 18px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 600; font-size: 17px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex-shrink: 0; width: 32px; height: 32px; border-radius: 8px; background: var(--surface); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 48px 22px 0; color: var(--text-2); font-size: 15px; }

/* CTA, footer */
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding: 56px; border-radius: 28px; background: var(--primary); color: #fff; }
.cta div { display: flex; flex-direction: column; gap: 10px; flex: 1 1 420px; }
.cta p { color: #d5eedf; font-size: 17px; }
.footer { background: var(--surface); border-top: 1px solid var(--border); }
.footer-grid { padding-top: 56px; padding-bottom: 40px; display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; font-size: 14px; }
.footer-grid > div { display: flex; flex-direction: column; gap: 10px; }
.footer-grid > div:first-child { flex: 1 1 280px; }
.footer-grid a { color: var(--text-2); text-decoration: none; }
.footer-grid a:hover { color: var(--primary); }
.copyright { padding-top: 20px; padding-bottom: 32px; border-top: 1px solid var(--border); font-size: 13px; }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .hero { padding-top: 48px; }
  .cta { padding: 32px; }
  .mock-row { flex-direction: column; }
}

/* ---------- Header extras ---------- */
.skip { position: absolute; left: -9999px; top: 8px; z-index: 20; padding: 10px 14px; border-radius: 10px; background: var(--primary); color: #fff; font-weight: 600; }
.skip:focus { left: 16px; }
.lang { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; color: var(--text-2); font-weight: 600; font-size: 14px; text-decoration: none; }
.lang:hover { color: var(--primary); background: var(--surface); }
.mnav { display: none; position: relative; }
.mnav summary { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--input-border); cursor: pointer; list-style: none; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav-panel { position: absolute; right: 0; top: 52px; min-width: 220px; padding: 8px; display: flex; flex-direction: column; border-radius: 14px; background: #fff; border: 1px solid var(--border); box-shadow: 0 12px 32px rgba(14, 26, 19, 0.12); }
.mnav-panel a { padding: 12px 14px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 500; }
.mnav-panel a:hover { background: var(--surface); }

/* ---------- Services, audience ---------- */
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { padding: 3px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; color: var(--text-2); }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.who { display: flex; flex-direction: column; border-radius: 18px; background: #fff; border: 1px solid var(--border); overflow: hidden; }
.who-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: var(--surface); }
.who-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 24px; }
.why-photo { margin: 0; border-radius: 24px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.why-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; }
.who p { font-size: 15px; color: var(--text-2); flex: 1; }
.who-plan { align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: var(--tint); color: var(--primary); font-size: 13px; font-weight: 600; }

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; text-align: center; }
.notfound .code { font-size: 15px; color: var(--primary); }
.notfound h1 { font-size: clamp(28px, 5vw, 40px); }

@media (max-width: 760px) {
  .mnav { display: block; }
  .hide-sm { display: none; }
}
.mock b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Hero orbit: the server and the services around it ---------- */
/* The hero is one light band; the diagram sits on it without a box of its own. */
.hero-band {
  background:
    radial-gradient(circle at 74% 42%, rgba(11, 122, 69, 0.08), transparent 40%),
    radial-gradient(rgba(14, 26, 19, 0.07) 1px, transparent 1.5px) 0 0 / 24px 24px,
    #ffffff;
  border-bottom: 1px solid var(--border);
}
.hero-band .hero { padding-bottom: 88px; }

.orbit {
  --o-line: #0b7a45; --o-ring: rgba(14, 26, 19, 0.09); --o-node: #9aa8a0;
  position: relative; flex: 1 1 480px; min-width: 0;
}
.orbit-stage { position: relative; aspect-ratio: 560 / 520; }
.orbit-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.orbit .ring { fill: none; stroke: var(--o-ring); stroke-width: 1.5; }
.orbit .links path { fill: none; stroke: var(--o-line); stroke-width: 2; stroke-dasharray: 6 7; opacity: 0.55; animation: flow 1.6s linear infinite; }
.orbit .nodes circle { fill: #fff; stroke: var(--o-node); stroke-width: 2.5; }
.orbit .core { fill: #fff; filter: drop-shadow(0 6px 14px rgba(14, 26, 19, 0.12)); }
.orbit .core-ring { fill: none; stroke: var(--o-line); stroke-width: 3; }
.orbit .halo { fill: none; stroke: rgba(11, 122, 69, 0.3); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: halo 2.4s ease-out infinite; }
.orbit .led { animation: led 1.2s ease-in-out infinite; }
.orbit .led-2 { animation-delay: 0.6s; }

.orbit-center { position: absolute; left: 50%; top: 49%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; white-space: nowrap; }
.orbit-center b { color: var(--text); font-family: var(--head); font-size: 17px; font-weight: 600; }
.orbit-center span { color: var(--primary); font-size: 13px; font-weight: 500; }

.orbit-pill { position: absolute; transform: translateX(-50%); padding: 4px 10px; border-radius: 8px; border: 1px solid var(--border); background: #fff; color: var(--text-2); box-shadow: 0 2px 8px rgba(14, 26, 19, 0.06); font-size: 12px; white-space: nowrap; }

.orbit-chip { position: absolute; right: 2%; top: 31%; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; background: #fff; color: var(--text-2); font-size: 14px; border: 1px solid var(--border); box-shadow: 0 10px 28px rgba(14, 26, 19, 0.1); }
.orbit-chip svg { color: var(--primary); }
.orbit-chip b { color: var(--text); }

/* Under the diagram, lifted over its bottom edge: it never hides the centre. */
.orbit-card { position: relative; width: min(340px, calc(100% - 24px)); margin: -14% 0 0 0; color: var(--text); display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--border); box-shadow: 0 16px 40px rgba(14, 26, 19, 0.12); }
.orbit-card-head { display: flex; align-items: center; gap: 8px; }
.orbit-card-head b { flex: 1; font-size: 15px; }
.orbit-card-head svg { color: var(--text-2); }
.orbit-card-sub { font-size: 12.5px; color: var(--text-2); }
.live { width: 9px; height: 9px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 0 rgba(11, 122, 69, 0.5); animation: live 1.8s ease-out infinite; }
.spark { width: 100%; height: 34px; }
.spark path { fill: none; stroke: var(--primary); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 420; animation: draw 3.2s ease-in-out infinite; }
.orbit-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.orbit-stats div { display: flex; flex-direction: column; gap: 1px; padding: 7px 9px; border-radius: 10px; background: var(--surface); min-width: 0; }
.orbit-stats small { font-size: 11px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.orbit-stats b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@keyframes flow { to { stroke-dashoffset: -26; } }
@keyframes halo { 0% { transform: scale(0.85); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes led { 0%, 100% { opacity: 1; } 50% { opacity: 0.15; } }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(11, 122, 69, 0.5); } 100% { box-shadow: 0 0 0 10px rgba(11, 122, 69, 0); } }
@keyframes draw { 0% { stroke-dashoffset: 420; } 45%, 100% { stroke-dashoffset: 0; } }

@media (max-width: 560px) {
  .orbit-pill { font-size: 10px; padding: 3px 6px; }
  .orbit-center { top: 48%; }
  .orbit-center b { font-size: 13px; }
  .orbit-center span { font-size: 11px; }
  .orbit-chip { font-size: 11px; padding: 5px 9px; gap: 5px; top: 64%; left: 3%; right: auto; }
  .orbit-card { width: auto; margin: -8% 12px 12px; }
}
@media (max-width: 420px) {
  .nav { flex-wrap: nowrap; gap: 8px; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn { padding: 0 12px; }
  .logo-text { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .orbit .links path, .orbit .halo, .orbit .led, .live, .spark path { animation: none; }
  .spark path { stroke-dasharray: none; }
}
