/* Self-hosted Inter — one-file-per-weight, latin only. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/inter-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/inter-medium.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/inter-semibold.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/inter-bold.woff2") format("woff2");
}

:root {
  --ink: #0B1220;
  --ink-2: #1F2937;
  --muted: #6B7280;
  --line: #E5E7EB;
  --bg: #FFFFFF;
  --bg-soft: #F8FAFC;
  --bg-dark: #0B1220;
  /* Brand palette — teal-lean green, warm coral accent (shifted off Tailwind defaults) */
  --brand: #0EA580;
  --brand-ink: #046C55;
  --brand-soft: #CDEFE4;
  --accent: #E85D75;
  --accent-ink: #B03A52;
  --danger: #DC2626;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,0.06);
  --shadow: 0 4px 12px rgba(15,23,42,0.08);
  --shadow-lg: 0 20px 50px rgba(15,23,42,0.15);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Monaco, "Cascadia Mono", monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
a.link { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 2px; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 500;
}
.nav-links a:hover { color: var(--ink); }
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.logo span { white-space: nowrap; }
.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-family: var(--mono);
  font-size: 15px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .15s ease;
  line-height: 1;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover { background: #000; }
.btn-brand {
  background: var(--brand);
  color: #fff;
}
.btn-brand:hover { background: var(--brand-ink); }
.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--ink); background: var(--bg-soft); }
.btn-ghost {
  background: transparent;
  color: var(--ink-2);
}
.btn-ghost:hover { color: var(--ink); }
.btn-lg { padding: 14px 22px; font-size: 15px; }

/* Typography helpers */
h1, h2, h3, h4 { letter-spacing: -0.02em; line-height: 1.2; margin: 0; font-weight: 700; }
h1 { font-size: clamp(36px, 5vw, 60px); }
h2 { font-size: clamp(28px, 3.5vw, 42px); }
h3 { font-size: 22px; }
p { margin: 0; }
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-ink);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.muted { color: var(--muted); }

/* Hero */
.hero {
  padding: 80px 0 60px;
  background:
    radial-gradient(1200px 400px at 50% -100px, rgba(14,165,128,0.12), transparent 60%),
    linear-gradient(180deg, #fff, #f8fafc);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
}
.hero h1 { margin-bottom: 20px; }
.hero p.sub {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 560px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust {
  margin-top: 20px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}
.hero-trust .dot {
  width: 6px; height: 6px; border-radius: 999px; background: var(--brand);
}

/* Ticket mock */
.ticket-mock {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.ticket-mock .tm-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.ticket-mock .tm-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.tm-chip.wip { background: #FEF3C7; color: #92400E; }
.tm-chip.done { background: var(--brand-soft); color: var(--brand-ink); }
.tm-chip.new { background: #DBEAFE; color: #1E40AF; }
.ticket-mock .tm-body { padding: 20px; }
.tm-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.tm-row:last-child { border-bottom: 0; }
.tm-row .k { color: var(--muted); font-weight: 500; }
.tm-row .v { color: var(--ink); font-weight: 500; }
.tm-footer {
  display: flex;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

/* Sections */
section { padding: 80px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 17px; }

/* Feature grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features-grid { grid-template-columns: 1fr; } }
.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  transition: all .2s ease;
}
.feature-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  font-size: 20px;
}
.feature-icon svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* Demo / mock data chip — makes it obvious a card is illustrative */
.demo-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 7px;
  border-radius: 4px;
  background: #FEF3C7;
  color: #92400E;
  vertical-align: middle;
}
.demo-chip::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 999px;
  background: #D97706;
  display: inline-block;
}

/* Pricing monthly / annual toggle */
.price-toggle {
  display: inline-flex;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  margin: 0 auto 36px;
  gap: 4px;
}
.price-toggle button {
  border: 0;
  background: transparent;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  color: var(--muted);
  cursor: pointer;
  transition: all .15s ease;
}
.price-toggle button.active {
  background: var(--ink);
  color: #fff;
}
.price-toggle .savings {
  display: inline-block;
  font-size: 10px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.plan .price .period-note { display: block; font-size: 12px; color: var(--muted); font-weight: 500; margin-top: 4px; }

/* Password show/hide toggle */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 52px; }
.pw-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 8px;
  cursor: pointer;
  border-radius: 6px;
}
.pw-toggle:hover { color: var(--ink); background: var(--bg-soft); }

/* Welcome modal (first /app load) */
.welcome-backdrop {
  position: fixed; inset: 0;
  background: rgba(11,18,32,0.55);
  display: grid; place-items: center;
  z-index: 1000;
  padding: 20px;
}
.welcome-modal {
  background: #fff;
  border-radius: 16px;
  max-width: 720px;
  width: 100%;
  padding: 32px;
  box-shadow: var(--shadow-lg);
}
.welcome-modal h2 { margin-bottom: 10px; }
.welcome-modal p.lead { color: var(--muted); margin-bottom: 24px; }
.welcome-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 700px) { .welcome-grid { grid-template-columns: 1fr; } }
.welcome-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  text-align: left;
}
.welcome-card h3 { font-size: 15px; margin-bottom: 6px; }
.welcome-card p { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.welcome-close {
  display: block;
  margin: 20px auto 0;
  background: transparent; border: 0;
  color: var(--muted); font-size: 13px; cursor: pointer;
  font-family: var(--font);
}

/* "+ add last name" toggle-row */
.addon-link {
  background: transparent; border: 0;
  color: var(--brand-ink); font-weight: 600; font-size: 13px;
  padding: 6px 0; cursor: pointer; font-family: var(--font);
}
.addon-link:hover { text-decoration: underline; }
.feature-card h3 { margin-bottom: 8px; font-size: 17px; }
.feature-card p { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  counter-reset: step;
}
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { counter-increment: step; }
.step .num {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  font-weight: 700;
  margin-bottom: 14px;
  font-family: var(--mono);
}
.step h3 { margin-bottom: 8px; font-size: 18px; }
.step p { color: var(--muted); font-size: 15px; }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
}
@media (max-width: 800px) { .pricing-grid { grid-template-columns: 1fr; } }
.plan {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.plan.popular {
  border: 2px solid var(--ink);
  position: relative;
  transform: translateY(-8px);
}
.plan.popular::before {
  content: "Most popular";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.plan h3 { font-size: 18px; margin-bottom: 6px; }
.plan .price {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 12px 0 4px;
}
.plan .price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.plan ul {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  flex: 1;
}
.plan ul li {
  padding: 8px 0;
  font-size: 14px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.plan ul li::before {
  content: "✓";
  color: var(--brand);
  font-weight: 700;
  flex-shrink: 0;
}
.plan .btn { width: 100%; }

/* Auth forms */
.auth-shell {
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
  padding: 40px 20px;
  background: var(--bg-soft);
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px;
  box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 26px; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); margin-bottom: 28px; font-size: 15px; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}
.field input, .field select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: var(--font);
  transition: border-color .15s ease, box-shadow .15s ease;
  background: #fff;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(15,23,42,0.08);
}
.field .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-card button[type=submit] {
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  font-size: 15px;
}
.auth-foot {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
}
.alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
}
.alert-err { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.alert-ok { background: var(--brand-soft); color: var(--brand-ink); border: 1px solid #A7F3D0; }

/* CTA banner */
.cta-band {
  background: var(--ink);
  color: #fff;
  padding: 72px 0;
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: #CBD5E1; margin-bottom: 28px; font-size: 17px; }

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h4 { font-size: 13px; color: var(--ink); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { padding: 4px 0; }
.footer a:hover { color: var(--ink); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* FAQ */
.faq {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-weight: 300;
  font-size: 24px;
  color: var(--muted);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { color: var(--muted); margin-top: 12px; font-size: 15px; }

/* Trust + legal pages */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.trust-card h3 {
  font-size: 17px;
  margin-bottom: 10px;
}
.trust-card p {
  color: var(--muted);
  font-size: 14px;
}
.trust-card p + p { margin-top: 8px; }
.micro-proof {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 700px) { .micro-proof { grid-template-columns: 1fr; } }
.micro-proof .item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 14px 16px;
}
.micro-proof strong {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--ink);
}
.micro-proof span {
  color: var(--muted);
  font-size: 13px;
}
.legal-shell {
  max-width: 860px;
  margin: 0 auto;
}
.legal-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
  box-shadow: var(--shadow);
}
.legal-card h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 10px;
}
.legal-card h2 {
  font-size: 20px;
  margin: 28px 0 12px;
}
.legal-card p,
.legal-card li {
  color: var(--muted);
  font-size: 15px;
}
.legal-card ul {
  margin: 0;
  padding-left: 20px;
}
.legal-card li + li,
.legal-card p + p,
.legal-card p + ul,
.legal-card ul + p {
  margin-top: 10px;
}

/* Per-shop public SEO page (/s/:slug) */
.ps-hero {
  text-align: center;
  margin-bottom: 32px;
}
.ps-hero h1 {
  margin: 12px 0 6px;
}
.ps-sub {
  color: var(--muted, #667085);
  font-size: 1.05rem;
  margin: 0 0 18px;
}
.ps-card {
  border: 1px solid var(--border, #e4e7ec);
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 18px;
}
.ps-card h2 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}
.ps-services {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ps-services li {
  background: var(--bg-subtle, #f2f4f7);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.9rem;
}
.ps-foot {
  text-align: center;
  margin-top: 28px;
}
