/* Karada — design tokens + shared components. One source of truth for the world. */
:root {
  --brand: #0E7C66;
  --brand-2: #0B3B36;
  --accent: #F2B705;
  --ink: #0C1413;
  --ink-soft: #43534f;
  --line: #dfe7e4;
  --bg: #f6f9f8;
  --bg-card: #ffffff;
  --grad: linear-gradient(135deg, #0E7C66 0%, #0B3B36 100%);
  --good: #1f9d62;
  --watch: #d98a00;
  --alert: #d23f3f;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 59, 54, .08);
  --shadow-lg: 0 24px 60px rgba(11, 59, 54, .16);
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; } /* class display rules must not override the hidden attribute */
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg);
  line-height: 1.7; -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 820px; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 40; backdrop-filter: saturate(1.4) blur(10px);
  background: rgba(246,249,248,.82); border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 18px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .02em; font-size: 18px; color: var(--ink); }
.brand .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px rgba(14,124,102,.15); }
.brand small { font-family: var(--mono); font-weight: 600; color: var(--brand); font-size: 12px; }
.nav .sp { flex: 1; }
.nav a.link { color: var(--ink-soft); font-size: 14px; font-weight: 600; }
.nav a.link:hover { color: var(--brand); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; border: 0;
  font-family: var(--sans); font-weight: 700; font-size: 15px; padding: 12px 20px;
  border-radius: 999px; transition: transform .12s ease, box-shadow .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(14,124,102,.32); }
.btn-primary:hover { box-shadow: 0 12px 30px rgba(14,124,102,.42); }
.btn-ghost { background: #fff; color: var(--brand); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* badges */
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800;
  letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; text-transform: uppercase;
}
.badge.sample { background: #fff5d6; color: #8a6400; border: 1px solid #f0d98a; }
.badge.lock { background: #e6f4ef; color: var(--brand); border: 1px solid #c4e6da; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700;
  padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
}
.chip .led { width: 9px; height: 9px; border-radius: 50%; }
.led.good { background: var(--good); } .led.watch { background: var(--watch); } .led.alert { background: var(--alert); }

/* sections */
section { padding: 64px 0; }
.eyebrow { font-family: var(--mono); font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
h1 { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.12; letter-spacing: -.02em; margin: 14px 0 18px; font-weight: 850; }
h2 { font-size: clamp(24px, 3.4vw, 34px); line-height: 1.2; letter-spacing: -.01em; margin: 0 0 14px; font-weight: 820; }
h3 { font-size: 18px; margin: 0 0 8px; font-weight: 800; }
.lede { font-size: 18px; color: var(--ink-soft); max-width: 56ch; }
.muted { color: var(--ink-soft); }
.center { text-align: center; }

/* cards / grid */
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: 1fr 1fr; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.card.flat { box-shadow: none; }

/* hero */
.hero { background:
    radial-gradient(1200px 500px at 80% -10%, rgba(14,124,102,.10), transparent 60%),
    radial-gradient(900px 500px at 0% 10%, rgba(242,183,5,.08), transparent 55%);
  padding: 56px 0 36px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }

/* metric tiles */
.metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.metric { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.metric .k { font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.metric .v { font-size: 26px; font-weight: 850; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.metric .v small { font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.metric .sub { font-size: 12px; color: var(--ink-soft); }

/* json viewer */
.json {
  font-family: var(--mono); font-size: 12.5px; line-height: 1.6; background: #08201d; color: #b7e3d5;
  border-radius: 12px; padding: 18px; overflow: auto; max-height: 460px; border: 1px solid #123;
}
.json .key { color: #7fd1ff; } .json .str { color: #ffd98a; } .json .num { color: #b6f3a5; } .json .bool { color: #ff9ec7; }

/* risk list */
.risk { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.risk .led { margin-top: 6px; flex: none; }
.risk .area { font-weight: 800; }
.risk .reason { color: var(--ink-soft); font-size: 14px; }

/* steps */
.steps { counter-reset: s; display: grid; gap: 16px; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.step .n { counter-increment: s; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 850; }
.step .n::before { content: counter(s); }

/* photos */
.photo { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background:#000; }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
figure { margin: 0; }
figcaption { font-size: 12.5px; color: var(--ink-soft); margin-top: 8px; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--ink-soft); font-size: 13.5px; background:#fff; }
.disclaimer { font-size: 12.5px; color: var(--ink-soft); background: #fff8e6; border: 1px solid #f0e0a8; padding: 10px 14px; border-radius: 10px; }

/* forms */
input, textarea { font-family: var(--sans); font-size: 15px; width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background:#fff; }
input:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(14,124,102,.12); }
label { font-weight: 700; font-size: 13px; display:block; margin-bottom: 6px; }

/* tour spotlight */
#tour-veil { position: fixed; inset: 0; z-index: 80; pointer-events: none; display: none; }
#tour-hole { position: absolute; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(8,32,29,.72); transition: all .35s cubic-bezier(.2,.8,.2,1); }
#tour-card { position: fixed; z-index: 81; width: min(360px, 86vw); background:#fff; border-radius: 14px; box-shadow: var(--shadow-lg); padding: 20px; display:none; pointer-events: auto; }
#tour-card h4 { margin: 0 0 8px; font-size: 18px; }
#tour-card p { margin: 0 0 16px; color: var(--ink-soft); font-size: 14px; }
#tour-card .row { display:flex; align-items:center; justify-content: space-between; gap: 10px; }
.dots { display:flex; gap:6px; } .dots i { width:7px; height:7px; border-radius:50%; background: var(--line); } .dots i.on { background: var(--brand); }

@media (max-width: 820px) {
  .hero-grid, .g2, .g3 { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .nav a.link.hideable { display: none; }
}
