/* Bizthon landing — hand-authored, zero dependencies.
 * Tokens are VERBATIM from the product's design system
 * (packages/bizthon_ui/lib/tokens/app_colors.dart): BizthonBlue ramp
 * c50 #E6F7FE … c950 #00212F, logo azure c500 #00AEEF, light primary
 * c700 #00709C (5.5:1 with white), dark primary c300 #66CFF6, light
 * scaffold #F6F9FC + white cards, dark scaffold #0A1118 + #131E2A cards.
 * WCAG 2.1 AA: body inks ≥ 7:1, primary ≥ 5:1; focus rings never removed. */

:root {
  --azure: #00AEEF;
  --c50: #E6F7FE;
  --c100: #CCEFFC;
  --c200: #99DFF9;
  --c300: #66CFF6;
  --c400: #33BEF2;
  --c600: #0090C8;
  --c700: #00709C;
  --c800: #005474;
  --c900: #003A52;
  --c950: #00212F;

  --bg: #F6F9FC;
  --card: #ffffff;
  --ink: #00212F;
  --ink-soft: #33475479;
  --muted: #3D4E5B;
  --line: #CCEFFC;
  --primary: #00709C;
  --on-primary: #ffffff;
  --primary-soft: #E6F7FE;
  --shadow: 0 1px 2px rgba(0, 33, 47, 0.06), 0 8px 24px rgba(0, 33, 47, 0.07);
  --radius: 12px;
  --focus: #00AEEF;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A1118;
    --card: #131E2A;
    --ink: #E6F7FE;
    --muted: #B6C6D2;
    --line: #23405A;
    --primary: #66CFF6;
    --on-primary: #00212F;
    --primary-soft: #0F2A3C;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 8px 24px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.65 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
}

h1, h2, h3 {
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 650;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(1.9rem, 1.25rem + 2.6vw, 3rem); }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); }
h3 { font-size: 1.12rem; font-weight: 600; }

p { margin: 0 0 1em; }

a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c600); }

img, svg { max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- skip link -------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  background: var(--primary);
  color: var(--on-primary);
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
}
.skip-link:focus { left: 8px; color: var(--on-primary); }

/* --- header ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 64px;
  flex-wrap: wrap;
  padding-top: 6px;
  padding-bottom: 6px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.brand-mark { border-radius: 8px; display: block; }

.site-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-left: auto;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 550;
  padding: 8px 12px;
  border-radius: 8px;
}

.site-nav a:hover { color: var(--primary); background: var(--primary-soft); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 10px;
  cursor: pointer;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--primary);
  color: var(--on-primary);
}

/* --- buttons ------------------------------------------------------------ */
.btn {
  display: inline-block;
  border-radius: 10px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease,
    border-color 0.15s ease, transform 0.15s ease;
}

.btn-lg { padding: 14px 26px; font-size: 1.02rem; }

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}

.btn-primary:hover { background: var(--c800); color: var(--on-primary); }

@media (prefers-color-scheme: dark) {
  .btn-primary:hover { background: var(--c200); }
}

.btn-ghost {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-ghost:hover { background: var(--primary-soft); color: var(--primary); }

/* --- hero ---------------------------------------------------------------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(36px, 5vw, 64px); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.eyebrow {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.lead { font-size: 1.13rem; color: var(--muted); max-width: 34em; }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 14px; }

.hero-note { color: var(--muted); font-size: 0.95rem; }

.hero-visual .mockup {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

/* --- credibility strip ---------------------------------------------------- */
.strip {
  border-block: 1px solid var(--line);
  background: var(--card);
  padding: 20px 0;
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.strip-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 550;
  color: var(--muted);
}

.strip-item .ic { width: 22px; height: 22px; color: var(--primary); flex: none; }

/* --- sections ------------------------------------------------------------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section.alt { background: var(--card); border-block: 1px solid var(--line); }

.section-sub { color: var(--muted); font-size: 1.05rem; max-width: 44em; margin-bottom: clamp(28px, 4vw, 44px); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.card-grid.three { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.section.alt .card { background: var(--bg); }

.card .ic { width: 28px; height: 28px; color: var(--primary); margin-bottom: 12px; }
.card .ic.lg { width: 34px; height: 34px; }

.card p { color: var(--muted); margin: 0; font-size: 0.97rem; }

/* --- steps ------------------------------------------------------------------ */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  counter-reset: step;
}

.steps li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
}

.step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
  margin-bottom: 12px;
}

.steps p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* --- FAQ ---------------------------------------------------------------------- */
.faq-list { display: grid; gap: 10px; max-width: 760px; }

.faq-list details {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.faq-list summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 44px;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 1.3rem;
  font-weight: 600;
}

.faq-list details[open] summary::after { content: "–"; }

.faq-list p { padding: 0 20px 16px; margin: 0; color: var(--muted); }

/* --- contact ------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.contact-note {
  background: var(--primary-soft);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.92rem;
  color: var(--muted);
}

.contact-fallback { font-size: 0.95rem; }
.contact-fallback .contact-email {
  margin-left: 0.35em;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.contact-fallback .contact-email:hover,
.contact-fallback .contact-email:focus-visible {
  text-decoration: underline;
}

.contact-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow);
}

.field { margin-bottom: 16px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  padding: 11px 14px;
}

.field textarea { resize: vertical; }

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 0;
  border-color: var(--primary);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--primary); }
.consent label { font-weight: 500; margin: 0; font-size: 0.92rem; color: var(--muted); }

.challenge-slot { min-height: 0; margin-bottom: 14px; }

.form-status { font-weight: 600; font-size: 0.95rem; margin: 12px 0 0; }
.form-status.ok { color: #0B7A46; }
.form-status.err { color: #B3261E; }

@media (prefers-color-scheme: dark) {
  .form-status.ok { color: #66D9A3; }
  .form-status.err { color: #FF9E95; }
}

/* --- footer ---------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--card);
  padding: clamp(40px, 6vw, 64px) 0 24px;
  margin-top: clamp(40px, 6vw, 80px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 32px;
  align-items: start;
}

.footer-brand .brand { margin-bottom: 10px; }
.footer-brand p { color: var(--muted); font-size: 0.95rem; max-width: 26em; }

.footer-col h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }

.footer-col a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  padding: 5px 0;
  font-size: 0.97rem;
}

.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 32px;
  padding-top: 18px;
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-bottom p { margin: 0; }

/* --- TODO chips (owner-input placeholders — removed as answers arrive) ------------ */
.todo {
  display: inline-block;
  border: 1px dashed #B36B00;
  color: #8A5300;
  background: #FFF7E8;
  border-radius: 6px;
  padding: 1px 8px;
  font-size: 0.82rem;
  font-weight: 600;
}

@media (prefers-color-scheme: dark) {
  .todo { border-color: #D9A45B; color: #F5C97B; background: #2A2113; }
}

/* --- responsive ---------------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .strip-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .site-nav { order: 3; width: 100%; margin-left: 0; }
  .header-actions { margin-left: auto; }
  .field-row { grid-template-columns: 1fr; }
  .strip-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
