/*
 * Sanoa Enterprises - colours taken straight from the logo:
 * the deep teal of the E, the sand of the S, the sky blue of the shields.
 */

:root {
  --teal: #0b5767;
  --teal-deep: #073f4b;
  --sand: #f3b173;
  --sand-soft: #fbe6d1;
  --sky: #298cb8;
  --sky-soft: #d9ecf5;

  --ink: #10262d;
  --muted: #52666d;
  --paper: #f1f5f8;
  --raised: #ffffff;
  --line: #dbe4e9;

  --on-teal: #ffffff;
  --accent-text: #0b5767;

  --radius: 18px;
  --gutter: clamp(16px, 5vw, 64px);
  --max: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e6eff2;
    --muted: #9fb3ba;
    --paper: #0a171b;
    --raised: #112329;
    --line: #1f3740;
    --sand-soft: #3a2a1b;
    --sky-soft: #11303d;
    --accent-text: #7cc5dd;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: var(--accent-text); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--raised); padding: 8px 12px; border-radius: 8px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; letter-spacing: -0.01em; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand span small { display: block; font-weight: 600; font-size: .72rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.nav { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { background: var(--sky-soft); }
.nav .btn { margin-left: 6px; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; color: var(--ink); font: inherit; font-weight: 700; }

@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
         background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 20px; }
  .nav.open { display: flex; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 700;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: var(--on-teal); }
.btn-primary:hover { background: var(--teal-deep); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--raised); }
.btn-sand { background: var(--sand); color: #3b2107; }
.nav .btn { padding: 9px 18px; color: var(--on-teal); }
.nav .btn:hover { background: var(--teal-deep); }

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 8vw, 96px); position: relative; overflow: clip; isolation: isolate; }
.hero .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.eyebrow { display: inline-block; font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
           color: var(--accent-text); background: var(--sky-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 20px; }
.hero h1 .hl { color: var(--sky); }
.hero .lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 36em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-visual { position: relative; aspect-ratio: 1; }
.hero-visual video, .hero-visual img { width: 100%; height: 100%; object-fit: contain; }

/* The logo's teal letters vanish on dark backgrounds once the white is gone.
   A thin light outline puts back the separation the white used to give. */
footer .brand img { filter: var(--outline-filter); }
:root {
  --outline-filter: drop-shadow(1px 0 0 #e6eff2) drop-shadow(-1px 0 0 #e6eff2)
                    drop-shadow(0 1px 0 #e6eff2) drop-shadow(0 -1px 0 #e6eff2);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand img { filter: var(--outline-filter); }
  :root:not([data-theme="light"]) .hero-visual > * {
    filter: drop-shadow(1.5px 0 0 #e6eff2) drop-shadow(-1.5px 0 0 #e6eff2)
            drop-shadow(0 1.5px 0 #e6eff2) drop-shadow(0 -1.5px 0 #e6eff2);
  }
}
.blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); opacity: .35; }
.blob.a { width: 380px; height: 380px; background: var(--sky); top: -80px; right: -120px; }
.blob.b { width: 300px; height: 300px; background: var(--sand); bottom: -60px; left: -120px; }

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; width: 100%; margin-inline: auto; order: -1; }
}

/* ---------- sections ---------- */
section { padding: clamp(56px, 8vw, 96px) 0; }
.section-head { max-width: 44em; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.alt { background: var(--raised); border-block: 1px solid var(--line); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column;
}
.alt .card { background: var(--paper); }
.card .icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; }
.card .icon svg { width: 28px; height: 28px; }
.icon.teal { background: var(--teal); color: #fff; }
.icon.sand { background: var(--sand); color: #3b2107; }
.icon.sky { background: var(--sky); color: #fff; }
.card p { color: var(--muted); }
.card ul { margin: 4px 0 0; padding-left: 1.1em; color: var(--ink); }
.card li { margin: 4px 0; }
.card li::marker { color: var(--sky); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { border-top: 3px solid var(--sand); padding-top: 18px; }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font-weight: 800; font-size: 1.6rem; color: var(--sky); margin-bottom: 6px; }
.step p { color: var(--muted); margin: 0; }

/* product feature */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%); color: #fff;
  border-radius: 28px; padding: clamp(28px, 5vw, 56px); overflow: hidden; position: relative;
}
.feature h2, .feature h3 { color: #fff; }
.feature p { color: #d3e6ec; }
.feature .tag { display: inline-block; background: var(--sand); color: #3b2107; font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; margin-bottom: 14px; }
.feature ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.feature li { padding-left: 28px; position: relative; color: #eaf4f7; }
.feature li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; border-radius: 4px; background: var(--sand); }
.feature .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.feature .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.platform { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 16px; padding: 20px; }
.platform strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.platform span { color: #b9d6de; font-size: .92rem; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } }

/* why */
.why { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 40px; }
@media (max-width: 700px) { .why { grid-template-columns: 1fr; } }
.why div { display: flex; gap: 14px; }
.why svg { flex: none; width: 26px; height: 26px; color: var(--sky); margin-top: 3px; }
.why p { color: var(--muted); margin: 0; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list svg { width: 22px; height: 22px; color: var(--sky); flex: none; margin-top: 3px; }
.contact-list a { font-weight: 700; text-decoration: none; }
.contact-list small { display: block; color: var(--muted); }

form { background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 32px); display: grid; gap: 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
label { display: grid; gap: 6px; font-weight: 700; font-size: .92rem; }
input, select, textarea {
  font: inherit; font-weight: 500; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sky) 20%, transparent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-weight: 600; min-height: 1.6em; }
.form-status.ok { color: #1c8a4e; }
.form-status.err { color: #c0392b; }
form .fine { color: var(--muted); font-size: .85rem; margin: 0; }

/* ---------- footer ---------- */
footer { background: var(--teal-deep); color: #bcd3da; padding: 48px 0 32px; }
footer .container { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: flex-start; }
footer a { color: #fff; text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .brand { color: #fff; }
footer .brand span small { color: #8fb3bd; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer .legal { flex-basis: 100%; border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; font-size: .88rem; }

/* ---------- simple pages ---------- */
.page { padding: clamp(48px, 8vw, 96px) 0; }
.page .container { max-width: 780px; }
.page h2 { font-size: 1.4rem; margin-top: 1.6em; }
.page p, .page li { color: var(--muted); }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- utility (keeps HTML free of inline styles, so the CSP needs no 'unsafe-inline') ---------- */
.muted { color: var(--muted); }
.optional { font-weight: 500; color: var(--muted); }
.nav-static { display: flex; position: static; flex-direction: row; padding: 0; border: 0; background: none; margin-left: auto; }
.legal.bare { border: 0; padding: 0; margin: 0; }
.center-page { min-height: 100vh; display: grid; place-items: center; text-align: center; }
.center-page img { margin: 0 auto 24px; }

/* ---------- product pages ---------- */
.product { --accent: #4527a0; --accent-soft: #ece7fb; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .product { --accent: #b9a6ff; --accent-soft: #231a3d; } }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); }
.product-hero { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding: clamp(40px, 7vw, 80px) 0 clamp(32px, 5vw, 56px); }
.product-hero img { width: clamp(88px, 14vw, 132px); height: auto; border-radius: 28%; box-shadow: 0 20px 40px -20px rgba(69, 39, 160, .6); }
.product-hero h1 { margin-bottom: .2em; }
.product-hero .tagline { font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--accent); font-weight: 700; margin: 0 0 .4em; }
.product-hero p { color: var(--muted); max-width: 40em; margin: 0; }
@media (max-width: 560px) { .product-hero { grid-template-columns: 1fr; } }
.product .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn-accent { background: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-accent { color: #160d33; } }
.product .grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 760px) { .product .grid-2 { grid-template-columns: 1fr; } }
.product .card h3 { color: var(--ink); }
.product .card .icon { background: var(--accent-soft); color: var(--accent); }
.note { background: var(--accent-soft); border-radius: var(--radius); padding: 24px 28px; }
.note p:last-child { margin: 0; }
.downloads { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 24px 0; }
@media (max-width: 560px) { .downloads { grid-template-columns: 1fr; } }
.download { display: flex; gap: 14px; align-items: center; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--raised); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.download:hover { border-color: var(--accent); transform: translateY(-1px); }
.download svg { width: 32px; height: 32px; color: var(--accent); flex: none; }
.download strong { display: block; }
.download span { color: var(--muted); font-size: .9rem; }

/* long-form policy text */
.prose h2 { font-size: 1.35rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { color: var(--muted); }
.prose strong, .prose code { color: var(--ink); }
.prose code { font-size: .92em; background: var(--line); padding: 1px 6px; border-radius: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--ink); }
.prose td { color: var(--muted); }
.table-wrap { overflow-x: auto; }
