:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --text: #11142a;
  --muted: #565c75;
  --line: #e2e5ef;
  --accent: #3554e0;
  --accent-hover: #2742c4;
  --accent-ink: #ffffff;
  --accent-soft: #e6eafd;
  --ph-bg: #fff4d6;
  --ph-line: #d9a92f;
  --ph-text: #5f4500;
  --ok: #12703f;
  --err: #b42318;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(17, 20, 42, .05), 0 12px 32px rgba(17, 20, 42, .07);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d16;
    --surface: #141827;
    --text: #e8eaf4;
    --muted: #a0a6c0;
    --line: #262c42;
    --accent: #8ea2ff;
    --accent-hover: #a9b8ff;
    --accent-ink: #0b0d16;
    --accent-soft: #1a2142;
    --ph-bg: #2a230f;
    --ph-line: #9c7a20;
    --ph-text: #f3d68c;
    --ok: #5fd39a;
    --err: #ff8f80;
    --shadow: 0 0 0 1px rgba(255, 255, 255, .02);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* Placeholder content: visibly marked until the real content is in. */
.ph {
  background: var(--ph-bg);
  color: var(--ph-text);
  border: 1px dashed var(--ph-line);
  border-radius: 6px;
  padding: 0 .3em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; }
.brand { color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; }
.brand span { color: var(--accent); }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; margin-left: 22px; }
.nav a:hover { color: var(--text); }
@media (max-width: 560px) { .nav { display: none; } }

/* Hero */
.hero { display: grid; gap: 20px; padding-top: 12px; padding-bottom: 56px; }
.potato-wrap { position: relative; width: 120px; height: 120px; isolation: isolate; }
.potato-wrap::before {
  content: "";
  position: absolute;
  inset: 8%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--accent-soft), transparent);
}
#potato { display: block; width: 100%; height: 100%; }

.status {
  display: inline-flex; align-items: center; gap: 8px; margin: 0;
  padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); font-size: .85rem; background: var(--surface);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.title {
  margin: 18px 0 14px;
  font-size: clamp(2rem, 1.3rem + 3.2vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -.025em;
  font-weight: 750;
}
.lead { margin: 0; max-width: 36rem; color: var(--muted); font-size: 1.125rem; }

@media (min-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr) 200px; column-gap: 64px; padding-top: 48px; padding-bottom: 88px; }
  .hero-main { grid-column: 1; grid-row: 1; }
  .hero .potato-wrap { grid-column: 2; grid-row: 1; width: 200px; height: 200px; margin-top: 24px; }
}

/* Signup form */
.signup {
  margin-top: 28px; max-width: 540px; padding: 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.offer { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 16px; }
.offer p { margin: 0; }
.price { color: var(--muted); font-size: .95rem; }
.amount { color: var(--text); font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; margin-right: 4px; }
.nopay { color: var(--ok); font-size: .9rem; font-weight: 600; }

.fields { display: grid; gap: 12px; }
@media (min-width: 480px) {
  .fields { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .field-email { grid-column: 1 / -1; }
}
.field label { display: block; margin-bottom: 4px; font-size: .875rem; font-weight: 600; }
.opt { color: var(--muted); font-weight: 400; }

input, select, .btn { font: inherit; height: 46px; border-radius: 10px; }
input, select {
  width: 100%; padding: 0 12px; color: var(--text); background: var(--bg); border: 1px solid var(--line);
}
input::placeholder { color: var(--muted); opacity: .7; }
input:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: transparent; }

.btn {
  padding: 0 22px; border: 0; cursor: pointer; white-space: nowrap;
  color: var(--accent-ink); background: var(--accent); font-weight: 650;
  transition: background-color .15s ease;
}
.btn:hover { background: var(--accent-hover); }
.btn:disabled { opacity: .6; cursor: progress; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-status { min-height: 1.5em; margin: 10px 0 0; font-size: .95rem; }
.form-status[data-state="ok"] { color: var(--ok); font-weight: 600; }
.form-status[data-state="error"] { color: var(--err); }
.fine { margin: 4px 0 0; color: var(--muted); font-size: .85rem; }
.signup.is-done .fields { display: none; }
.signup.is-done .form-status { margin-top: 0; }

/* Sections */
.section, .site-footer {
  /* Divider aligned with the content box, not the padded wrapper. */
  background: linear-gradient(var(--line), var(--line)) no-repeat center top / calc(100% - 40px) 1px;
}
.section { padding-top: 40px; padding-bottom: 40px; }
.section-title { margin: 0 0 18px; font-size: 1.35rem; letter-spacing: -.015em; }

.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin;
}
.gallery img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  scroll-snap-align: start; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
}
@media (min-width: 720px) {
  .gallery { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; }
}

.split { display: grid; gap: 36px; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 14px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 32px 1fr; column-gap: 12px; }
.steps li::before {
  content: counter(step); grid-row: span 2; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-size: .85rem; font-weight: 700;
  color: var(--accent); background: var(--accent-soft);
}
.steps strong { display: block; }

.specs { margin: 0; display: grid; }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.specs div:first-child { padding-top: 0; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; text-align: right; }

.faq { display: grid; gap: 10px; max-width: 760px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; }
.faq summary {
  cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 14px; color: var(--muted); }

.privacy { margin: 0; padding-left: 1.1em; color: var(--muted); max-width: 760px; display: grid; gap: 6px; }

.site-footer { padding-top: 28px; padding-bottom: 40px; color: var(--muted); font-size: .85rem; }

/* confirmed.html */
.done { padding-top: 48px; padding-bottom: 96px; display: grid; justify-items: start; gap: 8px; }
.done h1 { margin: 12px 0 0; font-size: clamp(1.8rem, 1.3rem + 2vw, 2.5rem); letter-spacing: -.02em; }
.done p { margin: 0; color: var(--muted); font-size: 1.1rem; max-width: 34rem; }
.done .btn { display: inline-flex; align-items: center; margin-top: 20px; text-decoration: none; }
