:root {
  --paper: #f7f4ee;
  --ink: #1a1714;
  --muted: #5c5348;
  --line: #e4d9c8;
  --card: #fffdfb;
  --header: #fffdfb;
  --accent: #9a3412;
  --accent-ink: #fff7ed;
  --focus: #1a1714;
  --ok: #3f6212;
  --ok-bg: #3f6212;
  --d60: #1e3a8a;
  --d30: #9a3412;
  --bad: #9f1239;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { font-size: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.5;
  min-height: 100vh;
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6rem; }
h1 { font-size: 1.8rem; }
h2 { font-size: 1.3rem; }
p { margin: 0 0 0.8rem; }
a { color: var(--accent); }
img { max-width: 100%; }
.skip { position: absolute; left: 0.5rem; top: -3rem; background: #fff; padding: 0.5rem 0.7rem; z-index: 6; }
.skip:focus { top: 0.5rem; }
.wrap { width: min(1080px, calc(100% - 1.5rem)); margin: 0 auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}
.site-header { background: var(--header); color: var(--ink); border-bottom: 4px solid var(--accent); }
.header-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.2rem; padding: 0.6rem 0; }
.brand { color: var(--ink); text-decoration: none; font-weight: 800; display: inline-flex; align-items: center; gap: 0.55rem; font-size: 1.25rem; }
.mark { display: inline-flex; flex-direction: column; gap: 2px; width: 18px; }
.mark i { display: block; height: 4px; border-radius: 2px; }
.mark i:nth-child(1) { background: var(--bad); }
.mark i:nth-child(2) { background: #d97706; }
.mark i:nth-child(3) { background: var(--ok); }
.nav-desktop { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.8rem; }
.nav-desktop a, .nav-mobile a { color: var(--ink); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; padding: 0.2rem 0.15rem; }
.nav-desktop a[aria-current="page"], .tabbar a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.3rem; }
.nav-mobile { display: none; }
.nav-mobile summary { list-style: none; cursor: pointer; min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 0 0.8rem; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile-panel { position: absolute; right: 0.75rem; background: #fff; border: 1px solid var(--line); padding: 0.6rem; display: grid; gap: 0.2rem; min-width: 12rem; z-index: 5; }
.company-line { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: 1rem; padding-bottom: 0.45rem; }
.site-footer { border-top: 1px solid var(--line); margin-top: 2.5rem; padding: 1.2rem 0 6rem; color: var(--muted); font-size: 1rem; }
main { padding-top: 1.2rem; padding-bottom: 1rem; }
.button, button, input[type="submit"] {
  font: inherit;
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  min-height: 48px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.button.secondary, button.secondary { background: #fff; color: var(--ink); border-color: #b7ad9d; }
.button-large { font-size: 1.15rem; min-height: 56px; padding: 0.85rem 1.2rem; }
.nav-desktop .button { color: var(--accent-ink); }
.linkish { background: transparent; border: 0; color: var(--ink); min-height: 44px; padding: 0.4rem; text-decoration: underline; cursor: pointer; font: inherit; }
.inline-form { display: inline; margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin: 1rem 0; }
.lede { font-size: 1.2rem; max-width: 42rem; }
.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 1.25rem; align-items: start; margin-bottom: 2rem; }
.hero-intro { display: block; max-width: 46rem; margin-bottom: 1.4rem; }
.panel, .card, form.card, .table-wrap { background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.panel, .card { padding: 1rem; }
.panel h2 { font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.example-row { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.6rem 0; border-top: 1px solid var(--line); }
.section { margin: 1.6rem 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.price { font-size: 2.2rem; margin: 0.2rem 0; font-weight: 750; }
.muted, .hint { color: var(--muted); font-size: 1rem; }
ol.plain, ul.plain { padding-left: 1.2rem; }
ol.plain li, ul.plain li { margin: 0.4rem 0; }
.banner, .toast { padding: 0.8rem 0.9rem; border-radius: 10px; margin: 0 0 1rem; }
.banner-stop, .toast-stop { background: #fde2e4; color: #9f1239; }
.banner-ok, .toast-ok { background: #e7f2d8; color: #3f6212; }
.banner ul { margin: 0; padding-left: 1.1rem; }
.toast-wrap { position: fixed; left: 0.75rem; right: 0.75rem; bottom: 5.5rem; z-index: 30; display: flex; justify-content: center; }
.toast { width: min(36rem, 100%); box-shadow: 0 8px 24px rgba(26, 23, 20, 0.16); }
.toast form { margin: 0.4rem 0 0; }
form.card, .stack-form { display: grid; gap: 0.2rem; }
.stack-form > button, .stack-form > .button { justify-self: start; }
.field { margin: 0.35rem 0 0.85rem; }
.field label { display: block; font-weight: 700; margin-bottom: 0.3rem; }
.req { color: var(--bad); font-size: 0.85rem; font-weight: 700; margin-left: 0.25rem; }
input[type="text"], input[type="email"], input[type="password"], input[type="date"], input[type="number"], input[type="search"], input[type="file"], select, textarea {
  width: 100%;
  font: inherit;
  font-size: 1.05rem;
  color: var(--ink);
  background: #fff;
  border: 2px solid #c9bfb0;
  border-radius: 8px;
  padding: 0.65rem 0.7rem;
  min-height: 48px;
}
textarea { min-height: 8rem; }
input:focus, select:focus, textarea:focus, button:focus, a:focus, summary:focus {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.field-error input, .field-error select, .field-error textarea { border-color: var(--bad); }
.field-msg { color: var(--bad); font-weight: 650; margin: 0.3rem 0 0; }
.password-row { display: flex; gap: 0.45rem; align-items: center; }
.password-row input { flex: 1; }
.password-row button { background: #fff; color: var(--ink); border: 2px solid #c9bfb0; min-width: 4.8rem; }
.trial-line { color: var(--muted); }
.big-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; margin: 0.8rem 0 1rem; }
.big-card {
  display: flex; flex-direction: column; justify-content: center; gap: 0.15rem;
  min-height: 104px; text-decoration: none; color: #fff; border-radius: 14px; padding: 0.9rem;
}
.big-card strong { font-size: 2.2rem; line-height: 1; }
.big-card.c-expired { background: var(--bad); }
.big-card.c-due30 { background: var(--d30); }
.big-card.c-due60 { background: var(--d60); }
.big-card.c-ok { background: var(--ok-bg); }
.big-card.is-on { outline: 3px solid var(--ink); outline-offset: 2px; }
.chip { display: inline-block; border-radius: 999px; padding: 0.2rem 0.6rem; font-size: 0.95rem; font-weight: 700; }
.chip-expired { background: #fde2e4; color: var(--bad); }
.chip-due_30, .chip-due_7 { background: #ffedd5; color: var(--d30); }
.chip-due_60 { background: #dbeafe; color: var(--d60); }
.chip-ok { background: #e7f2d8; color: var(--ok); }
.item-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.item-row { display: flex; gap: 0.6rem; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0.45rem; }
.item-main { flex: 1; text-decoration: none; color: inherit; display: grid; gap: 0.15rem; padding: 0.45rem; min-height: 48px; }
.item-main strong { font-size: 1.15rem; }
.renew-link { min-width: 7rem; }
.filter-form { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: end; margin: 0.5rem 0 1rem; }
.filter-form label { display: grid; gap: 0.25rem; font-weight: 700; min-width: 10rem; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
.tile {
  display: grid; gap: 0.2rem; min-height: 112px; padding: 1rem; text-decoration: none; color: var(--ink);
  background: #fff; border: 2px solid var(--line); border-radius: 14px;
}
.tile strong { font-size: 1.2rem; }
.tile-mark { width: 36px; height: 8px; border-radius: 4px; background: var(--accent); }
.setup-banner, .empty { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1rem; margin: 0 0 1rem; }
.step-nav { display: grid; gap: 0.4rem; padding: 0; list-style: none; }
.step-nav a { display: flex; align-items: center; min-height: 48px; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0.4rem 0.8rem; color: var(--ink); }
.step-nav [aria-current="step"] a { border-color: var(--ink); font-weight: 750; }
.person-card { margin-bottom: 0.7rem; }
.add-fab {
  position: fixed; right: 0.8rem; bottom: 5.4rem; z-index: 25;
  background: var(--accent); color: var(--accent-ink); text-decoration: none;
  min-height: 56px; padding: 0.8rem 1rem; border-radius: 999px; font-weight: 800;
  box-shadow: 0 8px 20px rgba(154, 52, 18, 0.28);
}
.tabbar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: #fff; border-top: 1px solid var(--line);
  grid-template-columns: repeat(4, 1fr); min-height: 64px;
}
.tabbar a { display: flex; align-items: center; justify-content: center; min-height: 64px; text-decoration: none; color: var(--ink); font-weight: 700; }
.tabbar .tab-add { background: var(--accent); color: var(--accent-ink); }
table.items { width: 100%; border-collapse: collapse; }
table.items th, table.items td { text-align: left; padding: 0.7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.check { display: flex; gap: 0.55rem; align-items: flex-start; margin: 0.45rem 0; min-height: 44px; }
.check input { width: 1.3rem; height: 1.3rem; min-height: 0; margin-top: 0.2rem; }
.danger { border-color: #e7b8c0; }
.desktop-only { display: flex; }
@media (max-width: 760px) {
  h1 { font-size: 1.55rem; }
  .hero, .grid-2, .big-cards, .tiles { grid-template-columns: 1fr; }
  .nav-desktop { display: none; }
  .nav-mobile { display: block; position: relative; }
  .tabbar { display: grid; }
  .desktop-only { display: none; }
  .company-line { flex-direction: column; gap: 0; }
  table.items thead { display: none; }
  table.items, table.items tbody, table.items tr, table.items td { display: block; width: 100%; }
  table.items tr { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 0.7rem; background: #fff; }
  table.items td { border: 0; }
  table.items td::before { content: attr(data-label); display: block; font-size: 0.85rem; color: var(--muted); font-weight: 700; }
}
@media (min-width: 761px) {
  .add-fab { bottom: 1.2rem; }
  .toast-wrap { bottom: 1.2rem; }
  .site-footer { padding-bottom: 5rem; }
}
.walk { max-width: 760px; margin: 0 auto 2rem; }
.walk-frame { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: #ddd4c4; }
.walk-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 0.7s ease; z-index: 0; }
.walk-slide.is-on { opacity: 1; z-index: 1; }
.walk-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.walk-cap {
  position: absolute; left: 0.75rem; right: 0.75rem; bottom: 0.75rem;
  display: inline-flex; align-items: center; gap: 0.45rem; width: fit-content; max-width: calc(100% - 1.5rem);
  background: rgba(26, 23, 20, 0.88); color: #fff; border-radius: 999px; padding: 0.35rem 0.75rem 0.35rem 0.35rem;
  font-size: 1rem;
}
.walk-step {
  min-width: 1.8rem; height: 1.8rem; border-radius: 999px; background: #fff; color: #1a1714;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800;
}
.walk-controls { display: flex; align-items: center; justify-content: center; gap: 0.8rem; margin-top: 0.7rem; min-height: 48px; }
.walk-dots { display: flex; gap: 0.4rem; }
.walk-dot {
  width: 44px; height: 44px; border-radius: 999px; border: 0; background: transparent; padding: 0; min-height: 44px;
  position: relative;
}
.walk-dot::after {
  content: ""; position: absolute; left: 14px; top: 14px; width: 16px; height: 16px; border-radius: 999px;
  background: #c9bfb0;
}
.walk-dot.is-on::after { background: var(--accent); }
.walk-replay { min-height: 44px; }
.demo { margin: 0 auto 2rem; max-width: 760px; }
.demo-label { font-weight: 700; }
.demo-board { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0.9rem; }
.demo-lead { font-size: 1.25rem; font-weight: 750; }
.demo-cards { grid-template-columns: repeat(4, 1fr); }
.demo-cards .big-card { border: 0; width: 100%; cursor: pointer; font: inherit; text-align: left; }
.demo-item-good { background: #e7f2d8; }
button.tile { width: 100%; text-align: left; background: #fff; color: var(--ink); border: 2px solid var(--line); font-weight: 700; }
.demo-note { font-weight: 700; }
@media (prefers-reduced-motion: reduce) {
  .walk-frame { aspect-ratio: auto; display: grid; gap: 0.8rem; overflow: visible; background: transparent; }
  .walk-slide { position: static; opacity: 1; transition: none; }
  .walk-slide img { height: auto; aspect-ratio: 4 / 3; }
  .walk-controls { display: none; }
}
@media (max-width: 760px) {
  .demo-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 360px) {
  .wrap { width: calc(100% - 1rem); }
  .item-row { flex-direction: column; align-items: stretch; }
  .renew-link { width: 100%; }
}
