/* Wakerig: one stylesheet for every page. System fonts only (nothing to download), tokens on :root. */
:root {
  --bg: #fafaf9; --surface: #ffffff; --ink: #111110; --ink-2: #44433f; --ink-3: #6f6e69; --line: #e4e3df; --line-2: #d2d1cc;
  --dark: #111110; --dark-ink: #f4f4f2; --dark-ink-2: #a9a8a3; --on: #22c55e; --on-ink: #15803d; --danger: #b42318;
  --r: 12px; --r-sm: 8px; --wrap: 1120px; --gut: 20px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
code { font-family: var(--mono); font-size: .92em; background: #efeeea; border: 1px solid var(--line); border-radius: 6px; padding: .05em .35em; white-space: nowrap; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; line-height: 1.15; text-wrap: balance; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ja) .sub, :lang(ja) .lead, :lang(ja) .eyebrow { word-break: auto-phrase; letter-spacing: 0; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.wrap.narrow > * { max-width: 760px; }
.last .wrap.narrow > * { margin-left: auto; margin-right: auto; }

/* Buttons: one primary (near-black), a ghost and a danger variant. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--dark); background: var(--dark); color: #fff; font: 600 16px/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: transform .08s ease, background .15s ease; }
.btn:hover { background: #2b2b29; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #86efac; outline-offset: 2px; }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 15px; border-radius: 8px; }
.btn.xl { min-height: 60px; padding: 0 32px; font-size: 19px; border-radius: 12px; box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 8px 24px -10px rgba(17,17,16,.45); }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { background: #f0efeb; }
.btn.danger { background: var(--danger); border-color: var(--danger); }
.btn.danger:hover { background: #912018; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* Header */
.bar { position: sticky; top: 0; z-index: 10; background: rgba(250,250,249,.88); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.bar-in { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); height: 60px; display: flex; align-items: center; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 19px; letter-spacing: -.02em; text-decoration: none; }
.logo svg { width: 28px; height: 28px; }
.nav { display: flex; gap: 22px; font-size: 15px; color: var(--ink-2); }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--ink); }
.sp { flex: 1; }
.lang { font-size: 14px; color: var(--ink-2); text-decoration: none; }
.lang:hover { color: var(--ink); text-decoration: underline; }

/* Hero */
.hero { padding: 80px 0 72px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 26px; padding: 6px 14px 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 550; color: var(--ink-2); }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--on); box-shadow: 0 0 0 4px rgba(34,197,94,.18); flex: none; }
.hero h1 { font-size: clamp(38px, 6.2vw, 68px); letter-spacing: -.035em; line-height: 1.04; max-width: 15.5em; }
:lang(ja) .hero h1 { font-size: clamp(34px, 5.6vw, 60px); line-height: 1.18; }
.sub { margin: 24px 0 0; font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 40em; }
.cta { margin-top: 36px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.under { margin: 0; font-size: 15px; color: var(--ink-3); }
.strip { list-style: none; margin: 40px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; color: var(--ink-2); }
.strip b { color: var(--ink); }

/* Sections */
section { padding: 88px 0; }
.kicker { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--on-ink); }
:lang(ja) .kicker { letter-spacing: .04em; }
section h2 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.03em; margin-bottom: 18px; }
:lang(ja) section h2 { font-size: clamp(26px, 3.6vw, 38px); }
.lead { font-size: 18px; color: var(--ink-2); max-width: 44em; }

.proof { background: var(--dark); color: var(--dark-ink); }
.proof .kicker { color: var(--on); }
.proof p { color: var(--dark-ink-2); max-width: 46em; font-size: 18px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 36px 0 40px; border-top: 1px solid #2c2c2a; border-bottom: 1px solid #2c2c2a; }
.stats div { padding: 26px 0; }
.stats div + div { padding-left: 28px; border-left: 1px solid #2c2c2a; }
.stats dt { font-size: 14px; color: var(--dark-ink-2); order: 2; }
.stats dd { margin: 0; font-size: clamp(44px, 7vw, 76px); font-weight: 750; letter-spacing: -.04em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.stats div { display: flex; flex-direction: column-reverse; gap: 10px; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 36px; }
.feat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; }
.feat h3 { font-size: 21px; margin-bottom: 12px; }
.feat p { margin: 0; color: var(--ink-2); }

.plans { background: #f3f2ef; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.plan.hi { border: 2px solid var(--dark); box-shadow: 0 18px 40px -24px rgba(17,17,16,.5); }
.plan h3 { font-size: 22px; }
.price { margin: 14px 0 18px; font-size: 46px; font-weight: 750; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.price small { font-size: 17px; font-weight: 500; letter-spacing: 0; color: var(--ink-3); margin-left: 4px; }
.spec { list-style: none; margin: 0 0 24px; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; color: var(--ink-2); flex: 1; }
.spec b { color: var(--ink); }
.reserve { margin: 0; }
.agree { margin: 22px 0 0; font-size: 14px; color: var(--ink-3); }

.steps { margin: 28px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 4px; }
.steps li { counter-increment: s; position: relative; padding: 16px 0 16px 52px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 14px; width: 32px; height: 32px; border-radius: 50%; background: var(--dark); color: #fff; font-size: 15px; font-weight: 700; display: grid; place-items: center; }
.steps b { color: var(--ink); }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); margin-top: 28px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 650; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 24px; font-weight: 400; color: var(--ink-3); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 22px; color: var(--ink-2); }

.last { text-align: center; padding: 96px 0 104px; }
.last p { color: var(--ink-2); font-size: 18px; margin-bottom: 28px; }

/* Footer */
.foot { border-top: 1px solid var(--line); background: var(--surface); padding: 56px 0 40px; font-size: 15px; }
.foot .cols { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.foot .b p { margin: 12px 0 0; color: var(--ink-3); max-width: 22em; }
.foot nav { display: flex; flex-direction: column; gap: 8px; }
.foot nav h2 { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 4px; }
.foot nav a { color: var(--ink-2); text-decoration: none; overflow-wrap: anywhere; }
.foot nav a:hover { color: var(--ink); text-decoration: underline; }
.fine { max-width: var(--wrap); margin: 40px auto 0; padding: 24px var(--gut) 0; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; }
.fine p { margin: 0 0 8px; }
.fine .disc { max-width: 60em; }

/* Legal pages */
.frame { padding: 56px var(--gut) 80px; }
.doc { max-width: 760px; margin: 0 auto; font-size: 16px; }
.doc h1 { font-size: clamp(30px, 4vw, 40px); margin-bottom: 10px; }
.doc h2 { font-size: 20px; margin: 36px 0 10px; letter-spacing: -.01em; }
.doc .upd { color: var(--ink-3); font-size: 14px; margin-bottom: 28px; }
.doc ul { padding-left: 1.3em; }
.doc li { margin-bottom: 6px; }
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.doc th { width: 30%; font-weight: 650; }
.doc td p { margin: 0 0 8px; }
.doc td ul { margin: 0 0 8px; }
.doc .note { font-size: 13px; color: var(--ink-3); }

/* The Worker's pages and the 404 */
.card-page { max-width: 640px; margin: 0 auto; padding: 8px 0 24px; }
.card-page h1 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 16px; }
.card-page .lead { font-size: 18px; }
.card-page .ok { width: 48px; height: 48px; border-radius: 50%; background: var(--on); color: #fff; display: grid; place-items: center; font-size: 26px; font-weight: 700; margin: 0 0 20px; }
.card-page .code { font: 750 72px/1 var(--sans); letter-spacing: -.04em; color: var(--line-2); margin: 0 0 12px; }
.planbox { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); padding: 20px 22px; margin: 22px 0; }
.planbox p { margin: 0; }
.planbox .pn { font-weight: 750; font-size: 20px; }
.planbox .ps { color: var(--ink-2); margin-top: 4px; }
.planbox .pp { margin-top: 10px; font-weight: 600; }
.cancelbox { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.linktext code { display: block; white-space: normal; overflow-wrap: anywhere; font-size: 13px; padding: 10px 12px; }
.small { font-size: 14px; color: var(--ink-3); }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

@media (max-width: 880px) {
  .nav { display: none; }
  .cards { grid-template-columns: 1fr; }
  .foot .cols { grid-template-columns: 1fr 1fr; }
  .foot .b { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --gut: 16px; }
  body { font-size: 16px; }
  .bar-in { gap: 14px; }
  .hero { padding: 48px 0 52px; }
  .eyebrow { font-size: 13px; }
  .cta .btn.xl, .last .btn.xl { width: 100%; }
  .cta { align-items: stretch; }
  .under { text-align: center; }
  section { padding: 64px 0; }
  .grid { grid-template-columns: 1fr; }
  .feat { padding: 22px; }
  .stats div + div { padding-left: 14px; }
  .stats dt { font-size: 13px; }
  .doc th, .doc td { display: block; width: 100%; padding: 6px 0; border: 0; }
  .doc tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .doc th { color: var(--ink-3); font-size: 13px; }
  .doc tr:has(> th + th) { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
