/* ============================================================
   clir — shared design system for clir.ai redesign templates
   Family palette:
     clir base   #00C993  (company)
     clir Hear   #2BD9C4  (Hearing accent)
     clir Focus  #0093C9  (Focus accent)
   ============================================================ */

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --clir: #00C993;
  --hear: #2BD9C4;
  --focus: #43594B;
  --focus-deep: #2F4238;
  --focus-light: #93AD97;
  --ink: #0B0F0E;
  --ink-soft: #16211E;
  --paper: #ffffff;
  --mist: #F2F7F5;
  --text: #14201C;
  --text-dim: #5A6B66;
  --text-inverse: #F4FAF8;
  --text-inverse-dim: #A8BDB6;
  --radius: 20px;
  --radius-sm: 12px;
  --maxw: 1120px;
  --accent: var(--clir);
}
body.theme-hear  { --accent: var(--hear); }
body.theme-focus { --accent: var(--focus); }

/* Focus accent #43594B is dark — swap to the light sage wherever it sits on a dark background */
body.theme-focus .nav-logo .product,
body.theme-focus .section-dark .kicker,
body.theme-focus .demo-box label.enhanced { color: var(--focus-light); }
body.theme-focus .step::before { color: #fff; }
body.theme-focus .section-dark .card .icon { background: color-mix(in srgb, var(--focus-light) 16%, transparent); color: var(--focus-light); }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,15,14,.92); backdrop-filter: blur(12px);
  color: var(--text-inverse);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 28px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.nav-logo img { height: 30px; width: auto; }
.nav-logo .product { font-weight: 500; color: var(--accent); }
.nav-links { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav-links a { text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--text-inverse-dim); transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a.nav-cta {
  background: var(--accent); color: var(--ink); font-weight: 600;
  padding: 9px 18px; border-radius: 999px;
}
.nav-links a.nav-cta:hover { filter: brightness(1.08); color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none;
  transition: transform .12s ease, filter .15s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn-solid { background: var(--accent); color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { border: 1.5px solid currentColor; }
.btn-appstore img { height: 52px; width: auto; }
.btn-appstore { padding: 0; background: none; }

/* ---------- hero ---------- */
.hero { position: relative; color: var(--text-inverse); background: var(--ink); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,12,11,.72) 0%, rgba(8,12,11,.55) 55%, rgba(8,12,11,.82) 100%); }
.hero-inner { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 96px 24px 110px; }
.hero .kicker { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.05; letter-spacing: -.03em; font-weight: 800; max-width: 14ch; }
.hero .sub { margin-top: 22px; font-size: clamp(17px, 2vw, 21px); color: var(--text-inverse-dim); max-width: 54ch; }
.hero .cta-row { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hero .cta-note { font-size: 13.5px; color: var(--text-inverse-dim); margin-top: 14px; }

.hero-split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero-split { grid-template-columns: 1fr; } }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section-dark { background: var(--ink); color: var(--text-inverse); }
.section-mist { background: var(--mist); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head .kicker { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.12; letter-spacing: -.025em; font-weight: 800; }
.section-dark .section-head h2 { color: #fff; }
.section-head p { margin-top: 14px; color: var(--text-dim); font-size: 17.5px; }
.section-dark .section-head p { color: var(--text-inverse-dim); }

/* ---------- cards & grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: var(--paper); border-radius: var(--radius); padding: 32px 28px; border: 1px solid rgba(20,32,28,.07); }
.section-dark .card { background: var(--ink-soft); border-color: rgba(255,255,255,.08); }
.card .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); font-size: 22px; margin-bottom: 18px; }
.card h3 { font-size: 19px; font-weight: 700; letter-spacing: -.015em; margin-bottom: 8px; }
.card p { font-size: 15.5px; color: var(--text-dim); }
.section-dark .card p { color: var(--text-inverse-dim); }

/* product showcase cards on company page */
.product-card {
  border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text-inverse);
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 440px; padding: 36px; isolation: isolate;
}
.product-card .pc-bg { position: absolute; inset: 0; z-index: -1; }
.product-card .pc-bg img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .pc-bg img { transform: scale(1.04); }
.product-card .pc-bg::after { content:''; position:absolute; inset:0; background: linear-gradient(180deg, rgba(8,12,11,0) 30%, rgba(8,12,11,.85) 100%); }
.product-card.pc-focus .pc-bg { background: linear-gradient(135deg, #93AD97 0%, #43594B 100%); }
.product-card.pc-focus .pc-bg img { object-position: center 20%; }
.product-card .pc-icon { width: 56px; height: 56px; border-radius: 14px; margin-bottom: 16px; }
.product-card h3 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.product-card p { margin-top: 8px; font-size: 16px; color: var(--text-inverse-dim); max-width: 40ch; }
.product-card .pc-link { margin-top: 18px; font-weight: 600; font-size: 15px; }
.product-card.pc-hear .pc-link { color: var(--hear); }
.product-card.pc-focus .pc-link { color: var(--focus-light); }

/* ---------- steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: var(--paper); border: 1px solid rgba(20,32,28,.07); }
.section-dark .step { background: var(--ink-soft); border-color: rgba(255,255,255,.08); }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); color: var(--ink); font-weight: 800; font-size: 17px; margin-bottom: 16px;
}
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: 15px; color: var(--text-dim); }
.section-dark .step p { color: var(--text-inverse-dim); }

/* ---------- audio demo ---------- */
.demo-box { background: var(--ink-soft); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 32px; }
.demo-box label { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-inverse-dim); margin: 18px 0 8px; }
.demo-box label:first-child { margin-top: 0; }
.demo-box label.enhanced { color: var(--accent); }
.demo-box audio { width: 100%; }

/* ---------- quotes ---------- */
.quote { padding: 28px; border-radius: var(--radius); background: var(--paper); border: 1px solid rgba(20,32,28,.07); }
.quote p { font-size: 16px; }
.quote .who { margin-top: 14px; font-size: 13.5px; color: var(--text-dim); font-weight: 600; }
.stars { color: #F5B301; letter-spacing: 2px; font-size: 15px; margin-bottom: 10px; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid rgba(20,32,28,.1); padding: 20px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::after { content: '+'; font-size: 22px; color: var(--accent); font-weight: 400; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin-top: 12px; color: var(--text-dim); max-width: 65ch; }

/* ---------- bands ---------- */
.band { padding: 72px 0; }
.band-accent { background: var(--accent); color: var(--ink); }
.band h2 { font-size: clamp(26px, 3.5vw, 38px); letter-spacing: -.02em; font-weight: 800; max-width: 22ch; }
.band p { margin-top: 10px; font-size: 17px; max-width: 55ch; }
.band .cta-row { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- partners ---------- */
.partners { display: flex; gap: 48px; flex-wrap: wrap; align-items: center; justify-content: center; opacity: .6; font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.partners span { white-space: nowrap; }
.partners img { height: 46px; width: auto; }

/* ---------- footer ---------- */
.footer { background: var(--clir); color: var(--ink); padding: 56px 0 40px; }
body.theme-focus .footer { background: var(--focus); color: #fff; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-end; }
.footer .f-brand { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.footer .f-claim { font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -.02em; margin-top: 6px; }
.footer .f-addr { margin-top: 10px; font-size: 14px; opacity: .75; }
.footer nav { display: flex; gap: 22px; font-size: 14.5px; font-weight: 600; }
.footer nav a { text-decoration: none; opacity: .85; }
.footer nav a:hover { opacity: 1; }

/* ---------- long-form legal / article prose ---------- */
.prose-page { background: var(--ink); color: var(--text-inverse); }
.prose { max-width: 72ch; margin: 0 auto; padding: 72px 24px 96px; line-height: 1.75; font-size: 16.5px; }
.prose h1 { font-size: clamp(34px, 5vw, 48px); line-height: 1.1; letter-spacing: -.025em; font-weight: 800; margin-bottom: 10px; }
.prose .updated { color: var(--text-inverse-dim); font-size: 15px; margin-bottom: 40px; }
.prose h2 { font-size: 26px; letter-spacing: -.02em; font-weight: 800; margin: 52px 0 14px; }
.prose h3 { font-size: 19px; font-weight: 700; margin: 32px 0 10px; }
.prose p { margin: 0 0 16px; color: var(--text-inverse-dim); }
.prose li { margin: 0 0 12px; color: var(--text-inverse-dim); }
.prose ul { padding-left: 24px; margin: 0 0 16px; }
.prose strong { color: var(--text-inverse); font-weight: 700; }
.prose a { color: var(--accent); }
.prose .contact-block { border-left: 3px solid var(--accent); padding: 4px 0 4px 20px; color: var(--text-inverse-dim); }

/* ---------- misc ---------- */
.rating-badge { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.rating-badge .stars { margin: 0; }
.phone-shot { border-radius: 32px; }
.img-round { border-radius: var(--radius); }
.note { font-size: 13px; color: var(--text-dim); }
