:root {
  --paper: #f3efe6;
  --paper-2: #e7e0d2;
  --ink: #14211c;
  --muted: #4d5c55;
  --forest: #12352c;
  --forest-2: #1b4a3e;
  --leaf: #1f7a5a;
  --pulse: #e23b2b;
  --sand: #e7d3ae;
  --white: #fffdf8;
  --line: rgba(20, 33, 28, 0.12);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --shadow: 0 20px 50px rgba(20, 33, 28, 0.08);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(226, 59, 43, 0.08), transparent 55%),
    var(--paper);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.55;
}
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--forest-2); }
h1, h2, h3 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.03em; line-height: 1.08; margin: 0 0 0.4em; }
h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 0.8rem; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--pulse); outline-offset: 2px; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: white;
  padding: 0.6rem 0.9rem;
  z-index: 20;
}
.skip:focus { top: 1rem; }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.wrap { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 40rem; }
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--leaf);
  margin-bottom: 0.7rem;
}

.mark { width: 44px; height: 44px; display: block; flex: 0 0 auto; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--forest); }
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name strong { font-family: var(--serif); font-size: 1.2rem; font-weight: 620; }
.brand-name small { color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.68rem; }

.site-header { position: sticky; top: 0; z-index: 5; background: rgba(243, 239, 230, 0.92); backdrop-filter: blur(12px); }
.nav-row { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 1rem; }
.site-nav { display: flex; align-items: center; gap: 1rem; }
.site-nav a { text-decoration: none; font-weight: 600; }

.btn, button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--pulse);
  color: white;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1.15rem;
  font-weight: 600;
  cursor: pointer;
}
.btn-small { padding: 0.5rem 0.85rem; font-size: 0.95rem; }
.btn-ghost, button.btn-ghost { background: transparent; color: var(--forest); border: 1px solid var(--line); }
.btn-danger { background: transparent; color: var(--pulse); border: 1px solid rgba(226, 59, 43, 0.35); }
.hero { padding: 3.2rem 0 2rem; }
.hero-grid, .split { display: grid; gap: 1.2rem; }
.hero-grid { grid-template-columns: 1.2fr 0.8fr; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.2rem; }
.steps { list-style: none; margin: 0; padding: 1.2rem; background: var(--white); border-radius: 22px; box-shadow: var(--shadow); }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: 0.8rem; padding: 0.85rem 0; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; padding-top: 0; }
.steps span { font-family: var(--serif); color: var(--pulse); font-size: 1.2rem; }
.section { padding: 1rem 0 4rem; }
.section-head { display: flex; justify-content: space-between; gap: 1rem; align-items: end; margin-bottom: 1.2rem; }
.section-cta { margin-top: 1.4rem; }
.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; }
.plan, .panel, .stat, .auth-card {
  background: var(--white);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.plan { padding: 1.15rem 1.15rem 1.3rem; position: relative; }
.plan.featured { outline: 2px solid var(--forest); }
.flag {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  background: var(--sand);
  color: var(--forest);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
}
.price { font-family: var(--serif); font-size: 1.45rem; margin-bottom: 0.3rem; }
.site-footer { border-top: 1px solid var(--line); padding: 1.4rem 0 2rem; color: var(--muted); }
.footer-row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-row p { margin: 0; }

.auth-body { min-height: 100vh; }
.auth-shell { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-copy { padding: 2.2rem; background: var(--forest); color: #f6f1e7; display: flex; flex-direction: column; justify-content: center; }
.auth-copy .brand, .auth-copy h1 { color: #f6f1e7; }
.auth-copy .brand-name small, .auth-copy .lede { color: rgba(246, 241, 231, 0.78); }
.auth-copy .eyebrow { color: #e7d3ae; }
.auth-copy .brand { margin-bottom: 2rem; }
.auth-card { margin: auto; width: min(440px, calc(100% - 2rem)); padding: 1.5rem; }
.auth-card label, .panel label, .main label { display: block; font-weight: 600; font-size: 0.92rem; margin: 0.85rem 0 0.3rem; }
.auth-card label span, .panel label span { color: var(--muted); font-weight: 500; }
.auth-card input, .panel input, .panel select, .panel textarea, .inline-form input, .inline-form select, .claim-form input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
}
.auth-card .btn, .panel .btn { margin-top: 1rem; }
.switch { color: var(--muted); margin-top: 1rem; }
.check { display: flex !important; align-items: center; gap: 0.45rem; font-weight: 500 !important; }
.check input { width: auto; }
.alert, .status { border-radius: 14px; padding: 0.75rem 0.9rem; margin: 0 0 1rem; }
.alert { background: #fde8e4; color: #6d2218; }
.alert p, .status { margin: 0; }
.status { background: #e5f3ec; color: var(--forest); }

.shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.side {
  background: var(--forest);
  color: #f6f1e7;
  padding: 1.2rem 1rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  position: sticky;
  top: 0;
  height: 100vh;
}
.side .brand, .side .brand-name strong { color: #f6f1e7; }
.side .brand-name small { color: rgba(246, 241, 231, 0.7); }
.side-nav { display: flex; flex-direction: column; gap: 0.25rem; }
.side-nav a {
  color: #f6f1e7;
  text-decoration: none;
  font-weight: 600;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
}
.side-nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.1); }
.side-foot { margin-top: auto; }
.who { font-weight: 600; margin: 0; }
.who-mail { color: rgba(246, 241, 231, 0.72); font-size: 0.92rem; }
.side .btn-ghost, .side button.btn-ghost { color: #f6f1e7; border-color: rgba(246, 241, 231, 0.3); background: transparent; }
.main { padding: 1.4rem 1.5rem 3rem; }
.trial-banner {
  background: var(--forest);
  color: #f6f1e7;
  border-radius: 14px;
  padding: 0.7rem 0.9rem;
  margin: 0 0 1rem;
}
.trial-banner a { color: #fff; }
.page-head { display: flex; justify-content: space-between; gap: 1rem; align-items: end; margin-bottom: 1rem; }
.page-head h1 { font-size: clamp(2rem, 4vw, 3rem); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; margin-bottom: 1rem; }
.stat, .panel { padding: 1rem 1.1rem 1.15rem; }
.stat p { color: var(--muted); margin: 0; }
.stat strong { font-family: var(--serif); font-size: 2.2rem; font-weight: 560; }
.callout h2 { margin-top: 0.2rem; }
.panel h2 { margin-top: 0.2rem; }
.panel + .panel, .split + .panel, .panel + .plan-grid { margin-top: 1rem; }
.split { grid-template-columns: repeat(3, 1fr); align-items: start; }
.split-2 { grid-template-columns: 1.3fr 0.7fr; }
.narrow { max-width: 36rem; }
.inline-form, .claim-form, .time-row { display: flex; gap: 0.7rem; align-items: end; flex-wrap: wrap; }
.inline-form input, .inline-form select { width: auto; min-width: 12rem; }
.claim-form > div { flex: 1; min-width: 10rem; }
.claim-form .btn, .inline-form .btn { margin-top: 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.65rem 0.4rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.pill { display: inline-flex; border-radius: 999px; padding: 0.15rem 0.55rem; font-size: 0.82rem; font-weight: 600; }
.pill.on { background: #e5f3ec; color: var(--forest); }
.pill.off { background: var(--paper-2); color: var(--muted); }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.8rem; }
.media-card { background: var(--paper); border-radius: 16px; padding: 0.7rem; }
.media-card img, .thumb { width: 100%; height: 120px; object-fit: cover; border-radius: 12px; background: var(--forest); }
.thumb { display: grid; place-items: center; color: #f6f1e7; text-align: center; padding: 0.6rem; }
.thumb.theme-paper { background: var(--paper-2); color: var(--ink); }
.thumb.theme-pulse { background: var(--pulse); }
.thumb.theme-ink { background: var(--ink); }
.media-card h3 { font-size: 1.05rem; margin: 0.55rem 0 0.2rem; }
.media-card p { color: var(--muted); font-size: 0.92rem; }
.item-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.item-row, .schedule-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem 0.8rem;
  align-items: center;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}
.item-row form { display: flex; gap: 0.4rem; align-items: center; }
.item-row input[type="number"] { width: 5.5rem; }
.row-actions { display: flex; gap: 0.35rem; grid-column: 1 / -1; }
.schedule-list { list-style: none; margin: 0 0 1rem; padding: 0; }
.days { border: 0; margin: 0.8rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem 0.8rem; }
.days legend { font-weight: 600; font-size: 0.92rem; padding: 0; margin-bottom: 0.3rem; width: 100%; }
.time-row > div { flex: 1; }
.danger-form { margin-top: 1.4rem; }
.empty-copy { color: var(--muted); }
.nav-toggle { display: none; }

@media (max-width: 980px) {
  .hero-grid, .auth-shell, .plan-grid, .split, .split-2, .account-grid, .stat-grid, .onboard-grid { grid-template-columns: 1fr; }
  .shell { display: block; }
  .side { position: sticky; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .side-nav { flex-direction: row; flex-wrap: wrap; }
  .side-foot { margin-top: 0; display: flex; gap: 0.7rem; align-items: center; flex-wrap: wrap; width: 100%; }
  .side-foot .btn { white-space: nowrap; }
  .auth-copy { min-height: auto; }
  .site-nav {
    display: none;
    position: absolute;
    top: 76px;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    padding: 0.8rem 1rem 1rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .nav-toggle { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .feature-grid, .steps-grid, .industry-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

.nav-toggle {
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-weight: 600;
  cursor: pointer;
}
.nav-row { position: relative; }
.topbar { background: var(--forest); color: #f6f1e7; font-size: 0.92rem; }
.topbar a { color: #f6f1e7; text-decoration: none; }
.topbar-inner { display: flex; gap: 0.7rem; align-items: center; min-height: 38px; flex-wrap: wrap; }
.topbar-mail { margin-left: auto; }
.dot { width: 4px; height: 4px; border-radius: 50%; background: var(--sand); }
.hero-figure { margin: 0; }
.hero-figure img { width: 100%; height: auto; border-radius: 22px; object-fit: cover; aspect-ratio: 3 / 2; box-shadow: var(--shadow); }
.proof-row, .chip-row, .device-row { display: flex; flex-wrap: wrap; gap: 0.55rem; list-style: none; margin: 1.2rem 0 0; padding: 0; }
.proof-row li, .chip-row li, .device-row li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--white);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-weight: 600;
}
.feature-grid, .industry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
.feature, .industry-grid article, .steps-grid article { background: var(--white); border-radius: 22px; box-shadow: var(--shadow); padding: 1.1rem 1.15rem 1.2rem; }
.feature > i { color: var(--pulse); font-size: 1.3rem; }
.feature h3, .industry-grid h3 { margin-top: 0.55rem; }
.band { background: rgba(18, 53, 44, 0.06); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
.steps-grid img, .industry-grid img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; }
.step-no { font-family: var(--serif); color: var(--pulse); font-size: 1.4rem; margin: 0.7rem 0 0.2rem; }
.industry-grid h3 i { color: var(--leaf); margin-right: 0.35rem; }
.faq-wrap { max-width: 46rem; }
.faq details { border-top: 1px solid var(--line); padding: 0.8rem 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { color: var(--muted); margin: 0.45rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 1.2rem; }
.footer-grid > div > a:not(.brand) { display: block; color: var(--muted); text-decoration: none; margin: 0.25rem 0; }
.footer-label { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--forest); }
.social-links { display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; list-style: none; margin: 0.85rem 0 0; padding: 0; }
.social-links a { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--forest); font-weight: 600; text-decoration: none; }
.social-links a:hover { text-decoration: underline; }
.footer-note { margin-top: 1.2rem; font-size: 0.92rem; }
.footer-note p + p { margin-top: 0.35rem; }
.footer-note p a + a { margin-left: 0.75rem; }
.footer-note a { color: var(--forest); text-underline-offset: 0.12em; }
.site-footer .brand { display: flex; align-items: center; margin-bottom: 0.6rem; color: var(--forest); }
.side-nav a { display: flex; align-items: center; gap: 0.55rem; }
.side-nav i { width: 1.1rem; text-align: center; }
.kind-switch { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1rem 0 0.9rem; }
.onboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
  align-items: stretch;
}
.account-grid > div { display: flex; flex-direction: column; }
.account-grid h3 { margin: 0.2rem 0 0.35rem; }
.account-grid h3 i { color: var(--leaf); margin-right: 0.4rem; }
.account-grid .hint { min-height: 4.6rem; }
.account-grid .check { margin-top: auto; padding-top: 0.9rem; }
.kind-switch button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-weight: 600;
  cursor: pointer;
}
.kind-switch button[aria-pressed="true"] { background: var(--forest); color: #f6f1e7; border-color: var(--forest); }
.webcam-preview { display: block; width: 100%; max-height: 220px; object-fit: cover; border-radius: 16px; background: #111; margin: 0.2rem 0 0.8rem; }
.panel h2 i { color: var(--pulse); margin-right: 0.35rem; }
.hint { color: var(--muted); font-size: 0.95rem; }
.panel-head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; flex-wrap: wrap; }
.filter-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1rem; }
.filter-row a {
  text-decoration: none;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  background: var(--paper);
  font-weight: 600;
  font-size: 0.92rem;
}
.filter-row a[aria-current="page"] { background: var(--forest); color: #f6f1e7; }
.filter-row span { font-weight: 500; }
[hidden] { display: none !important; }

@media (max-width: 980px) {
  .hero-grid,
  .feature-grid,
  .steps-grid,
  .industry-grid,
  .plan-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .hero { padding: 2rem 0 1rem; }
  h1 { font-size: clamp(2.15rem, 11vw, 3.4rem); }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .topbar { font-size: 0.86rem; }
  .topbar-mail { margin-left: 0; }
  .section { padding: 0.2rem 0 2.6rem; }
  .footer-grid p,
  .footer-grid a { overflow-wrap: anywhere; }
}
