/* Kuluq marketing site. House system: cream/ink with the Kuluq teal from the
   canonical mark (#017663). Static, self-hosted, zero third-party requests. */

@font-face { font-family: 'Fraunces'; src: url('../fonts/fraunces-latin.woff2') format('woff2'); font-weight: 300 900; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('../fonts/fraunces-latin-italic.woff2') format('woff2'); font-weight: 300 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #37352f;
  --ink-soft: #5d5a52;
  --ink-faint: #8a867c;
  --cream: #faf7f1;
  --paper: #fffdf9;
  --line: #e9e3d6;
  --teal: #017663;
  --teal-deep: #015a4c;
  --teal-soft: #e6f2ef;
  --gold: #c9a96a;
  --radius: 22px;
  --shadow: 0 2px 6px rgba(74, 64, 48, .06), 0 14px 40px rgba(74, 64, 48, .10);
  --shadow-sm: 0 1px 3px rgba(74, 64, 48, .07), 0 4px 14px rgba(74, 64, 48, .06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.serif { font-family: 'Fraunces', Georgia, serif; }
img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: 1140px; margin-inline: auto; padding-inline: clamp(20px, 4vw, 40px); }

/* Header */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 241, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top__in { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.top__logo img { height: 44px; width: auto; }
.top__nav { display: flex; gap: 26px; align-items: center; font-size: .95rem; }
.top__nav a { text-decoration: none; color: var(--ink-soft); font-weight: 500; }
.top__nav a:hover { color: var(--teal); }
.top__nav a.btn--primary, .top__nav a.btn--primary:hover { color: #fff; }
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 12px;
  font-weight: 600; font-size: .98rem; text-decoration: none; border: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn--primary { background: var(--teal); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: var(--shadow); background: var(--teal-deep); }
.btn--ghost { border: 1.5px solid var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); }
@media (max-width: 860px) { .top__nav a:not(.btn) { display: none; } }

/* Hero */
.hero { padding: clamp(56px, 9vw, 110px) 0 clamp(40px, 6vw, 80px); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero__grid > * { min-width: 0; }
@media (max-width: 980px) { .hero__grid { grid-template-columns: 1fr; } }
.eyebrow {
  font-family: 'Fraunces', Georgia, serif; font-style: italic;
  color: var(--teal); font-size: 1.06rem; letter-spacing: .01em; margin-bottom: 18px;
}
.eyebrow-mark { height: 84px; width: auto; margin-bottom: 18px; opacity: .92; }
.hero h1 {
  font-family: 'Fraunces', Georgia, serif; font-weight: 560;
  font-size: clamp(2.4rem, 5.2vw, 3.7rem); line-height: 1.08; letter-spacing: -.015em;
  margin-bottom: 22px;
}
.hero h1 em { font-style: italic; color: var(--teal); }
.hero__lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-soft); max-width: 54ch; margin-bottom: 30px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero__note { font-size: .85rem; color: var(--ink-faint); margin-top: 14px; }

/* Demo card */
.demo {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px; max-width: 460px; justify-self: end; width: 100%;
}
@media (max-width: 980px) { .demo { justify-self: stretch; max-width: none; } }
.demo__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.demo__title { font-weight: 700; font-size: 1.02rem; }
.demo__clock { font-variant-numeric: tabular-nums; color: var(--ink-faint); font-size: .9rem; }
.demo__sub { font-size: .85rem; color: var(--ink-faint); margin-bottom: 16px; }
.queue { display: grid; gap: 10px; }
.ask {
  min-width: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--cream);
  transition: opacity .25s ease, transform .25s ease;
}
.ask__meta { min-width: 0; }
.ask__src { font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--teal); }
.ask__who { font-weight: 600; font-size: .95rem; }
.ask__why { font-size: .83rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ask button {
  flex-shrink: 0; border: 1.5px solid var(--teal); color: var(--teal); background: #fff;
  border-radius: 10px; padding: 8px 13px; font-weight: 600; font-size: .85rem; cursor: pointer;
}
.ask button:hover { background: var(--teal); color: #fff; }
.ask--done { opacity: .55; }
.ask--done button { border-color: var(--line); color: var(--ink-faint); background: transparent; cursor: default; pointer-events: none; }
.demo__done {
  display: none; margin-top: 14px; padding: 12px 14px; border-radius: 12px;
  background: var(--teal-soft); color: var(--teal-deep); font-size: .92rem; font-weight: 600;
}
.record { margin-top: 18px; border-top: 1px dashed var(--line); padding-top: 14px; }
.record__title { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 8px; }
.record ul { list-style: none; display: grid; gap: 6px; font-size: .84rem; color: var(--ink-soft); }
.record li { display: flex; gap: 10px; }
.record time { font-variant-numeric: tabular-nums; color: var(--ink-faint); flex-shrink: 0; }
.record__empty { color: var(--ink-faint); font-style: italic; }
.demo__privacy { margin-top: 12px; font-size: .76rem; color: var(--ink-faint); }

/* Sections */
section { padding: clamp(48px, 7vw, 92px) 0; }
.kicker { font-family: 'Fraunces', Georgia, serif; font-style: italic; color: var(--teal); margin-bottom: 12px; font-size: 1.02rem; }
h2 { font-family: 'Fraunces', Georgia, serif; font-weight: 560; font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.15; letter-spacing: -.01em; margin-bottom: 14px; max-width: 26ch; }
.lede { color: var(--ink-soft); max-width: 62ch; font-size: 1.04rem; }

/* Promise triptych */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
@media (max-width: 900px) { .trio { grid-template-columns: 1fr; } }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.card h3 { font-family: 'Fraunces', Georgia, serif; font-size: 1.25rem; margin: 14px 0 8px; }
.card p { color: var(--ink-soft); font-size: .96rem; }
.glyph { width: 44px; height: 44px; border-radius: 12px; background: var(--teal-soft); display: grid; place-items: center; }
.glyph svg { width: 24px; height: 24px; stroke: var(--teal); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Compare */
.compare { background: var(--paper); border-block: 1px solid var(--line); }
.compare__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
@media (max-width: 880px) { .compare__grid { grid-template-columns: 1fr; } }
.compare__col { border-radius: var(--radius); padding: 28px; }
.compare__col--old { background: var(--cream); border: 1px solid var(--line); }
.compare__col--new { background: var(--teal); color: #fff; box-shadow: var(--shadow); }
.compare__col h3 { font-family: 'Fraunces', Georgia, serif; font-size: 1.2rem; margin-bottom: 16px; }
.compare__col ul { list-style: none; display: grid; gap: 12px; font-size: .96rem; }
.compare__col--old li { color: var(--ink-soft); }
.compare__col--new li { color: #f0faf7; }
.compare__col li { padding-left: 26px; position: relative; }
.compare__col--old li::before { content: ''; position: absolute; left: 0; top: .5em; width: 12px; height: 2px; background: var(--ink-faint); }
.compare__col--new li::before { content: ''; position: absolute; left: 0; top: .28em; width: 7px; height: 12px; border-right: 2.4px solid #8ed9c6; border-bottom: 2.4px solid #8ed9c6; transform: rotate(40deg); }

/* Audience tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
@media (max-width: 1020px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tiles { grid-template-columns: 1fr; } }
.tile { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.tile h3 { font-size: 1.04rem; margin-bottom: 8px; }
.tile p { font-size: .9rem; color: var(--ink-soft); }
.tile__tag { font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--teal); display: block; margin-bottom: 10px; }

/* Journey */
.journey { counter-reset: step; }
.journey__steps { display: grid; gap: 0; margin-top: 44px; position: relative; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 22px; padding-bottom: 38px; position: relative; }
.step::before {
  content: ''; position: absolute; left: 31px; top: 64px; bottom: 0;
  width: 2px; background: var(--line);
}
.step:last-child::before { display: none; }
.step__n {
  counter-increment: step; width: 64px; height: 64px; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--line); display: grid; place-items: center;
  font-family: 'Fraunces', Georgia, serif; font-size: 1.3rem; color: var(--teal); position: relative; z-index: 1;
}
.step__n::after { content: counter(step); }
.step h3 { font-family: 'Fraunces', Georgia, serif; font-size: 1.22rem; margin: 8px 0 6px; }
.step p { color: var(--ink-soft); max-width: 60ch; font-size: .98rem; }

/* Brand band */
.band {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  color: #fff; text-align: center; padding: clamp(60px, 9vw, 110px) 0;
}
.band h2 { color: #fff; margin-inline: auto; max-width: 22ch; }
.band .serifline { font-family: 'Fraunces', Georgia, serif; font-style: italic; font-size: clamp(1.2rem, 2.4vw, 1.6rem); opacity: .92; max-width: 46ch; margin: 18px auto 0; }
.band__mark { height: 64px; width: auto; margin: 0 auto 26px; filter: brightness(0) invert(1); opacity: .9; }

/* Trust band */
.trust { background: var(--ink); color: #efece4; }
.trust h2 { color: #fff; }
.trust .lede { color: #c9c4b8; }
.trust__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
@media (max-width: 900px) { .trust__grid { grid-template-columns: 1fr; } }
.trust__item { border: 1px solid #4d4a42; border-radius: 18px; padding: 24px; }
.trust__item h3 { font-size: 1.02rem; margin-bottom: 8px; color: #fff; }
.trust__item p { font-size: .92rem; color: #b9b4a7; }

/* Physician band */
.phys { text-align: center; }
.phys .serifline { font-family: 'Fraunces', Georgia, serif; font-style: italic; font-size: clamp(1.15rem, 2.2vw, 1.5rem); color: var(--ink); max-width: 52ch; margin: 0 auto 14px; }
.phys p { color: var(--ink-soft); max-width: 58ch; margin-inline: auto; }

/* FAQ */
.faq details {
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: 20px 24px; margin-top: 12px;
}
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::after { content: '+'; font-size: 1.3rem; color: var(--teal); }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { margin-top: 12px; color: var(--ink-soft); font-size: .96rem; }

/* CTA + footer */
.cta { text-align: center; }
.cta h2 { margin-inline: auto; }
.cta .btn { margin-top: 24px; }
footer { border-top: 1px solid var(--line); padding: 40px 0 50px; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot img { height: 36px; width: auto; }
.foot__tag { font-family: 'Fraunces', Georgia, serif; font-style: italic; color: var(--ink-soft); }
.foot__fine { font-size: .8rem; color: var(--ink-faint); margin-top: 18px; }

:focus-visible { outline: 2.5px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
