:root {
  /* Beige base */
  --bg: #f4efe6;
  --paper: #fbf7f0;
  --ink: rgba(22, 20, 18, 0.92);
  --muted: rgba(22, 20, 18, 0.68);
  --faint: rgba(22, 20, 18, 0.52);
  --line: rgba(22, 20, 18, 0.12);

  /* Accents */
  --green: #34c759;     /* Apple green */
  --purple: #5b2cff;    /* royal purple */

  /* UI */
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 18px 50px rgba(24, 18, 12, 0.10);
  --shadow-soft: 0 10px 30px rgba(24, 18, 12, 0.08);

  /* Full-width wrap: roomy but not boxed-in */
  --wrap-pad: clamp(16px, 3vw, 44px);
  --wrap-max: 1680px;

  /* Typography (neutral, designed) */
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.55;
  letter-spacing: 0.1px;
  background:
    radial-gradient(900px 600px at 14% 10%, rgba(52, 199, 89, 0.10), transparent 60%),
    radial-gradient(800px 520px at 82% 18%, rgba(91, 44, 255, 0.10), transparent 62%),
    radial-gradient(1000px 700px at 50% 105%, rgba(22, 20, 18, 0.05), transparent 60%),
    var(--bg);
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; }

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  transform: translateY(-220%);
  background: var(--paper);
  color: var(--ink);
  padding: 10px 12px;
  border-radius: 12px;
  z-index: 9999;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.skip-link:focus { transform: translateY(0%); }

.wrap {
  width: 100%;
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 0 var(--wrap-pad);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 239, 230, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 18px;
}

.brand { min-width: 240px; }
.wordmark {
  font-weight: 760;
  letter-spacing: 0.2px;
  font-size: 18px;
}
.mark-dot { color: var(--green); }
.tagline { margin-top: 4px; color: var(--muted); font-size: 13px; }

.nav { display: flex; align-items: center; gap: 12px; position: relative; }
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(251, 247, 240, 0.8);
  color: var(--ink);
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
}

.nav-menu { display: flex; align-items: center; gap: 14px; }
.nav-menu a { color: var(--muted); }
.nav-menu a:hover { color: var(--ink); text-decoration: none; }

/* Buttons (designed, soft) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(22, 20, 18, 0.16);
  background: rgba(251, 247, 240, 0.85);
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}
.btn:hover { filter: brightness(1.01); text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-small { padding: 10px 12px; border-radius: 12px; font-weight: 700; box-shadow: none; }

.btn-ghost {
  background: transparent;
  box-shadow: none;
}

.btn {
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: "";
  position: absolute;
  inset: -40% -60%;
  background: radial-gradient(circle at 20% 20%, rgba(52, 199, 89, 0.18), transparent 55%),
              radial-gradient(circle at 80% 30%, rgba(91, 44, 255, 0.14), transparent 55%);
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
}
.btn:hover::after { opacity: 1; }

/* Hero */
.hero {
  padding: 56px 0 26px;
}

.hero-wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(18px, 2.4vw, 34px);
  align-items: start;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.4px;
}

.hero-title {
  margin: 0;
  font-size: clamp(42px, 4.1vw, 66px);
  line-height: 0.98;
  letter-spacing: -0.8px;
}

.hero-lede {
  margin: 14px 0 0;
  color: var(--muted);
  max-width: 64ch;
  font-size: 16px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.hero-notes {
  margin-top: 18px;
  display: grid;
  gap: 10px;
  max-width: 70ch;
}

.note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  background: rgba(251, 247, 240, 0.65);
  border: 1px solid rgba(22, 20, 18, 0.10);
  border-radius: 14px;
  padding: 10px 12px;
}

.note-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  margin-top: 7px;
  flex: 0 0 auto;
  background: rgba(22, 20, 18, 0.5);
}
.note-dot.green { background: var(--green); }
.note-dot.purple { background: var(--purple); }
.note-dot.ink { background: rgba(22, 20, 18, 0.55); }

/* Cards + grids */
.section { padding: 64px 0; }
.section-tint {
  background: rgba(251, 247, 240, 0.55);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head { margin-bottom: 20px; }
.section-head h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.4px;
}
.sub { margin: 10px 0 0; color: var(--muted); max-width: 80ch; }

.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  background: rgba(251, 247, 240, 0.72);
  border: 1px solid rgba(22, 20, 18, 0.12);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.card:hover {
  border-color: rgba(22, 20, 18, 0.18);
}

.kicker {
  color: var(--faint);
  font-size: 12px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.list { margin: 10px 0 0; padding-left: 18px; color: var(--muted); }
.list li { margin: 7px 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 14px; }
.chip {
  border: 1px solid rgba(22, 20, 18, 0.14);
  background: rgba(255, 255, 255, 0.45);
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
}
.chip.green { border-color: rgba(52, 199, 89, 0.35); }
.chip.purple { border-color: rgba(91, 44, 255, 0.35); }

/* Ribbon row */
.ribbon {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.ribbon-item {
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px dashed rgba(22, 20, 18, 0.18);
  color: var(--muted);
  background: rgba(251, 247, 240, 0.55);
}

/* Tool card + steps */
.tool-card { border-radius: var(--radius-lg); }
.tool-head { display: grid; gap: 6px; margin-bottom: 10px; }
.tool-title { margin: 0; font-size: 18px; letter-spacing: -0.2px; }
.tool-sub { margin: 0; color: var(--muted); font-size: 14px; }

.steps { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--muted); }
.steps li { display: flex; gap: 10px; align-items: flex-start; }
.step-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  background: rgba(22, 20, 18, 0.06);
  border: 1px solid rgba(22, 20, 18, 0.14);
  color: var(--ink);
}

/* Timer (more designed, less harsh) */
.timer {
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(22, 20, 18, 0.12);
  background:
    linear-gradient(135deg, rgba(52, 199, 89, 0.10), rgba(91, 44, 255, 0.06)),
    rgba(255, 255, 255, 0.38);
}

.timer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.timer-label { color: var(--muted); font-size: 12px; letter-spacing: 0.4px; text-transform: uppercase; }
.timer-value { font-size: 28px; font-weight: 850; letter-spacing: -0.4px; margin-top: 4px; }

.timer-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.progress {
  margin-top: 12px;
  height: 10px;
  border-radius: 999px;
  background: rgba(22, 20, 18, 0.08);
  border: 1px solid rgba(22, 20, 18, 0.10);
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--purple));
  transition: width 160ms linear;
}

.tool-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tool-foot {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* Callout */
.callout {
  margin-top: 18px;
  border: 1px solid rgba(22, 20, 18, 0.12);
  background: rgba(251, 247, 240, 0.72);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-soft);
}
.callout-inner { color: var(--muted); }

/* Quote */
.quote {
  margin: 12px 0 14px;
  padding: 12px 14px;
  border-left: 3px solid rgba(91, 44, 255, 0.45);
  background: rgba(255, 255, 255, 0.42);
  border-radius: 14px;
  color: var(--ink);
}

/* Field-kit QR row */
.qr-row {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.qr-url {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(22, 20, 18, 0.12);
  color: var(--muted);
  font-size: 13px;
}

.small { font-size: 13px; }
.muted { color: var(--muted); }
.fineprint { color: var(--faint); font-size: 12px; margin: 0; }

/* Forms */
.form-shell {
  margin-top: 14px;
  border: 1px solid rgba(22, 20, 18, 0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(251, 247, 240, 0.70);
  box-shadow: var(--shadow-soft);
}

.form-tabs {
  display: flex;
  border-bottom: 1px solid rgba(22, 20, 18, 0.12);
  background: rgba(255, 255, 255, 0.34);
}

.tab {
  flex: 1;
  padding: 14px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 750;
}
.tab[aria-selected="true"] {
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(52, 199, 89, 0.10), rgba(91, 44, 255, 0.06));
}

.panel { padding: 18px; }
.hidden { display: none !important; }

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

input, select, textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(22, 20, 18, 0.14);
  background: rgba(255, 255, 255, 0.50);
  color: var(--ink);
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(52, 199, 89, 0.55);
  box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.14);
}

.fieldset {
  margin-top: 12px;
  border: 1px dashed rgba(22, 20, 18, 0.18);
  border-radius: 16px;
  padding: 12px;
}
legend { color: var(--muted); padding: 0 6px; }
.check { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; }
.check input { width: 18px; height: 18px; }

.form-actions { margin-top: 14px; display: grid; gap: 10px; }
.form-status { margin-top: 12px; color: var(--muted); }
.form-status.ok { color: rgba(22, 120, 60, 0.92); }
.form-status.err { color: rgba(160, 40, 40, 0.92); }

/* Footer */
.footer {
  padding: 44px 0 54px;
  border-top: 1px solid var(--line);
  background: rgba(251, 247, 240, 0.55);
}
.footer-wrap {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1fr;
  gap: 18px;
  align-items: start;
}
.footer-mark { font-weight: 800; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--ink); text-decoration: none; }

/* Modals */
.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 18px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 20, 18, 0.36);
}
.modal-card {
  position: relative;
  width: min(820px, 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(22, 20, 18, 0.16);
  background: rgba(251, 247, 240, 0.92);
  box-shadow: var(--shadow);
  padding: 16px;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(22, 20, 18, 0.12);
}
.modal-head h2 { margin: 0; font-size: 18px; letter-spacing: -0.2px; }

.icon-btn {
  border: 1px solid rgba(22, 20, 18, 0.16);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(22, 20, 18, 0.12);
  margin-top: 14px;
}

.poster {
  padding: 16px;
  margin-top: 14px;
  border-radius: var(--radius);
  border: 1px dashed rgba(22, 20, 18, 0.18);
  background: rgba(255, 255, 255, 0.50);
}
.poster-top { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.poster-mark { font-weight: 900; letter-spacing: 0.2px; }
.poster-kicker { font-size: 12px; text-transform: uppercase; letter-spacing: 0.7px; }
.poster-title { margin: 14px 0 0; font-size: 34px; letter-spacing: 1px; }
.poster-sub { margin: 6px 0 0; color: var(--muted); }
.poster-steps { margin: 12px 0 0; color: var(--ink); }
.poster-steps li { margin: 8px 0; }
.poster-foot { margin: 10px 0 0; color: var(--muted); font-size: 13px; }

.codebox {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(22, 20, 18, 0.14);
  background: rgba(255, 255, 255, 0.50);
  color: rgba(22, 20, 18, 0.86);
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
}

.hidden { display: none !important; }

/* Responsive */
@media (max-width: 980px) {
  .hero-wrap { grid-template-columns: 1fr; }
  .footer-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .grid.two, .grid.three { grid-template-columns: 1fr; }

  .nav-toggle { display: inline-flex; }
  .nav-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 52px;
    width: min(360px, calc(100vw - 30px));
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(22, 20, 18, 0.14);
    background: rgba(251, 247, 240, 0.95);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a {
    padding: 10px 10px;
    border-radius: 12px;
  }
  .nav-menu a:hover { background: rgba(22, 20, 18, 0.04); text-decoration: none; }

  .timer-top { flex-direction: column; align-items: stretch; }
  .timer-buttons { justify-content: flex-start; }
}
