/* sixo.si — one stylesheet for the company and its products.
   Two themes share every component: the company (ink, with the violet-to-cyan of
   its AI work) and Sixo Clinic (forest and terracotta, as in the app). A page
   picks one with <body data-theme="…">. */

:root {
  --ink: #0B1020;
  --ink-2: #1A2236;
  --text: #121826;
  --muted: #5B6475;
  --faint: #8A92A2;
  --line: #E7E8EE;
  --bg: #FAFAF8;
  --card: #FFFFFF;
  --violet: #8B5CF6;
  --cyan: #22D3EE;
  --grad: linear-gradient(120deg, #8B5CF6 0%, #6366F1 45%, #22D3EE 100%);

  --forest: #0E3B34;
  --forest-2: #17564B;
  --terra: #C2603F;
  --terra-l: #E07A55;
  --ivory: #F7F4EF;
  --sand: #EFEADF;

  --accent: var(--violet);
  --accent-ink: #5B3FD0;
  --accent-soft: #EFEAFE;
  --hero: var(--ink);

  --radius: 20px;
  --radius-s: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
  --shadow-l: 0 2px 4px rgba(16, 24, 40, .04), 0 24px 60px rgba(16, 24, 40, .12);
  --wrap: 1180px;
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

body[data-theme="clinic"] {
  --accent: var(--forest);
  --accent-ink: var(--forest);
  --accent-soft: #DCEEE7;
  --bg: var(--ivory);
  --hero: var(--forest);
  --line: #E6E0D6;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.65 var(--font); -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
::selection { background: var(--accent-soft); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

/* --- type ------------------------------------------------------------------- */
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -.025em; margin: 0 0 .5em; color: var(--text); }
h1 { font-size: clamp(2.3rem, 1.6rem + 3.2vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.7rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem); color: var(--muted); max-width: 62ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
body[data-theme="clinic"] .eyebrow::before { background: var(--terra); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* --- header ---------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; }
.logo img { height: 30px; width: auto; }
.logo .product { font-size: .95rem; padding-left: 10px; border-left: 1px solid var(--line); color: var(--muted); font-weight: 600; }
.nav { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 10px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: color-mix(in srgb, var(--text) 5%, transparent); }
.nav .btn { margin-left: 8px; color: #fff; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--text); }
.menu-toggle svg { width: 26px; height: 26px; }
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 20px 18px; display: none; }
  .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;
  font: 700 .97rem/1 var(--font); text-decoration: none; cursor: pointer;
  padding: 14px 20px; border-radius: 12px; border: 1px solid transparent;
  background: var(--text); color: #fff; transition: transform .15s ease, box-shadow .15s ease, background .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-accent { background: var(--accent); color: #fff; }
body:not([data-theme="clinic"]) .btn-accent { background: var(--grad); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--card); }
.btn-light { background: #fff; color: var(--ink); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.btn-outline-light:hover { background: rgba(255,255,255,.08); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn svg { width: 18px; height: 18px; }

/* --- hero ------------------------------------------------------------------ */
.hero { position: relative; overflow: hidden; background: var(--hero); color: #fff; padding: clamp(72px, 10vw, 140px) 0 clamp(64px, 8vw, 110px); }
.hero h1, .hero h2, .hero h3 { color: #fff; }
.hero .lead { color: rgba(255,255,255,.74); }
.hero .eyebrow { color: rgba(255,255,255,.8); }
.hero-glow { position: absolute; inset: -30% -10% auto; height: 120%; pointer-events: none;
  background:
    radial-gradient(40% 50% at 18% 30%, rgba(139,92,246,.45), transparent 70%),
    radial-gradient(38% 46% at 82% 18%, rgba(34,211,238,.32), transparent 70%),
    radial-gradient(30% 40% at 60% 80%, rgba(99,102,241,.30), transparent 70%);
  filter: blur(10px); }
body[data-theme="clinic"] .hero-glow {
  background:
    radial-gradient(40% 50% at 12% 20%, rgba(224,122,85,.28), transparent 70%),
    radial-gradient(42% 55% at 85% 30%, rgba(23,86,75,.9), transparent 70%); }
.hero-grid { position: absolute; inset: 0; pointer-events: none; opacity: .14;
  background-image: linear-gradient(rgba(255,255,255,.25) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.25) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent); -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent); }
.hero .wrap { position: relative; }
.hero-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero-split { grid-template-columns: 1fr; } }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.85);
  font-size: .85rem; font-weight: 600; text-decoration: none; margin-bottom: 22px; }
.pill b { background: #fff; color: var(--ink); border-radius: 999px; padding: 3px 9px; font-size: .72rem; letter-spacing: .04em; }
body[data-theme="clinic"] .pill b { color: var(--forest); }

/* --- sections -------------------------------------------------------------- */
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section-alt { background: var(--card); border-block: 1px solid var(--line); }
body[data-theme="clinic"] .section-alt { background: #fff; }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }

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

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: var(--accent-soft); color: var(--accent-ink); }
.icon svg { width: 22px; height: 22px; }

/* product card on the company page */
.product-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0; text-decoration: none; color: inherit; }
.product-card .pc-body { padding: clamp(28px, 4vw, 48px); }
.product-card .pc-art { background: var(--forest); position: relative; min-height: 320px; display: grid; place-items: center; overflow: hidden; }
.product-card .pc-art::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 60% at 30% 20%, rgba(224,122,85,.35), transparent 70%), radial-gradient(60% 70% at 90% 90%, rgba(23,86,75,1), transparent 70%); }
.product-card .pc-art img { position: relative; width: min(230px, 70%); filter: drop-shadow(0 30px 40px rgba(0,0,0,.35)); }
.product-card:hover { box-shadow: var(--shadow-l); }
@media (max-width: 820px) { .product-card { grid-template-columns: 1fr; } }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; background: #DCEEE7; color: var(--forest); }
.tag-soon { background: #EEF0F5; color: var(--muted); }

/* --- feature rows ---------------------------------------------------------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; padding: 28px 0; }
.feature-row + .feature-row { border-top: 1px solid var(--line); }
.feature-row.flip .fr-art { order: -1; }
@media (max-width: 860px) { .feature-row { grid-template-columns: 1fr; } .feature-row.flip .fr-art { order: 0; } }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; color: var(--muted); }
.checks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%230E3B34' 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/12px no-repeat; }
.checks li b { color: var(--text); font-weight: 700; }

/* phone frame for screenshots */
.phone { position: relative; width: min(300px, 100%); margin-inline: auto; aspect-ratio: 9 / 19.5; border-radius: 42px; padding: 11px;
  background: linear-gradient(160deg, #20262f, #0b0e13); box-shadow: var(--shadow-l), inset 0 0 0 1.5px rgba(255,255,255,.08); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 32px; }
.phone-pair { display: flex; justify-content: center; gap: 0; }
.phone-pair .phone { width: min(250px, 48%); }
.phone-pair .phone:last-child { margin-left: -40px; margin-top: 60px; }

/* --- stats ----------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stats > div { background: var(--card); padding: 24px; }
.stats b { display: block; font-size: 1.9rem; letter-spacing: -.03em; }
.stats span { color: var(--muted); font-size: .92rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* --- pricing --------------------------------------------------------------- */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 900px) { .prices { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.price { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.price.featured { border: 2px solid var(--forest); position: relative; }
.price.featured::before { content: "Most chosen"; position: absolute; top: -13px; left: 26px; background: var(--forest); color: #fff;
  font-size: .75rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.price h3 { margin-bottom: 4px; }
.price .amount { font-size: 2.8rem; font-weight: 800; letter-spacing: -.04em; margin: 14px 0 0; }
.price .amount small { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price .per { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.price .checks { margin: 0 0 24px; flex: 1; }
.price .btn { width: 100%; }
.note { background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius-s); padding: 16px 18px; color: var(--muted); font-size: .94rem; }

/* --- FAQ ------------------------------------------------------------------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; padding: 18px 40px 18px 0; position: relative; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.6rem; font-weight: 400; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: -4px 0 18px; }

/* --- CTA band -------------------------------------------------------------- */
.cta { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(40px, 6vw, 72px); background: var(--hero); color: #fff; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.75); max-width: 56ch; }
.cta .hero-glow { inset: -40% -20%; }
.cta > * { position: relative; }

/* --- prose (legal pages) --------------------------------------------------- */
.page-head { padding: clamp(56px, 7vw, 96px) 0 24px; }
.page-head .lead { margin: 0; }
.prose { max-width: 780px; padding-bottom: 96px; }
/* Inside the page's own column the text lines up with its heading, and only
   the line length is limited. */
.wrap.prose { max-width: none; }
.wrap.prose > * { max-width: 780px; }
.prose h2 { font-size: 1.45rem; margin-top: 2.2em; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: #353C4A; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--card); font-weight: 700; }
.updated { color: var(--faint); font-size: .9rem; }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 16px 22px; margin: 24px 0 8px; }
.toc ol { margin: 6px 0 0; }
.toc a { text-decoration: none; }

/* --- forms ----------------------------------------------------------------- */
.form { display: grid; gap: 14px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.form input, .form select, .form textarea { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--text); }
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid color-mix(in srgb, var(--accent) 30%, transparent); border-color: var(--accent); }
.form .hp { position: absolute; left: -10000px; }
.form-status { font-weight: 600; min-height: 1.6em; }
.form-status.ok { color: #1C6B48; }
.form-status.err { color: #A33C22; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.contact-list .icon { margin: 0; width: 40px; height: 40px; }
.contact-list b { display: block; }

/* --- footer ---------------------------------------------------------------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 72px 0 36px; margin-top: 0; }
body[data-theme="clinic"] .site-footer { background: #0A2C27; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 32px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { color: rgba(255,255,255,.7); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .logo img { height: 28px; }
.footer-base { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-size: .88rem; }

/* --- motion ---------------------------------------------------------------- */
/* Hidden only when the script that reveals it is running: without JavaScript,
   or before it loads, everything is simply there. */
html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}
