/* AEYEON website mockups: shared tokens and base (theme v0, docs/brand/2026-10-07-aeyeon-ui-theme-v0.md) */
:root {
  --primary: #0e7c86;
  --primary-ink: #0a5f67;
  --ink: #16333c;
  --muted: #67818c;
  --bg: #fafbfd;
  --card: #ffffff;
  --border: #d9e3e6;
  --subtle: #f0f5f5;
  --accent: #dbebec;
  --amber: #de9a34;
  --amber-ink: #8a5a12;
  --amber-soft: #f9efdd;
  --radius: 0.625rem;
  --radius-lg: 1rem;
  --font-heading: "Poppins", system-ui, sans-serif;
  --font-sans: "Inter", system-ui, sans-serif;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--ink); margin: 0; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); line-height: 1.07; font-weight: 600; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.55rem); line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; }
h3 { font-size: 1.15rem; line-height: 1.35; font-weight: 600; }
p { margin: 0; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--primary); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 600 0.95rem/1 var(--font-sans);
  padding: 0.95rem 1.35rem; border-radius: var(--radius);
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--accent); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(250, 251, 253, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.nav-logo img { height: 26px; width: auto; }
.nav-links { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); text-decoration: none; font-size: 0.93rem; font-weight: 500; }
.nav-links a:hover { color: var(--primary); }
.nav .btn { padding: 0.7rem 1.05rem; }
@media (max-width: 900px) { .nav-links { display: none; } }

/* Sections */
section { padding: clamp(64px, 9vw, 112px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { margin-top: 0.75rem; }
.section-head p { margin-top: 1rem; color: var(--muted); font-size: 1.08rem; }

/* Call card (transcript) */
.call {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.25rem; box-shadow: 0 24px 60px -32px rgba(22, 51, 60, 0.35);
}
.call-top { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: var(--muted); padding-bottom: 0.9rem; border-bottom: 1px solid var(--border); margin-bottom: 0.9rem; }
.call-live { display: inline-flex; align-items: center; gap: .45rem; color: var(--primary); font-weight: 600; }
.call-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.msg { max-width: 86%; padding: 0.6rem 0.85rem; border-radius: 0.9rem; font-size: 0.92rem; line-height: 1.45; margin-bottom: 0.5rem; }
.msg b { display: block; font-size: 0.7rem; font-weight: 600; color: var(--muted); margin-bottom: 0.1rem; }
.msg.caller { background: var(--subtle); margin-right: auto; border-bottom-left-radius: 0.25rem; }
.msg.agent { background: var(--accent); margin-left: auto; border-bottom-right-radius: 0.25rem; }
.msg.agent b { color: var(--primary-ink); }
.call-result { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid var(--border); }
.chip { display: inline-flex; align-items: center; gap: .4rem; font-size: 0.78rem; font-weight: 600; padding: 0.35rem 0.65rem; border-radius: 999px; background: var(--accent); color: var(--primary-ink); }
.chip.amber { background: var(--amber-soft); color: var(--amber-ink); }
.chip.ink { background: var(--ink); color: #fff; }
.example-note { font-size: 0.75rem; color: var(--muted); margin-top: 0.6rem; }

/* Dashboard rows */
.dash { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.dash-head { display: flex; justify-content: space-between; align-items: center; padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--border); font-size: 0.82rem; color: var(--muted); }
.dash-head strong { color: var(--ink); font-family: var(--font-heading); font-size: 0.95rem; }
.dash-row { display: grid; grid-template-columns: 4.2rem 1fr auto; gap: 0.9rem; align-items: center; padding: 0.8rem 1.1rem; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.dash-row:last-child { border-bottom: 0; }
.dash-row time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 0.8rem; }
.dash-row .what strong { display: block; font-weight: 600; }
.dash-row .what span { color: var(--muted); font-size: 0.8rem; }

/* Tables */
.table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; font-size: 0.95rem; }
.table th, .table td { text-align: left; padding: 0.95rem 1.1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.table thead th { font-family: var(--font-heading); font-weight: 600; font-size: 0.9rem; background: var(--subtle); }
.table tr:last-child td { border-bottom: 0; }
.table td:first-child { font-weight: 600; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-lg); }

/* FAQ */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; padding: 1.2rem 2.5rem 1.2rem 0; position: relative; font-family: var(--font-heading); font-weight: 500; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 1.05rem; font-size: 1.4rem; color: var(--primary); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 1.3rem; color: var(--muted); max-width: 70ch; }

/* Forms */
.form { display: grid; gap: 0.9rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.field { display: grid; gap: 0.35rem; font-size: 0.85rem; font-weight: 500; }
.field input, .field select, .field textarea { font: 400 0.95rem var(--font-sans); color: var(--ink); padding: 0.75rem 0.85rem; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--primary); outline-offset: 0; border-color: var(--primary); }
.form-note { font-size: 0.78rem; color: var(--muted); }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.cal-placeholder { border: 1px dashed var(--border); border-radius: var(--radius-lg); background: var(--card); min-height: 320px; display: grid; place-items: center; text-align: center; color: var(--muted); padding: 2rem; font-size: 0.92rem; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 2.5rem 0; font-size: 0.88rem; color: var(--muted); }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.footer img { height: 22px; width: auto; }
.footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* Mockup banner */
.mock-banner { background: var(--amber-soft); color: var(--amber-ink); font-size: 0.8rem; text-align: center; padding: 0.45rem var(--gutter); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
