/* CalmCampus site — built from the brand pack ("Warm ground, two leaves").
   Cream is the page, ink is the text, terracotta acts, sage soothes.
   Headings: Caprasimo (never paragraphs, never caps). Everything else: Figtree. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  background: var(--cream); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--terracotta-700); text-underline-offset: 3px; }
a:hover { color: var(--terracotta-800); }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; border-radius: 8px; }
::selection { background: color-mix(in srgb, var(--terracotta) 30%, transparent); }

h1, h2, h3, h4 {
  font-family: var(--font-heading); font-weight: 400;
  line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance;
}
h1 { font-size: clamp(44px, 6.4vw, 80px); line-height: 1.02; }
h2 { font-size: clamp(32px, 4.2vw, 48px); }
h3 { font-size: 24px; line-height: 1.15; }
p { text-wrap: pretty; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.label {
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--sage-700); margin-bottom: 14px;
}
.lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--neutral-800); max-width: 56ch; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Buttons & tags (fully rounded) ───────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-size: 17px; line-height: 1.2;
  padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--terracotta-aa); color: var(--cream); }
.btn-primary:hover { background: var(--terracotta-700); color: var(--cream); }
.btn-secondary { border-color: var(--divider); color: var(--ink); }
.btn-secondary:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink); }
.btn-sm { font-size: 15px; padding: 9px 20px; white-space: nowrap; }

.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; padding: 6px 14px; border-radius: 999px;
}
.tag-sage { background: var(--sage-200); color: var(--sage-900); }
.tag-terra { background: var(--terracotta-200); color: #402310; }

/* ── Nav ──────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 90%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.nav-inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.nav-logo img { height: 34px; width: auto; }
.nav-links { display: flex; gap: 28px; list-style: none; margin-left: auto; }
.nav-links a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; }
.nav-links a:hover { color: var(--terracotta-700); }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 56px 0 104px; overflow: hidden; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.hero h1 { margin-bottom: 24px; max-width: 13ch; }
.hero .lead { margin-bottom: 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 28px; font-size: 15px; color: var(--neutral-800); display: flex; align-items: center; gap: 10px; }
.hero-note svg { width: 20px; height: 20px; color: var(--sage-700); flex: none; }

/* Decorative circles: bleed off the edge, stay clear of text */
.circle { position: absolute; border-radius: 50%; pointer-events: none; }
.circle-sage { background: var(--sage); }
.circle-terra { background: var(--terracotta); }
.circle-ring { border: 2px solid var(--sage); opacity: .55; }
.hero .c1 { width: 420px; height: 420px; right: -150px; top: -110px; }
.hero .c2 { width: 150px; height: 150px; right: 22%; bottom: -60px; }
.hero .c3 { width: 560px; height: 560px; right: -260px; bottom: -300px; }

/* ── Phone mock (real check-in wording) ───────────────────────────────────── */
.phone {
  width: min(290px, 100%); margin: 0 auto; padding: 12px; border-radius: 44px;
  background: var(--ink); box-shadow: var(--shadow-lg);
}
.phone-screen {
  background: var(--cream); border-radius: 33px; padding: 26px 22px 24px;
  min-height: 520px; display: flex; flex-direction: column;
}
.phone-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.phone-top img { height: 22px; width: auto; }
.phone-step { font-size: 13px; font-weight: 600; color: var(--sage-700); }
.phone-progress { display: flex; gap: 6px; margin-bottom: 34px; }
.phone-progress i { flex: 1; height: 5px; border-radius: 99px; background: var(--neutral-300); }
.phone-progress i:first-child { background: var(--sage); }
.phone-q { font-family: var(--font-heading); font-size: 28px; line-height: 1.1; margin-bottom: 28px; }
.phone-scale { display: flex; gap: 8px; }
.phone-scale span {
  flex: 1; aspect-ratio: 1; border-radius: 50%; background: var(--sand);
  display: grid; place-items: center; font-weight: 700; font-size: 16px;
}
.phone-labels { display: flex; justify-content: space-between; margin-top: 12px; font-size: 12px; color: var(--neutral-800); }
.phone-skip { margin-top: auto; align-self: flex-start; font-size: 14px; font-weight: 600; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--divider); }

/* ── Sections ─────────────────────────────────────────────────────────────── */
.section { padding: 104px 0; position: relative; }
.section-head { margin-bottom: 56px; }
.section-head h2 { max-width: 18ch; margin-bottom: 20px; }
.section-sand { background: var(--sand); }
.section-dark { background: var(--sage-800); color: var(--cream); overflow: hidden; }
.section-dark .label { color: var(--sage-300); }
.section-dark .lead { color: var(--sage-200); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.card { background: var(--sand); border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.section-sand .card { background: var(--cream); }
.card p { font-size: 16px; color: var(--neutral-800); }
.icon {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sage-200); color: var(--sage-800); margin-bottom: 8px;
}
.icon.terra { background: var(--terracotta-200); color: var(--terracotta-800); }
.icon svg { width: 24px; height: 24px; }
.ico { fill: none; stroke: currentColor; stroke-width: 2.75; stroke-linecap: round; stroke-linejoin: round; }

/* Product */
.product-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: center; }
.product-stage { background: var(--sage-200); border-radius: 36px; padding: 56px 24px; position: relative; overflow: hidden; }
.product-stage .circle { z-index: 0; }
.product-stage .phone { position: relative; z-index: 1; }
.product-stage .c1 { width: 220px; height: 220px; left: -80px; top: -70px; }
.product-stage .c2 { width: 120px; height: 120px; right: -40px; bottom: 40px; }
.steps { list-style: none; display: flex; flex-direction: column; gap: 32px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 52px 1fr; gap: 20px; }
.steps li::before {
  counter-increment: s; content: counter(s);
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--terracotta-aa); color: var(--cream); font-family: var(--font-heading); font-size: 22px;
}
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--neutral-800); }
.badge-soon { display: inline-block; margin-left: 8px; vertical-align: middle; }

/* Privacy */
.privacy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 8px; }
.privacy-item { border: 1px solid color-mix(in srgb, var(--cream) 22%, transparent); border-radius: 28px; padding: 28px; }
.privacy-item .ico { width: 28px; height: 28px; color: var(--sage-300); margin-bottom: 14px; }
.privacy-item h3 { font-size: 22px; margin-bottom: 8px; }
.privacy-item p { font-size: 16px; color: var(--sage-200); }
.section-dark .circle-ring { border-color: var(--sage); opacity: .5; }
.section-dark .c1 { width: 520px; height: 520px; right: -240px; top: -200px; }

/* Pilot */
.pilot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { background: var(--sand); border-radius: 28px; padding: 40px; }
.panel h3 { margin-bottom: 16px; font-size: 28px; }
.panel ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.panel li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; font-size: 16.5px; }
.panel li svg { width: 22px; height: 22px; color: var(--sage-700); margin-top: 2px; }
.panel-sage { background: var(--sage-200); }
.pilot-foot { margin-top: 24px; font-size: 15px; color: var(--neutral-800); max-width: 70ch; }

/* Roadmap */
.road { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.road::before { content: ""; position: absolute; left: 0; right: 0; top: 17px; height: 3px; background: var(--divider); border-radius: 3px; }
.stop { position: relative; padding: 0 24px 0 0; }
.stop-dot { width: 36px; height: 36px; border-radius: 50%; background: var(--cream); border: 3px solid var(--divider); margin-bottom: 24px; position: relative; }
.stop.now .stop-dot { background: var(--terracotta); border-color: var(--terracotta); }
.stop.done .stop-dot { background: var(--sage); border-color: var(--sage); }
.stop-when { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sage-700); margin-bottom: 8px; }
.stop.now .stop-when { color: var(--terracotta-700); }
.stop h3 { font-size: 24px; margin-bottom: 10px; }
.stop p { font-size: 16px; color: var(--neutral-800); }
.markets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.markets .tag { font-size: 13px; padding: 4px 12px; background: var(--sand); color: var(--ink); }

/* Contact */
.contact { background: var(--terracotta-aa); color: var(--cream); overflow: hidden; }
.contact h2 { color: var(--cream); max-width: 16ch; margin-bottom: 20px; }
.contact .lead { color: var(--terracotta-100); margin-bottom: 40px; }
.contact .label { color: var(--terracotta-100); }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 44px; position: relative; z-index: 1; }
.contact-card { background: var(--cream); color: var(--ink); border-radius: 28px; padding: 28px; }
.contact-card h3 { font-size: 22px; margin-bottom: 8px; }
.contact-card p { font-size: 16px; color: var(--neutral-800); }
.contact .wrap { position: relative; z-index: 1; }
.contact .c1 { width: 460px; height: 460px; right: -200px; top: -220px; background: var(--terracotta-700); }
.btn-cream { background: var(--cream); color: var(--terracotta-800); }
.btn-cream:hover { background: var(--cream-100); color: var(--terracotta-800); }

/* Footer */
.footer { padding: 56px 0 48px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.footer img { height: 32px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; }
.footer-links a:hover { color: var(--terracotta-700); }
.footer-copy { width: 100%; font-size: 14px; color: var(--neutral-800); border-top: 1px solid var(--divider); padding-top: 24px; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 920px) {
  .hero-grid, .product-grid, .pilot-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-bottom: 80px; }
  .hero-visual { order: 2; }
  .hero .c1 { width: 300px; height: 300px; right: -140px; top: -120px; }
  .road { grid-template-columns: 1fr; gap: 36px; padding-left: 8px; }
  .road::before { left: 25px; right: auto; top: 0; bottom: 0; width: 3px; height: auto; }
  .stop { display: grid; grid-template-columns: 36px 1fr; column-gap: 20px; padding: 0; }
  .stop-dot { margin: 0; grid-row: 1 / span 4; }
  .section { padding: 72px 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .panel { padding: 28px; }
  .card { padding: 26px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Research */
.sub { font-size: 26px; margin: 8px 0 20px; }
.evidence { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-bottom: 48px; }
.ev { background: var(--cream); border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.ev-stat { font-family: var(--font-heading); font-size: 44px; line-height: 1; color: var(--terracotta-700); letter-spacing: -0.015em; }
.ev p { font-size: 16px; color: var(--neutral-800); flex: 1; }
.ev-cite { font-size: 14px; font-weight: 600; color: var(--sage-700); }
.ev-cite:hover { color: var(--sage-900); }
.research-plan { background: var(--sage-200); padding: 40px; }
.research-plan ul { margin: 20px 0; }
.plan-note { font-size: 15px; color: var(--neutral-800); max-width: 70ch; margin-bottom: 4px; }
.research-plan .btn { margin-top: 20px; }
@media (max-width: 640px) { .research-plan { padding: 28px; } .ev { padding: 26px; } }
.ev-word { font-size: 32px; padding-top: 6px; }
.dossier-btn { margin-top: 28px; }
.dossier-meta { margin-top: 14px; font-size: 15px; color: var(--neutral-800); max-width: 60ch; }
.claims { margin-top: 8px; align-items: start; }
.claims .panel { background: var(--cream); }
.claims .research-plan { background: var(--sage-200); }
.ev-word { font-size: 30px; }

/* Report */
.report-hero { padding-bottom: 88px; }
.report-hero h1 { max-width: 16ch; }
.report-hero .c1 { width: 380px; height: 380px; right: -140px; top: -120px; }
.report-hero .wrap { position: relative; z-index: 1; }
.bullets { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.bullets li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 15.5px; color: var(--neutral-800); }
.bullets svg { width: 20px; height: 20px; color: var(--sage-700); margin-top: 2px; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 16px; background: var(--sand); border-radius: 28px; overflow: hidden; }
.data-table th { text-align: left; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sage-700); padding: 18px 24px; }
.data-table td { padding: 16px 24px; border-top: 1px solid var(--divider); vertical-align: top; }
.data-table td:first-child { font-weight: 700; }
.status { display: inline-block; font-size: 14px; font-weight: 600; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.status.ok { background: var(--sage-200); color: var(--sage-900); }
.status.no { background: var(--terracotta-200); color: #402310; }
@media (max-width: 720px) {
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; }
  .data-table thead { display: none; }
  .data-table tr { padding: 16px 20px; border-top: 1px solid var(--divider); }
  .data-table tr:first-child { border-top: 0; }
  .data-table td { border: 0; padding: 3px 0; }
  .data-table td::before { content: attr(data-label) ": "; font-weight: 600; color: var(--sage-700); }
  .data-table td:first-child::before, .data-table td:last-child::before { content: ""; }
}

/* Responsive nav: menu button below 960px */
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--divider); background: transparent; color: var(--ink); cursor: pointer; place-items: center; margin-left: auto; }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.nav-toggle path { transition: transform .2s, opacity .2s; transform-origin: center; }
.nav.open .nav-toggle .l1 { transform: translateY(5px) rotate(45deg); }
.nav.open .nav-toggle .l2 { opacity: 0; }
.nav.open .nav-toggle .l3 { transform: translateY(-5px) rotate(-45deg); }
@media (max-width: 960px) {
  .nav-inner { gap: 12px; }
  .nav-toggle { display: grid; }
  .nav-inner > .btn { margin-left: 0; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; margin: 0; padding: 8px 24px 20px;
    background: var(--cream); border-bottom: 1px solid var(--divider); box-shadow: var(--shadow-lg);
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { display: block; padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--divider); }
  .nav-links li:last-child a { border-bottom: 0; }
}
@media (max-width: 480px) {
  .nav-inner { height: 64px; padding: 0 16px; }
  .nav-logo img { height: 28px; width: auto; }
  .nav-links { padding: 8px 16px 20px; }
  .nav .btn-sm { padding: 10px 16px; font-size: 14px; }
  .wrap { padding: 0 18px; }
}
@media (max-width: 360px) { .nav .btn-sm { display: none; } .nav-toggle { margin-left: auto; } }

/* Comfortable touch targets */
.footer-links a { display: inline-block; padding: 10px 0; }
@media (pointer: coarse) {
  .btn-sm { padding: 12px 22px; min-height: 44px; }
  .ev-cite { display: inline-block; padding: 6px 0; }
}

.panel li > span, .bullets li > span, .steps li > div { min-width: 0; overflow-wrap: anywhere; }

/* Link to the web demo under the app steps */
.demo-note { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; font-size: 15px; color: var(--neutral-800); }
