/* PriceDrift — quiet observation post.
   Editorial / drift-watch aesthetic.
   No build step, no framework. Vanilla CSS, one file. */

:root {
  /* Off-white paper, not pure white. */
  --paper: #f6f3ec;
  --paper-2: #efeae0;
  --card: #fbf8f1;

  /* Warm near-black ink. */
  --ink: #1a1714;
  --ink-soft: #423d38;
  --muted: #7a746c;
  --faint: #a8a39a;

  /* Hairlines. The only line in the design system. */
  --line: #e2dccf;
  --line-strong: #d2cab9;

  /* One accent. Deep forest green — a nod to Shopify without borrowing its
     exact brand hue (that would read as official affiliation). Used only
     at points of action. */
  --accent: #1b5e35;
  --accent-ink: #154a2a;
  --accent-soft: #e6efe6;

  /* Single muted semantic ink for "watching" dots — never color-coded prices. */
  --watch: #4a5d3f;

  /* Type stack */
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Easing. Custom, not the default ease-in-out. */
  --ease-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --radius-sm: 4px;
  --radius: 6px;
}

/* ---------- reset ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}

/* Subtle paper warmth: a 1px hairline that fades top-to-bottom.
   Replaces the AI-default grid background. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(180deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0) 60%,
    rgba(26, 23, 20, 0.02) 100%);
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 22px;
}
.wrap.narrow { max-width: 720px; }
.wrap.tight { max-width: 880px; }

/* ---------- type ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.04;
  margin: 0;
  color: var(--ink);
}

h1 {
  font-size: clamp(42px, 6vw, 72px);
  letter-spacing: -0.035em;
}
h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.08;
}
h3 {
  font-size: 19px;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
h4 {
  font-size: 16px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

p { margin: 0 0 14px; }

a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.15s var(--ease-quart);
}
a:hover { color: var(--accent-ink); text-decoration: underline; }
.muted-link { color: var(--muted); }
.muted-link:hover { color: var(--ink); text-decoration: underline; }

/* Italic accent inside the headline — small, restrained, the only flourish. */
em.drift {
  font-style: italic;
  color: var(--accent);
  font-family: var(--serif);
}

/* Section sign: small mono caps with a number. Replaces the orange eyebrow. */
.section-sign {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.section-sign .num {
  color: var(--accent);
  font-weight: 500;
}
.section-sign .rule {
  flex: 1;
  height: 1px;
  background: var(--line);
  margin-left: 6px;
  align-self: center;
}

/* Variant: centered sign (for sections like pricing). */
.section-sign.center {
  justify-content: center;
}
.section-sign.center .rule { display: none; }

/* Lede paragraph */
.lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 56ch;
}

/* Small / mono text */
.fine {
  font-size: 13px;
  color: var(--muted);
}
.mono-text {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.92em;
  letter-spacing: -0.005em;
}

/* ---------- header ---------- */
.site-head {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  padding: 22px 0 26px;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
  flex: 0 0 auto;
}
.brand-mark {
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 5px;
}

.site-head nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 450;
  flex: 1 1 auto;
  min-width: 0;
}
.site-head nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s var(--ease-quart);
}
.site-head nav a:hover {
  color: var(--ink);
  text-decoration: none;
}

.site-head .head-cta {
  flex: 0 0 auto;
}
.site-head .head-cta .btn { padding: 8px 14px; font-size: 13px; }

/* ---------- buttons + fields ---------- */
.btn {
  appearance: none;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  padding: 12px 22px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition:
    background 0.18s var(--ease-quart),
    border-color 0.18s var(--ease-quart),
    color 0.18s var(--ease-quart),
    transform 0.08s var(--ease-quart);
}
.btn:hover {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
  color: var(--paper);
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.btn[disabled], .btn.is-disabled {
  background: var(--line-strong);
  border-color: var(--line-strong);
  color: var(--paper);
  cursor: not-allowed;
}

/* Outline button variant. Two styles total, never three. */
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  background: var(--paper-2);
  color: var(--ink);
  border-color: var(--ink);
  text-decoration: none;
}

/* Accent variant for the one true primary CTA. */
.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-accent:hover {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
}

.btn-sm { padding: 8px 14px; font-size: 13px; }

/* Inputs — underline-only, no box. */
input[type="text"], input[type="url"], input[type="email"] {
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 11px 2px;
  width: 100%;
  min-width: 0;
  transition: border-color 0.18s var(--ease-quart);
}
input::placeholder { color: var(--faint); }
input:focus-visible {
  outline: none;
  border-bottom-color: var(--accent);
}

/* Inline text-style input on a paper background. */
input.bare {
  background: transparent;
  border-bottom: 1px solid var(--line-strong);
}
input.bare:focus { border-bottom-color: var(--accent); }

/* Bordered input (used in dashboard forms). */
input.bordered {
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
input.bordered:focus {
  border-color: var(--accent);
  outline: none;
}

/* ---------- hero ---------- */
.hero {
  padding: 64px 0 56px;
  text-align: center;
}
.hero h1 {
  max-width: 18ch;
  margin: 0 auto;
}
.hero .lede {
  margin: 22px auto 0;
  max-width: 52ch;
  text-align: center;
}

.hero-form {
  display: flex;
  gap: 12px;
  margin: 36px auto 16px;
  max-width: 520px;
  align-items: stretch;
}
.hero-form input { flex: 1; }
.hero-form .btn { white-space: nowrap; }

.hero-meta {
  margin: 0 auto;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.hero-meta .try-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero-meta .try-link:hover { color: var(--accent-ink); }
.hero-meta .sep { color: var(--faint); margin: 0 8px; }

/* A single hairline + small mono facts strip — replaces the green-dot trust row. */
.hero-strip {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
  flex-wrap: wrap;
}
.hero-strip span { white-space: nowrap; }
.hero-strip .live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.hero-strip .live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--watch);
}

/* ---------- sections ---------- */
section {
  padding: 96px 0;
  position: relative;
  z-index: 1;
}
section.tight { padding: 72px 0; }

.section-head {
  margin-bottom: 36px;
}
.section-head.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.section-head h2 {
  max-width: 22ch;
  margin: 0;
}
.section-head.center h2 {
  margin-left: auto;
  margin-right: auto;
}
.section-head .lede {
  margin-top: 14px;
}

/* ---------- steps (01/02/03) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.step {
  padding: 26px 22px 28px 0;
  border-right: 1px solid var(--line);
}
.step:last-child { border-right: 0; padding-right: 0; }
.step + .step { padding-left: 22px; }
.step .step-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.step h3 {
  font-family: var(--serif);
  font-size: 22px;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.step p {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

/* ---------- alert kinds: editorial field-guide list ---------- */
.kinds {
  border-top: 1px solid var(--line);
}
.kind {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.kind .kind-label {
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: -0.005em;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.kind .kind-label .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  font-weight: 400;
}
.kind .kind-example {
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.kind .kind-example .arrow {
  color: var(--faint);
  margin: 0 6px;
}

/* ---------- compare table ---------- */
.compare {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.compare th, .compare td {
  text-align: left;
  padding: 16px 20px 16px 0;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.compare tbody tr:last-child td { border-bottom: 0; }
.compare th {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 18px;
  padding-bottom: 18px;
}
.compare tbody td {
  color: var(--ink-soft);
  line-height: 1.5;
}
.compare tbody td:first-child {
  font-weight: 500;
  color: var(--ink);
  width: 28%;
}
.compare td.us {
  font-weight: 500;
  color: var(--ink);
}
.compare th.us {
  color: var(--ink);
}

/* ---------- pricing card ---------- */
.pricing-card {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 8px 8px;
}
.pricing-card .price-amount {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 8px;
  margin: 18px 0 12px;
}
.pricing-card .price-amount .num {
  font-family: var(--serif);
  font-size: 88px;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.pricing-card .price-amount .per {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--muted);
}
.pricing-card .price-note {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 30px;
}
.pricing-card .price-note .strike {
  color: var(--faint);
  text-decoration: line-through;
}
.pricing-card ul {
  list-style: none;
  margin: 0 0 28px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}
.pricing-card li {
  font-size: 14px;
  color: var(--ink-soft);
  padding-left: 18px;
  position: relative;
  line-height: 1.45;
  padding-top: 4px;
  padding-bottom: 4px;
}
.pricing-card li::before {
  content: "·";
  position: absolute;
  left: 2px;
  top: 1px;
  color: var(--accent);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.4;
}
.pricing-card .price-cta {
  margin-top: 24px;
}
.pricing-card .price-fine {
  margin-top: 14px;
  font-size: 12px;
  color: var(--faint);
}

/* ---------- faq ---------- */
.faq {
  border-top: 1px solid var(--line);
}
details.faq-item {
  border-bottom: 1px solid var(--line);
}
details.faq-item summary {
  cursor: pointer;
  padding: 20px 0;
  font-weight: 500;
  font-size: 16.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+";
  color: var(--muted);
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.18s var(--ease-quart);
}
details.faq-item[open] summary::after { content: "–"; }
details.faq-item p {
  padding: 0 0 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 64ch;
}

/* ---------- snapshot zone (rendered by JS) ---------- */
#snapshot-zone { margin: 48px auto 0; max-width: 880px; }
#snapshot-zone:empty { display: none; }

.snap-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.snap-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 24px;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.snap-head h2 { font-size: 32px; letter-spacing: -0.025em; }
.snap-head .snap-domain {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}
.snap-head .snap-when {
  font-size: 12px;
  color: var(--faint);
  font-family: var(--mono);
}

.snap-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.snap-tile {
  padding: 16px 18px;
  border-right: 1px solid var(--line);
}
.snap-tile:last-child { border-right: 0; }
.snap-tile .k {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 8px;
}
.snap-tile .v {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.snap-tile .v small {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 400;
  letter-spacing: 0;
}

.snap-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-top: 28px;
}
.snap-cols + .snap-cols { margin-top: 24px; }
.snap-list h3 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.snap-rows { list-style: none; margin: 0; padding: 0; }
.snap-rows li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.snap-rows li:last-child { border-bottom: 0; }
.snap-rows .name {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.snap-rows .name a {
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.snap-rows .name a:hover { text-decoration: underline; color: var(--ink); }
.snap-rows .name .sub {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  letter-spacing: 0.02em;
}
.snap-rows .val {
  font-family: var(--mono);
  font-size: 13px;
  white-space: nowrap;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  flex: 0 0 auto;
}
.snap-rows .val .strike {
  color: var(--faint);
  text-decoration: line-through;
  margin-right: 4px;
}
.snap-rows .val .delta {
  color: var(--ink-soft);
  margin-left: 6px;
}

.snap-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.snap-tag {
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  color: var(--ink-soft);
  background: var(--paper);
}
.snap-tag b { color: var(--ink); font-weight: 500; }

.snap-note {
  font-size: 13px;
  color: var(--muted);
  background: var(--paper-2);
  border-left: 2px solid var(--line-strong);
  padding: 10px 14px;
  margin-top: 18px;
  font-style: italic;
}

/* Convert / upsell panel after the snapshot */
.snap-upsell {
  margin-top: 18px;
  padding: 24px 28px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--paper-2);
}
.snap-upsell .copy {
  flex: 1;
  min-width: 240px;
}
.snap-upsell .copy h3 {
  font-size: 19px;
  margin: 0 0 6px;
}
.snap-upsell .copy p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
.snap-upsell .copy b { color: var(--ink); font-weight: 500; }
.snap-upsell .actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Loading state */
.loading {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 15px;
  padding: 8px 0;
}
.spinner {
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--line-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
.bar {
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 12px;
}
.bar i {
  display: block;
  height: 100%;
  background: var(--accent);
  width: 18%;
  animation: slide 1.6s var(--ease-quart) infinite;
}
@keyframes slide {
  0% { margin-left: -18%; }
  100% { margin-left: 100%; }
}

.error-panel {
  border: 1px solid var(--line);
  background: var(--paper-2);
  border-radius: var(--radius);
  padding: 22px 26px;
}
.error-panel h3 {
  font-family: var(--serif);
  font-size: 20px;
  margin: 0 0 6px;
}

/* ---------- footer ---------- */
.site-foot {
  border-top: 1px solid var(--line);
  padding: 32px 0 56px;
  margin-top: 32px;
  font-size: 13px;
  color: var(--muted);
  position: relative;
  z-index: 1;
}
.site-foot .row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  align-items: center;
}
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--ink); text-decoration: underline; }
.site-foot .links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

/* ============================================================
   DASHBOARD
   ============================================================ */
.dash-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: baseline;
  justify-content: space-between;
  padding: 24px 0 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}
.dash-head .who {
  font-size: 14px;
  color: var(--muted);
}
.dash-head .who b { color: var(--ink); font-weight: 500; }
.dash-head .last-sync {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.status-text {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--watch);
}
.status-text.past_due, .status-text.pending { color: #8a5a00; }
.status-text.cancelled, .status-text.blocked, .status-text.error { color: var(--accent); }

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.store-card {
  background: var(--card);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.store-card .top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.store-card h3 {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: -0.02em;
}
.store-card .domain {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  word-break: break-all;
}
.store-card .meta {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-family: var(--mono);
}
.store-card .acts {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.add-form {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
  padding: 22px 0 0;
}
.add-form .field { flex: 1 1 200px; }
.add-form input { width: 100%; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0 8px;
}
.chip {
  font: inherit;
  font-size: 12px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  border-radius: var(--radius);
  padding: 4px 12px;
  cursor: pointer;
  font-family: var(--mono);
  letter-spacing: 0.02em;
  transition: all 0.15s var(--ease-quart);
}
.chip:hover { color: var(--ink); border-color: var(--ink); }
.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.day {
  margin-top: 36px;
}
.day-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.day-head h3 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.day-head .day-meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
}

.feed {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.feed-row {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 18px;
  align-items: baseline;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.feed-row:first-child { border-top: 0; }
.feed-row .when {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.feed-row .title a {
  color: var(--ink);
  text-decoration: none;
}
.feed-row .title a:hover { text-decoration: underline; }
.feed-row .title .sub {
  display: block;
  font-size: 12px;
  color: var(--faint);
  margin-top: 2px;
  font-family: var(--mono);
}
.feed-row .vals {
  font-family: var(--mono);
  font-size: 13px;
  white-space: nowrap;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
}
.feed-row .vals .strike {
  color: var(--faint);
  text-decoration: line-through;
}

.empty {
  text-align: center;
  padding: 56px 24px;
  color: var(--muted);
}
.empty h3 {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
  margin: 0 0 8px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  z-index: 50;
  max-width: calc(100vw - 32px);
}

/* ============================================================
   LEGAL / DOC PAGES
   ============================================================ */
.doc { padding: 24px 0 96px; }
.doc h2 {
  font-size: 24px;
  letter-spacing: -0.02em;
  margin: 40px 0 12px;
}
.doc h2:first-of-type { margin-top: 24px; }
.doc p, .doc li {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}
.doc ul { padding-left: 22px; }
.doc address {
  font-style: normal;
  color: var(--ink-soft);
}
.fill {
  background: #fff3cd;
  border-bottom: 2px solid #8a5a00;
  padding: 0 4px;
  color: #8a5a00;
  font-weight: 600;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 880px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px 0; }
  .step:last-child { border-bottom: 0; }
  .step + .step { padding-left: 0; padding-top: 22px; }

  .snap-cols { grid-template-columns: 1fr; gap: 24px; }
  section { padding: 72px 0; }
  section.tight { padding: 56px 0; }

  .compare th, .compare td { padding: 14px 16px 14px 0; }
  .compare td.us::before, .compare th.us::before { margin-right: 6px; }

  .hero-strip { gap: 16px 24px; }

  .kind { grid-template-columns: 1fr; gap: 6px; }

  .feed-row { grid-template-columns: 1fr; gap: 4px; }
  .feed-row .vals { text-align: left; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .hero-form { flex-direction: column; gap: 16px; }
  .hero-form .btn { width: 100%; }
  .hero { padding: 40px 0 32px; }

  .site-head {
    flex-wrap: wrap;
    gap: 12px;
  }
  .site-head nav {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
    gap: 18px;
    margin-top: 4px;
  }
  .site-head nav a.hide-sm { display: none; }
}