/* Athula website styles: Charcoal & Eucalyptus palette, Manrope type. */

/* Manrope is hosted on this site (no Google Fonts call). Licence: /fonts/OFL.txt */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/fonts/manrope-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/fonts/manrope-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --charcoal: #24272C;
  --charcoal-deep: #17191C;
  --eucalyptus: #4C8577;
  --eucalyptus-light: #9CCABD;
  --action: #3E7064;
  --action-hover: #335C52;
  --lime: #B7CC3E;
  --lime-light: #C9DB5E;
  --ground: #F4F5F3;
  --mist: #E3ECE8;
  --ink: #24272C;
  --ink-muted: #50565C;
  --line: #D8DCD9;
  --line-strong: #AAB2AE;
  --dark-line: #3A3F46;
  --dark-muted: #ADB3B8;
  --on-dark: #F4F5F3;
  --white: #FFFFFF;

  --mark-thread: var(--eucalyptus);
  --mark-dot: var(--lime);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --wrap: 1200px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Manrope", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--action); }
a:hover { color: var(--action-hover); }

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.06; letter-spacing: -0.03em; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.14; }
h3 { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: 0; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack-sm { display: flex; flex-direction: column; gap: 14px; }
.stack-lg { display: flex; flex-direction: column; gap: 40px; }

.eyebrow { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--action); }
.eyebrow-light { color: var(--eucalyptus-light); }
.lead { font-size: 20px; line-height: 30px; font-weight: 500; color: var(--ink-muted); max-width: 560px; }
.body-lg { font-size: 18px; line-height: 28px; }
.small { font-size: 14px; line-height: 22px; }
.muted { color: var(--ink-muted); }
.dark-muted { color: var(--dark-muted); }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--white); padding: 8px 12px; border-radius: var(--radius-sm); z-index: 10; }
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--action); outline-offset: 3px; border-radius: 4px; }
.band-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--eucalyptus-light); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: var(--radius-md);
  font: inherit; font-size: 16px; font-weight: 700; text-decoration: none;
  border: 2px solid var(--action); cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--action); color: var(--white); }
.btn-primary:hover { background: var(--action-hover); border-color: var(--action-hover); color: var(--white); }
.btn-secondary { background: transparent; color: var(--action); }
.btn-secondary:hover { background: var(--action); color: var(--white); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }

/* Logo lockup */
.lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.lockup-mark { width: 46px; height: 34px; }
.wordmark { font-size: 28px; font-weight: 700; letter-spacing: -0.035em; line-height: 1; color: inherit; }
.lockup-rev { color: var(--on-dark); --mark-thread: var(--eucalyptus-light); }
.lockup-rev:hover { color: var(--on-dark); }

/* Header */
.site-header { background: var(--ground); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
.nav { display: flex; gap: 32px; font-size: 15px; font-weight: 600; margin-left: auto; margin-right: 16px; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Sections */
section { scroll-margin-top: 80px; }
.hero { padding: 96px 0 112px; }
.band-white { background: var(--white); padding: 96px 0; }
.band-ground { background: var(--ground); padding: 96px 0; }
.band-mist { background: var(--mist); padding: 96px 0; }
.band-dark { background: var(--charcoal); color: var(--on-dark); padding: 96px 0; }
.band-dark h2, .band-dark h3 { color: var(--on-dark); }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }

.hero-row { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-art { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero-art svg { width: 100%; max-width: 480px; height: auto; }

/* Hero mark draws itself like a pen stroke, then the dot lands */
@media (prefers-reduced-motion: no-preference) {
  .hero-art .draw-bg { transform-box: fill-box; transform-origin: center; animation: draw-bg 900ms cubic-bezier(.2,.7,.2,1) both; }
  .hero-art .draw-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw-line 2200ms cubic-bezier(.45,.05,.35,1) 300ms forwards; }
  .hero-art .draw-dot { transform-box: fill-box; transform-origin: center; transform: scale(0); animation: draw-dot 450ms cubic-bezier(.34,1.56,.64,1) 2550ms forwards; }
}
@keyframes draw-bg { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }
@keyframes draw-line { to { stroke-dashoffset: 0; } }
@keyframes draw-dot { to { transform: scale(1); } }

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }

.panel { margin: 0; border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.panel svg { width: 100%; height: auto; }
.panel figcaption { font-size: 16px; line-height: 24px; }
.panel-ground { background: var(--ground); border: 1px solid var(--line); }
.panel-mist { background: var(--mist); }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.card-ground { background: var(--ground); padding: 24px; }
.icon { width: 24px; height: 24px; fill: none; stroke: var(--eucalyptus); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card-ground > .icon { width: 28px; height: 28px; }
.icon-tile { width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--mist); display: flex; align-items: center; justify-content: center; }

/* About */
.about-row { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.about-photo { flex: 1 1 320px; max-width: 440px; position: relative; }
.about-photo img { width: 100%; height: auto; aspect-ratio: 9 / 10; object-fit: cover; border-radius: var(--radius-lg); background: var(--mist); }
.photo-badge { position: absolute; left: 20px; bottom: -22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 10px 14px; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; }
.badge-mark { width: 38px; height: 28px; }
.about-copy { flex: 1 1 480px; min-width: 0; }
.sig { font-weight: 700; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; }
.step { border: 1px solid var(--dark-line); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.step-num { font-size: 14px; font-weight: 700; color: var(--eucalyptus-light); }
.step svg { width: 100%; height: 64px; }
.step svg path { fill: none; stroke: var(--eucalyptus-light); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.step svg circle { fill: var(--lime); }
.step h3 { font-size: 28px; line-height: 34px; font-weight: 700; }

/* Results */
.stat { border-top: 2px solid var(--line); padding-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.stat svg { width: 200px; height: 64px; }
.stat-num { font-size: 48px; line-height: 52px; font-weight: 700; letter-spacing: -0.02em; }

/* Fit check and contact */
.split { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px; }
.split > .stack { flex: 1 1 400px; min-width: 0; }
.form-card { flex: 1 1 440px; min-width: 0; background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.form-card label { font-size: 15px; font-weight: 700; }
.form-card input, .form-card textarea {
  font: inherit; font-size: 16px; line-height: 24px; color: var(--ink); background: var(--white);
  border: 1px solid var(--line-strong); border-radius: var(--radius-md); padding: 12px 14px; width: 100%;
}
.form-card input { min-height: 48px; }
.form-card textarea { resize: vertical; }
.form-card [aria-invalid="true"] { border-color: #B3261E; }
.form-card .btn { align-self: flex-start; }

.contact-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-status { font-size: 15px; font-weight: 600; }
.form-status.ok { color: var(--action); }
.form-status.err { color: #B3261E; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

[hidden] { display: none !important; }
.fit-result { border-radius: var(--radius-md); background: var(--ground); border: 1px solid var(--line); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.fit-tag { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--mist); color: var(--action); }
.fit-tag.strong { background: var(--lime); color: var(--charcoal); }
.fit-tag.unlikely { background: var(--line); color: var(--ink-muted); }
.fit-headline { font-weight: 700; font-size: 18px; line-height: 26px; }
.fit-step b { color: var(--ink); }

/* Closing */
.closing { max-width: 860px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; padding-top: 16px; padding-bottom: 16px; }
.closing-mark { width: 86px; height: 64px; }

/* Footer */
.site-footer { background: var(--charcoal-deep); color: var(--dark-muted); font-size: 14px; line-height: 22px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-top: 56px; padding-bottom: 24px; }
.footer-brand { max-width: 420px; }
.footer-brand b { color: var(--lime-light); }
.footer-brand .wordmark { font-size: 24px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; font-weight: 600; }
.footer-nav a { color: var(--dark-muted); text-decoration: none; }
.footer-nav a:hover { color: var(--on-dark); }
.copyright { padding-bottom: 40px; font-size: 13px; }

/* Phones */
@media (max-width: 720px) {
  .nav { display: none; }
  .hero { padding: 56px 0 72px; }
  .band-white, .band-ground, .band-mist, .band-dark { padding: 64px 0; }
  .wrap { padding: 0 16px; }
  .header-row .btn-sm { padding: 0 14px; font-size: 14px; }
  .form-card, .step { padding: 24px; }
}

/* ---- Added: sprite, phone diagrams, credentials, form notes, FAQ, consent ---- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.diagram-narrow { display: none; }
@media (max-width: 600px) {
  .diagram-wide { display: none; }
  .diagram-narrow { display: block; }
}

.creds { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px 24px; }
.creds li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 22px; font-weight: 600; }
.creds li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--lime); }

.form-note { margin: 0; font-size: 13px; line-height: 20px; color: var(--ink-muted); }
.form-note a { color: var(--action); }

.faq { max-width: 860px; display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; line-height: 26px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--action); font-weight: 700; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 10px 0 0; color: var(--ink-muted); }

.footer-legal { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.footer-legal a, .link-btn { color: var(--dark-muted); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; }
.link-btn:hover, .footer-legal a:hover { color: var(--on-dark); }

.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 20; max-width: 560px; margin-left: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: 0 10px 30px rgba(23, 25, 28, 0.16); padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.consent p { margin: 0; font-size: 14px; line-height: 21px; }
.consent a { color: var(--action); }
.consent-btns { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* Privacy page */
.legal { max-width: 760px; padding-top: 64px; padding-bottom: 96px; }
.legal h1 { font-size: 40px; line-height: 48px; margin: 8px 0 8px; }
.legal h2 { font-size: 22px; line-height: 30px; margin: 36px 0 8px; }
.legal p, .legal li { color: var(--ink-muted); }
.legal a { color: var(--action); }
.page-404 { min-height: 100vh; display: flex; align-items: center; }
.stat-src { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--action); }
.fit-result:focus { outline: none; }
.site-footer > .footer-legal:first-child { padding-top: 32px; }

/* Hero: captions under the mark, from complexity to simplicity */
.tangle-caps { width: 100%; max-width: 480px; display: flex; justify-content: space-between; gap: 16px; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.tangle-cap-r { color: var(--action); text-align: right; }
