/* ShopTouch website — tokens follow the product's house style v2 (yellow / green / charcoal). */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@500;600&display=swap');

:root {
  --yellow: #ffce42;
  --yellow-dark: #e8b52c;
  --yellow-tint: #fff6de;
  --yellow-ink: #5b4408;

  --green: #239b56;
  --green-dark: #1b7a43;
  --green-darker: #14592f;
  --green-light: #47c77d;
  --green-tint: #e4f4ea;
  --green-ink: #14592f;

  --surface: #f4f6f7;
  --surface-2: #eaeef0;
  --paper: #ffffff;
  --border: #dde3e5;
  --border-strong: #b9c3c6;
  --ink: #263238;
  --ink-2: #4a5a61;
  --ink-3: #5f7076;

  --night: #1c2429;
  --night-2: #263238;
  --night-3: #3a484f;
  --night-ink: #f2f5f6;
  --night-ink-2: #a9b7bc;

  --red: #c62828;
  --warn: #a85908;
  --warn-tint: #fbeedf;

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(38,50,56,.06);
  --shadow-md: 0 2px 8px rgba(38,50,56,.08);
  --shadow-lg: 0 8px 24px rgba(38,50,56,.12);

  --wrap: 1160px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font: 400 17px/1.6 var(--font-sans);
  color: var(--ink);
  background: var(--paper);
}

img, svg { max-width: 100%; display: block; }

a { color: var(--green-dark); }
a:hover { color: var(--green-darker); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(255,206,66,.55);
  border-radius: 4px;
}

h1, h2, h3, h4 { font-weight: 500; margin: 0; letter-spacing: -.01em; line-height: 1.15; }
h1 { font-size: clamp(34px, 5vw, 56px); letter-spacing: -.02em; }
h2 { font-size: clamp(28px, 3.4vw, 40px); }
h3 { font-size: 22px; line-height: 1.3; }
h4 { font-size: 18px; line-height: 1.35; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.eyebrow {
  font: 600 13px/1.3 var(--font-sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green-dark);
}
.on-dark .eyebrow { color: var(--yellow); }

.lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--ink-2); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 20px; }
.brand img { width: 36px; height: 36px; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a {
  text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 16px;
  padding: 8px 12px; border-radius: var(--r-md);
  transition: background .14s ease, color .14s ease;
}
.nav a:hover { background: var(--surface); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--yellow); border-radius: 0; }
.nav .btn { margin-left: 8px; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex; margin-left: auto; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 1px solid var(--border-strong); border-radius: var(--r-md);
    background: var(--paper); color: var(--ink); cursor: pointer;
  }
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--border); padding: 8px 16px 16px;
    box-shadow: var(--shadow-md);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--yellow); }
  .nav .btn { margin: 8px 0 0; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 16px/1 var(--font-sans);
  padding: 14px 22px; border-radius: var(--r-md);
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background .14s ease, border-color .14s ease, color .14s ease;
}
.btn-primary { background: var(--green-dark); color: #fff; }
.btn-primary:hover { background: var(--green-darker); color: #fff; }
.btn-ghost { background: var(--paper); color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface); color: var(--ink); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: var(--yellow-dark); color: var(--ink); }
.btn-sm { padding: 10px 16px; font-size: 15px; }
.nav .btn-primary { color: #fff; }

/* ---------- sections ---------- */
section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--surface); }
.on-dark { background: var(--night); color: var(--night-ink); }
.on-dark .lead, .on-dark p { color: var(--night-ink-2); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head h2 { margin: 12px 0 16px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 104px); background: linear-gradient(180deg, var(--yellow-tint) 0%, var(--paper) 100%); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { margin: 16px 0 20px; }
.hero h1 mark { background: linear-gradient(transparent 62%, var(--yellow) 62%); color: inherit; padding: 0 2px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; padding: 0; list-style: none; color: var(--ink-2); font-size: 15px; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
@media (max-width: 920px) { .hero .wrap { grid-template-columns: 1fr; } }

.check { width: 18px; height: 18px; flex: none; color: var(--green); }

/* ---------- product mockups ---------- */
.device {
  background: var(--night); border-radius: 22px; padding: 14px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,.05);
}
.screen { background: var(--surface); border-radius: 12px; overflow: hidden; }
.screen-bar {
  display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px;
  background: var(--paper); border-bottom: 1px solid var(--border); font-size: 14px; font-weight: 500;
}
.screen-bar img { width: 24px; height: 24px; }
.screen-bar .who { white-space: nowrap; display: flex; align-items: center; gap: 8px; padding-left: 10px; border-left: 1px solid var(--border); color: var(--ink-2); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.pill {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: var(--r-pill);
  background: var(--green-tint); color: var(--green-ink);
}
.pill .dot { width: 7px; height: 7px; background: var(--green); }

.timer {
  background: var(--night-2); color: var(--night-ink); padding: 26px 20px 22px; text-align: center;
}
.timer .meta { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--night-ink-2); }
.timer .clock { font: 600 clamp(44px, 7vw, 72px)/1 var(--font-mono); font-variant-numeric: tabular-nums; margin: 14px 0; letter-spacing: -.02em; }
.timer .badge { display: inline-block; background: var(--yellow); color: var(--ink); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: var(--r-pill); }
.timer-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.timer-actions span { padding: 14px; border-radius: var(--r-md); font-weight: 600; font-size: 15px; }
.timer-actions .ghost { border: 1px solid var(--night-3); color: var(--night-ink); }
.timer-actions .stop { background: var(--red); color: #fff; }

.lines { padding: 14px; display: grid; gap: 8px; }
.line {
  display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center;
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 10px 12px; font-size: 14px;
}
.line .code { font: 500 12px var(--font-mono); color: var(--yellow-ink); background: var(--yellow-tint); padding: 3px 7px; border-radius: var(--r-sm); }
.line .amt { font: 500 13px var(--font-mono); color: var(--ink-2); }
.line.total { background: var(--green-tint); border-color: var(--green-tint); font-weight: 600; color: var(--green-ink); }
.line.total .amt { color: var(--green-ink); font-weight: 600; }

/* ---------- problem / grid cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.card h3, .card h4 { margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: 16px; }
.icon-well {
  width: 48px; height: 48px; border-radius: var(--r-md); display: grid; place-items: center;
  background: var(--yellow-tint); color: var(--ink); margin-bottom: 18px;
}
.icon-well svg { width: 24px; height: 24px; }
.icon-well.green { background: var(--green-tint); color: var(--green-ink); }
.icon-well.warn { background: var(--warn-tint); color: var(--warn); }

.on-dark .card { background: var(--night-2); border-color: var(--night-3); box-shadow: none; }
.on-dark .card p { color: var(--night-ink-2); }
.on-dark .icon-well { background: rgba(255,206,66,.14); color: var(--yellow); }

/* ---------- steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding-top: 64px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--yellow); color: var(--ink);
  font: 600 18px var(--font-mono);
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 22px; left: 56px; right: 8px; height: 2px; background: var(--border);
}
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--ink-2); font-size: 16px; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li::after { display: none; }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- split rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
/* Grid items default to min-width:auto; a wide table would otherwise push the page past the viewport. */
.split > *, .hero .wrap > *, .grid > * { min-width: 0; }
.split + .split { margin-top: 96px; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse > :first-child { order: 0; }
}
.split h2 { margin: 12px 0 16px; }

.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; color: var(--ink-2); }
.checklist li strong { color: var(--ink); font-weight: 500; }
.checklist .check { margin-top: 3px; }
.on-dark .checklist li { color: var(--night-ink-2); }
.on-dark .checklist li strong { color: var(--night-ink); }
.on-dark .check { color: var(--green-light); }

/* ---------- variants (ShopTouch / ShopKey) ---------- */
.variant { position: relative; overflow: hidden; }
.variant .tag {
  display: inline-block; font: 600 12px/1 var(--font-sans); letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 10px; border-radius: var(--r-pill); background: var(--yellow-tint); color: var(--yellow-ink); margin-bottom: 14px;
}
.variant h3 { font-size: 28px; }

/* ---------- integrations ---------- */
.logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 760px) { .logos { grid-template-columns: 1fr; } }
.logo-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px;
}
.logo-card .name { font-size: 24px; font-weight: 600; letter-spacing: -.01em; }
.logo-card p { color: var(--ink-2); font-size: 16px; }

.flow { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 40px; }
.flow span { background: var(--paper); border: 1px solid var(--border); border-radius: var(--r-md); padding: 10px 16px; font-weight: 500; font-size: 15px; }
.flow span.hl { background: var(--yellow); border-color: var(--yellow); }
.flow i { font-style: normal; color: var(--ink-3); }

/* ---------- table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--paper); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 16px; }
th, td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--surface-2); font-weight: 500; font-size: 14px; color: var(--ink-2); }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 500; }
td .muted { color: var(--ink-3); }
@media (max-width: 600px) {
  table { min-width: 440px; font-size: 14px; }
  th, td { padding: 12px 10px; }
}

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }
.plan {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 32px 28px;
}
.plan.featured { border: 2px solid var(--ink); box-shadow: var(--shadow-lg); position: relative; }
.plan .ribbon {
  position: absolute; top: -14px; left: 28px; background: var(--yellow); color: var(--ink);
  font: 600 12px/1 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; padding: 8px 12px; border-radius: var(--r-pill);
}
.plan h3 { font-size: 26px; }
.plan .for { color: var(--ink-2); font-size: 15px; margin-top: 6px; min-height: 48px; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 24px 0 4px; }
.price .amount { font: 600 44px/1 var(--font-mono); letter-spacing: -.02em; }
.price .per { color: var(--ink-3); font-size: 15px; }
.price-note { color: var(--ink-3); font-size: 14px; }
.plan .terms { list-style: none; padding: 12px 0 0; margin: 12px 0 0; border-top: 1px solid var(--border); display: grid; gap: 4px; font-size: 15px; color: var(--ink-2); }
.plan .btn { margin: 24px 0; }
.plans-note { text-align: center; margin-top: 28px; color: var(--ink-2); }

.service { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; max-width: 880px; margin: 0 auto; }
.service > div:first-child { flex: 1 1 320px; }
.service-price { display: flex; flex-direction: column; align-items: flex-end; }
.service-price .from { color: var(--ink-3); font-size: 14px; }
.service-price .amount { font: 600 36px/1.1 var(--font-mono); letter-spacing: -.02em; }
@media (max-width: 600px) { .service-price { align-items: flex-start; } }

.tag-soon {
  float: right; font: 600 12px/1 var(--font-sans); letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 10px; border-radius: var(--r-pill); background: var(--warn-tint); color: var(--warn);
}
.plan .includes { font-weight: 500; font-size: 15px; margin-bottom: 4px; }
.plan .checklist { margin-top: 12px; gap: 10px; }
.plan .checklist li { font-size: 15px; }

.toggle {
  display: inline-flex; padding: 4px; border-radius: var(--r-md); background: var(--surface-2); gap: 4px; margin-top: 24px;
}
.toggle button {
  font: 500 15px var(--font-sans); border: 0; background: transparent; color: var(--ink-2);
  padding: 10px 16px; border-radius: 8px; cursor: pointer;
}
.toggle button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--paper); border: 1px solid var(--border); border-radius: var(--r-md); padding: 4px 22px; }
.faq summary { cursor: pointer; font-weight: 500; font-size: 18px; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 500 22px/1 var(--font-mono); color: var(--ink-3); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 18px; color: var(--ink-2); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--yellow); padding: clamp(56px, 7vw, 80px) 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { max-width: 640px; }
.cta-band p { color: var(--ink); margin-top: 10px; }
.cta-band .btn-primary { background: var(--ink); }
.cta-band .btn-primary:hover { background: var(--night); }

/* ---------- forms ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 500; font-size: 15px; }
.field input, .field textarea, .field select {
  font: 400 16px var(--font-sans); color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: var(--r-md); background: var(--paper);
  width: 100%; min-width: 0;
}
.field textarea { min-height: 140px; resize: vertical; }
[hidden] { display: none !important; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-feedback { margin: 0; padding: 12px 16px; border-radius: var(--r-sm); font-size: 15px; font-weight: 500; }
.form-feedback.is-ok { background: var(--green-tint); color: var(--green-ink); }
.form-feedback.is-error { background: #fdecec; color: var(--red); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- page header ---------- */
.page-head { padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 5vw, 64px); background: linear-gradient(180deg, var(--yellow-tint), var(--paper)); }
.page-head h1 { margin: 12px 0 18px; max-width: 820px; }
.page-head .lead { max-width: 720px; }

.feature-group + .feature-group { margin-top: 72px; }
.feature-group > h2 { margin-bottom: 8px; }
.feature-group > .lead { margin-bottom: 32px; max-width: 760px; }

.stat { font: 600 40px/1 var(--font-mono); color: var(--ink); }
.stat-label { color: var(--ink-2); font-size: 15px; margin-top: 8px; }

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: var(--night-ink-2); padding: 56px 0 40px; font-size: 15px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .wrap { grid-template-columns: 1fr; } }
.site-footer .brand { color: var(--night-ink); }
.site-footer h4 { color: var(--night-ink); font-size: 15px; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--night-ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--night-3); padding-top: 24px; margin-top: 16px; font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
