:root {
  --paper: #f3eee6;
  --paper-deep: #e7dfd2;
  --card: #fffcf8;
  --ink: #1b2420;
  --slate: #3c4a46;
  --muted: #5d6a64;
  --line: #e3d8c8;
  --sage: #2f5d49;
  --sage-deep: #234736;
  --sage-soft: #e6f1ea;
  --clay: #9a5338;
  --clay-soft: #f8ece6;
  --shadow: 0 24px 60px rgba(62, 48, 28, 0.08);
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 500px at 90% -10%, rgba(47, 93, 73, 0.08), transparent 55%),
    radial-gradient(900px 420px at -10% 20%, rgba(154, 83, 56, 0.06), transparent 50%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  min-height: 100vh;
}
body.simple { background: var(--paper); }
img, svg { display: block; max-width: 100%; }
a { color: var(--sage-deep); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.03em; line-height: 1.12; margin: 0; }
p { margin: 0; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 10;
}
.skip:focus { top: 12px; }

.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(18px);
  background: #f3eee6;
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; letter-spacing: -0.02em; }
.brand svg { width: 32px; height: 32px; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  color: var(--slate);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { background: rgba(255,255,255,0.7); color: var(--ink); }
.nav-toggle { display: none; }
.nav-toggle summary { list-style: none; cursor: pointer; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.nav-toggle summary::-webkit-details-marker { display: none; }

.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; padding: 56px 0 28px; }
.eyebrow { color: var(--sage); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px; margin-bottom: 14px; }
.hero h1 { font-size: clamp(40px, 5vw, 68px); max-width: 12ch; }
.lede { margin-top: 18px; font-size: 19px; color: var(--slate); max-width: 42ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.actions.center { justify-content: center; }
.spaced { margin-top: 16px; }
.dash h1, .auth-card h1 { font-size: clamp(36px, 5vw, 52px); }
.fine { margin-top: 14px; color: var(--muted); font-size: 14px; }

.btn, button.btn {
  display: inline-flex;
  align-items: center;
  align-self: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 13px 18px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  min-height: 48px;
  line-height: 1.2;
}
.btn.primary { background: var(--sage); color: #f7f4ee; }
.btn.primary:hover { background: var(--sage-deep); }
.btn.secondary { background: transparent; border-color: #cbbfae; color: var(--ink); }
.btn.secondary:hover { background: rgba(255,255,255,0.65); }
.btn.full { width: 100%; }
.btn.small { min-height: 40px; padding: 8px 14px; font-size: 15px; }
.btn.quiet { color: var(--clay); border-color: transparent; background: transparent; padding-inline: 8px; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(47, 93, 73, 0.35);
  outline-offset: 2px;
}
form[aria-busy="true"] .btn.primary { opacity: 0.7; }

.preview {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 22px;
}
.preview-top { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: #3e8f68; box-shadow: 0 0 0 6px rgba(62, 143, 104, 0.15); }
.preview h2 { font-size: 32px; }
.preview p { margin-top: 8px; color: var(--slate); }
.preview .fake-btn { margin-top: 22px; background: var(--sage); color: white; border-radius: 999px; text-align: center; padding: 14px; font-weight: 600; }
.meta-row { display: flex; gap: 18px; margin-top: 18px; color: var(--muted); font-size: 14px; }

.section { padding: 56px 0; }
.section h1, .section h2, .auth-card h1, .dash h1, .checkin-card h1 { text-wrap: balance; }
.section h1, .section h2 { font-size: clamp(36px, 5vw, 56px); max-width: 18em; }
.prose { max-width: 68ch; }
.prose h2 { font-size: 28px; max-width: none; margin-top: 8px; }
.section-lead { margin-top: 10px; color: var(--slate); max-width: 48ch; }
.steps, .cards, .price-grid, .security-grid { display: grid; gap: 16px; margin-top: 28px; }
.steps { grid-template-columns: repeat(3, 1fr); }
.cards, .security-grid { grid-template-columns: repeat(4, 1fr); }
.security-grid { grid-template-columns: repeat(3, 1fr); }
.card, .step, .price, .secure {
  background: rgba(255, 252, 248, 0.8);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
}
.step-no { font-family: var(--serif); color: var(--sage); font-size: 28px; }
.step h3, .card h3, .secure h3 { margin: 10px 0; font-size: 26px; }
.card p, .step p, .secure p, .price p { color: var(--slate); }

.price-grid { grid-template-columns: 1fr 1fr; }
.price { position: relative; display: flex; flex-direction: column; gap: 8px; }
.price.featured { background: var(--sage-deep); color: #f6f3ec; border-color: var(--sage-deep); }
.price.featured p, .price.featured li { color: #e4efe8; }
.price .amount { font-family: var(--serif); font-size: 56px; letter-spacing: -0.04em; line-height: 1; }
.price ul { margin: 8px 0 18px; padding-left: 18px; }
.ribbon {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f3eee6;
  color: var(--sage-deep);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 600;
}
.price .btn { margin-top: auto; }
.price.featured .btn.primary { background: #f6f3ec; color: var(--sage-deep); }

.faq { margin-top: 22px; display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin-top: 8px; color: var(--slate); }

.band { background: #24352e; color: #f6f3ec; border-radius: 28px; padding: 28px; }
.band h2, .band h3 { color: #f6f3ec; }
.band p { color: #d5e4db; }
.band .security-grid { margin-top: 18px; }
.band .secure { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); }

.site-footer { padding: 28px 0 48px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 22px; }
.site-footer a { color: var(--slate); }
.footer-links { display: flex; gap: 14px; }

.auth, .checkin, .dash { padding: 36px 0 64px; }
.auth-card, .checkin-card {
  width: min(520px, 100%);
  margin: 24px auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.checkin-card { text-align: center; }
.checkin-card h1 { font-size: clamp(36px, 5vw, 52px); }
.checkin-card p { margin-top: 12px; color: var(--slate); }
.checkin-card form { margin-top: 22px; }
.stack { display: grid; gap: 14px; margin-top: 18px; }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--slate); }
input, select, textarea {
  width: 100%;
  border: 1px solid #d9cdbC;
  background: white;
  border-radius: 12px;
  padding: 12px 12px;
  min-height: 48px;
}
textarea { min-height: 120px; resize: vertical; }
.help { font-weight: 400; color: var(--muted); }

.banner {
  border-radius: 16px;
  padding: 12px 14px;
  background: var(--sage-soft);
  color: var(--sage-deep);
  margin-bottom: 16px;
}
.banner.error { background: var(--clay-soft); color: var(--clay); }

.dash-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 18px; }
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 10px; background: var(--sage-soft); color: var(--sage-deep); font-size: 13px; font-weight: 600; }
.pill.warn { background: var(--clay-soft); color: var(--clay); }
.status {
  background: linear-gradient(180deg, #f7fbf8, var(--card));
  border: 1px solid #d5e6db;
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.status.attention { background: linear-gradient(180deg, #fbf6f1, var(--card)); border-color: #ead8cc; }
.status h2 { font-size: clamp(32px, 4vw, 48px); max-width: 18ch; }
.status p { margin-top: 10px; color: var(--slate); max-width: 52ch; }
.status form { margin-top: 20px; }
.grid-2 { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 16px; margin-top: 16px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 20px; }
.panel h3 { font-size: 28px; margin-bottom: 8px; }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.pause-form label { min-width: 160px; }
.note {
  background: var(--sage-soft);
  border-radius: 16px;
  padding: 12px 14px;
  color: var(--sage-deep);
  margin: 12px 0;
}
.contact { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
.contact-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.activity { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.activity li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.activity time { color: var(--muted); font-size: 14px; white-space: nowrap; }
.empty { color: var(--muted); margin-top: 8px; }

@media (max-width: 900px) {
  .hero, .steps, .cards, .security-grid, .grid-2, .price-grid, .split { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: block; position: relative; }
  .nav-toggle[open] .nav-links {
    display: grid;
    position: absolute;
    right: 0;
    top: 46px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 8px;
    min-width: 200px;
    box-shadow: var(--shadow);
  }
  .hero { padding-top: 28px; }
  .dash-head { flex-direction: column; align-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse { box-shadow: none; }
}