*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: #fff;
  color: #17181c;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}

img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid #e6e7eb;
  padding-top: env(safe-area-inset-top);
}

.bar, .nav, .dock {
  width: min(100% - 32px, 720px);
  margin-inline: auto;
}

.bar {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { font-weight: 800; letter-spacing: -0.04em; font-size: 20px; }

.burger {
  width: 44px;
  height: 44px;
  border: 1px solid #e6e7eb;
  border-radius: 12px;
  background: #fff;
}

.burger span,
.burger span::before,
.burger span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  margin: 0 auto;
  background: #17181c;
  position: relative;
}

.burger span::before,
.burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -5px; }
.burger span::after { top: 5px; }

.nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 12px;
}

.nav.is-open { display: flex; }

.nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 700;
}

.hero, .block {
  width: min(100% - 32px, 720px);
  margin-inline: auto;
}

.hero { padding: 28px 0 8px; }
.kicker { color: #f15a22; font-weight: 800; font-size: 13px; letter-spacing: 0.06em; }
h1 { margin-top: 8px; font-size: 36px; line-height: 1.12; letter-spacing: -0.04em; }
h2 { font-size: 28px; letter-spacing: -0.04em; margin-bottom: 14px; }
h3 { font-size: 18px; letter-spacing: -0.02em; }
.sub { margin-top: 10px; color: #5f646e; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-weight: 700;
}

.btn--solid { background: #f15a22; color: #fff; }
.btn--block { width: 100%; }
.hero .btn { margin-top: 18px; }

.block { padding: 28px 0 8px; }

.quote, .card, .table-wrap {
  background: #fff;
  border: 1px solid #e6e7eb;
  border-radius: 18px;
}

.quote { padding: 16px; }
.field { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; }
input[type="range"] { width: 100%; margin-top: 12px; accent-color: #f15a22; min-height: 44px; }
.scale, .fine, .sub, .card p, .steps, .notes { color: #5f646e; }
.scale { display: flex; justify-content: space-between; font-size: 13px; }
.fine { margin-top: 12px; font-size: 13px; }

.plans { display: grid; gap: 10px; margin-top: 14px; }
.plan {
  width: 100%;
  min-height: 44px;
  text-align: left;
  border: 1px solid #e6e7eb;
  border-radius: 16px;
  background: #fff;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name price" "desc price";
  column-gap: 12px;
}
.plan.is-on { border-color: #f15a22; box-shadow: inset 0 0 0 1px #f15a22; }
.plan__name { grid-area: name; font-weight: 800; }
.plan__desc { grid-area: desc; color: #5f646e; font-size: 14px; }
.plan__price { grid-area: price; align-self: center; font-variant-numeric: tabular-nums; }
.plan__price b { font-size: 18px; }
.plan__price small { color: #5f646e; }

.card { padding: 16px; margin-bottom: 10px; }
.card p, .steps li, .notes li { margin-top: 6px; }
.num { margin-top: 8px; font-size: 28px; font-weight: 800; letter-spacing: -0.04em; color: #17181c; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th, td { padding: 12px; text-align: left; border-bottom: 1px solid #e6e7eb; vertical-align: top; font-size: 14px; }
th { color: #5f646e; }

.steps, .notes { margin: 0; padding-left: 18px; display: grid; gap: 10px; }
.notes { margin-top: 16px; }

.footer {
  width: min(100% - 32px, 720px);
  margin: 28px auto 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #5f646e;
}

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  padding: 12px 0 max(12px, env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid #e6e7eb;
}

.btn:focus-visible,
.plan:focus-visible,
.burger:focus-visible,
.nav a:focus-visible {
  outline: 2px solid #f15a22;
  outline-offset: 3px;
}

@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .burger, .dock { display: none; }
  .nav {
    display: flex;
    flex-direction: row;
    gap: 22px;
    width: min(100% - 48px, 960px);
    padding: 0 0 12px;
  }
  .bar, .hero, .block, .footer { width: min(100% - 48px, 960px); }
  .hero { padding-top: 48px; }
  h1 { font-size: 56px; }
  .plans { grid-template-columns: 1fr; }
  .cover-grid, .situation-grid { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
