:root {
  --primary: #3d57a7;
  --primary-hover: #2c4285;
  --primary-soft: #eef3fb;
  --ink: #0b1020;
  --muted: #54595f;
  --subtle: #8a9099;
  --line: #e2e9f3;
  --surface-muted: #f0f5fb;
  --radius: 1.25rem;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

.ruo-bar {
  background: var(--ink);
  color: #fff;
  font-size: .8rem;
  text-align: center;
  padding: .45rem 1rem;
  letter-spacing: .01em;
}
header.site {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky; top: 0; z-index: 20;
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
header.site .logo img { height: 26px; width: auto; }
header.site nav { display: flex; gap: 1.4rem; align-items: center; }
header.site nav a { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; }
header.site nav a:hover { color: var(--primary); }
@media (max-width: 760px) { header.site nav a:not(.btn) { display: none; } }
@media (max-width: 480px) {
  header.site .logo img { height: 20px; }
  header.site .btn.small { padding: .55rem .9rem; font-size: .82rem; white-space: nowrap; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--primary); color: #fff !important; text-decoration: none;
  border: 0; border-radius: 9999px; padding: .8rem 1.5rem;
  font: 600 .95rem/1 "Inter", sans-serif; cursor: pointer;
  transition: background .15s;
}
.btn:hover { background: var(--primary-hover); }
.btn.ghost { background: transparent; color: var(--primary) !important; border: 1.5px solid var(--primary); }
.btn.ghost:hover { background: var(--primary-soft); }
.btn.small { padding: .6rem 1.1rem; font-size: .88rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.hero {
  position: relative; overflow: hidden;
  background: #fff url("/assets/hero-lab.webp") right center / cover no-repeat;
  border-bottom: 1px solid var(--line);
}
.hero .wrap { padding-top: 5.5rem; padding-bottom: 5.5rem; }
.hero .copy { max-width: 560px; }
@media (max-width: 900px) {
  .hero { background-image: linear-gradient(rgba(255,255,255,.9), rgba(255,255,255,.9)), url("/assets/hero-lab.webp"); }
  .hero .wrap { padding-top: 3.5rem; padding-bottom: 3.5rem; }
}
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 700; color: var(--primary); margin: 0 0 .8rem; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); line-height: 1.08; letter-spacing: -.025em; margin: 0 0 1.1rem; font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .8rem; font-weight: 750; }
h3 { font-size: 1.1rem; margin: 0 0 .4rem; font-weight: 700; }
.lead { font-size: 1.12rem; color: var(--muted); margin: 0 0 1.8rem; }
.cta-row { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; }
.price-chip { display: inline-block; background: var(--primary-soft); color: var(--primary); font-weight: 700; border-radius: 9999px; padding: .35rem .9rem; font-size: .9rem; margin-bottom: 1.2rem; }

section.block { padding: 4.5rem 0; }
section.block.muted { background: var(--surface-muted); }
.section-head { max-width: 680px; margin-bottom: 2.4rem; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.05rem; }

.grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem;
}
.tile p { margin: 0; color: var(--muted); font-size: .96rem; }
.tile .icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft);
  display: grid; place-items: center; margin-bottom: 1rem; color: var(--primary);
}
.tile .icon svg { width: 22px; height: 22px; }

ol.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
ol.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
ol.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-weight: 800; color: var(--primary); font-size: 1.3rem; margin-bottom: .5rem; }
ol.steps li p { margin: 0; color: var(--muted); font-size: .96rem; }

.pricing { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: center; }
@media (max-width: 860px) { .pricing { grid-template-columns: 1fr; } }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: 1.5rem; padding: 2rem; box-shadow: 0 10px 40px rgba(61,87,167,.08); }
.price-card .amount { font-size: 3rem; font-weight: 800; letter-spacing: -.03em; }
.price-card .amount span { font-size: 1rem; font-weight: 600; color: var(--muted); }
ul.checks { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; }
ul.checks li { padding-left: 1.7rem; position: relative; margin: .5rem 0; color: var(--muted); }
ul.checks li::before { content: ""; position: absolute; left: 0; top: .45rem; width: 1rem; height: .55rem; border-left: 2.5px solid var(--primary); border-bottom: 2.5px solid var(--primary); transform: rotate(-45deg); }
.wallet-note { font-size: .85rem; color: var(--subtle); margin-top: .8rem; }

.facts { background: var(--primary) url("/assets/molecule-band.webp") center / cover; color: #fff; }
.facts .grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.facts .fact strong { display: block; font-size: 1.35rem; font-weight: 800; }
.facts .fact span { opacity: .85; font-size: .92rem; }
.facts h2 { color: #fff; }
.facts p.sub { opacity: .9; max-width: 640px; margin: 0 0 2rem; }

details.faq { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
details.faq summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
details.faq summary::after { content: "+"; color: var(--primary); font-weight: 700; font-size: 1.2rem; line-height: 1; }
details.faq[open] summary::after { content: "\2212"; }
details.faq p { color: var(--muted); margin: .7rem 0 0; }

footer.site { border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; font-size: .88rem; color: var(--muted); }
footer.site .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; }
footer.site a { color: var(--muted); }
footer.site .ruo { margin-top: 1.6rem; padding: 1rem 1.2rem; background: var(--surface-muted); border-radius: 12px; font-size: .84rem; }

/* book page */
.book { display: grid; grid-template-columns: 1fr 380px; gap: 2rem; padding: 3rem 0 4rem; align-items: start; }
@media (max-width: 900px) { .book { grid-template-columns: 1fr; } }
.panel { border: 1px solid var(--line); border-radius: 1.5rem; padding: 1.8rem; background: #fff; }
.panel h2 { font-size: 1.35rem; }
label.f { display: block; font-weight: 600; font-size: .9rem; margin: 1rem 0 .35rem; }
label.f small { font-weight: 400; color: var(--subtle); }
input.f, select.f, textarea.f {
  width: 100%; padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: 12px;
  font: 400 1rem "Inter", sans-serif; color: var(--ink); background: #fff;
}
input.f:focus, select.f:focus, textarea.f:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
textarea.f { min-height: 110px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.check { display: flex; gap: .65rem; align-items: flex-start; margin-top: 1rem; font-size: .9rem; color: var(--muted); }
.check input { margin-top: .25rem; width: 18px; height: 18px; accent-color: var(--primary); flex: none; }
.summary-line { display: flex; justify-content: space-between; margin: .5rem 0; color: var(--muted); }
.summary-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.3rem; border-top: 1px solid var(--line); padding-top: .9rem; margin-top: .9rem; }
.stepper { display: flex; align-items: center; gap: .6rem; margin-top: .35rem; }
.stepper button { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; font-size: 1.3rem; cursor: pointer; color: var(--primary); }
.stepper output { min-width: 2.5rem; text-align: center; font-weight: 700; font-size: 1.2rem; }
.pay-buttons { display: grid; gap: .7rem; margin-top: 1.3rem; }
apple-pay-button { --apple-pay-button-width: 100%; --apple-pay-button-height: 48px; --apple-pay-button-border-radius: 9999px; display: block; }
#gpay-container button { width: 100% !important; }
#gpay-container > div { width: 100%; }
.pay-buttons .btn { width: 100%; height: 48px; }
.notice { border-radius: 12px; padding: .9rem 1rem; font-size: .9rem; margin-top: 1rem; }
.notice.err { background: #fdecef; color: #9b1c3a; }
.notice.info { background: var(--primary-soft); color: var(--primary-hover); }
.notice.ok { background: #e9f8ef; color: #17643a; }
.sandbox-tag { display: inline-block; background: #fff4d6; color: #7a5600; font-size: .75rem; font-weight: 700; padding: .2rem .6rem; border-radius: 9999px; margin-left: .5rem; vertical-align: middle; }
.hidden { display: none !important; }

/* legal pages */
.legal { max-width: 760px; padding: 3rem 1.25rem 4rem; margin: 0 auto; }
.legal h1 { font-size: 2.2rem; }
.legal h2 { font-size: 1.3rem; margin-top: 2rem; }
.legal p, .legal li { color: var(--muted); }

/* Inquiry form */
fieldset.svc { border: 0; padding: 0; margin: 1.2rem 0 0; }
fieldset.svc legend.f { padding: 0; }
fieldset.svc .check { margin-top: .5rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.inquiry { max-width: 720px; margin: 2.5rem auto; }
