/**
 * The public face of the platform: the home page and the pricing page.
 *
 * Separate from theme.css, which every shop's own screens use. These two pages
 * are the only ones a stranger sees, they always wear the house colours rather
 * than a shop's chosen theme, and their job is to read well rather than to be
 * worked in all day.
 */

body { padding: 26px 20px 90px; line-height: 1.55; }
.wrap { max-width: 1040px; margin: 0 auto; }

section { margin: 0 0 66px; }
h1 { font-size: 40px; line-height: 1.08; margin: 0 0 14px; letter-spacing: -.02em; font-weight: 600; }
h2 { font-size: 25px; margin: 0 0 8px; letter-spacing: -.015em; }
h3 { font-size: 16.5px; margin: 0 0 5px; font-weight: 620; letter-spacing: -.01em; }
p { margin: 0 0 14px; color: var(--ink-dim); }

.lede { font-size: 17.5px; line-height: 1.6; max-width: 58ch; }
.lede strong { color: var(--ink); font-weight: 600; }
.tiny { font-size: 12.5px; color: var(--ink-faint); margin: 10px 0 0; }
.eyebrow {
  font-family: var(--font-body); font-size: 11.5px; font-weight: 650; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 10px;
}
.section-head { margin-bottom: 24px; max-width: 66ch; }
.section-head p { margin: 0; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.card .ico { width: 26px; height: 26px; stroke: var(--accent); fill: none; stroke-width: 1.5; margin-bottom: 9px; }
.card.stat b { display: block; font-size: 27px; font-weight: 650; letter-spacing: -.02em; }
.card.stat span { font-size: 13.5px; color: var(--ink-dim); }

.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

/* The header lives in site-nav.js, styles and all, because it also has to sit
   on pages that do not load this file. */

/* ----------------------------------------------------------------- hero */

.hero { margin-bottom: 58px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }

.cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.cta a {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-size: 14px; font-weight: 600; padding: 11px 18px; border-radius: 11px;
  transition: transform .14s, filter .14s;
}
.cta a.go { background: var(--accent); color: var(--on-accent); }
.cta a.quiet { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.cta a:hover { transform: translateY(-1px); filter: brightness(1.07); }

.scene-head {
  display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 650;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint);
  padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line);
}
.chair {
  width: 8px; height: 8px; border-radius: 50%; background: var(--good);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--good) 50%, transparent); }
  70% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--good) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--good) 0%, transparent); }
}

.ring { display: grid; gap: 9px; }
/* Animated in from hidden rather than out of it, so a row that never animates
   is still a row rather than a blank card. */
.ring-row {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); animation: rise .55s ease backwards;
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.ring-row svg { width: 15px; height: 15px; stroke: var(--accent); fill: none; stroke-width: 1.7; }
.ring-row b { font-size: 13.5px; font-weight: 600; }
.ring-row span { display: block; font-size: 12.5px; color: var(--ink-faint); margin-top: 1px; }
.ring-row .out {
  font-style: normal; font-size: 11.5px; font-weight: 650; padding: 4px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--good) 16%, transparent);
  color: color-mix(in srgb, var(--good) 62%, var(--ink)); white-space: nowrap;
}

.rule { display: flex; align-items: center; gap: 16px; margin: 0 0 66px; }
.rule::before, .rule::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
.rule svg { width: 22px; height: 22px; stroke: var(--ink-faint); fill: none; stroke-width: 1.4; }

.close { text-align: center; padding: 44px 24px; }
.close h2 { font-size: 30px; }
.close .cta { justify-content: center; }
.close p { max-width: 52ch; margin-left: auto; margin-right: auto; }

/* Only hidden once the script that reveals it is known to be running, so a
   page without JavaScript is a plain page rather than an empty one. */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* -------------------------------------------------------------- pricing */

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.tier { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 24px; position: relative; }
.tier.pick { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.tier .flag {
  position: absolute; top: -11px; left: 24px; font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; padding: 4px 11px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
}
.tier h3 { font-family: var(--font-display); font-size: 20px; margin: 0 0 2px; }
.tier .who { font-size: 13px; color: var(--ink-faint); margin: 0 0 16px; }
.tier .price { display: flex; align-items: baseline; gap: 5px; margin-bottom: 4px; }
.tier .price b { font-size: 38px; font-weight: 650; letter-spacing: -.03em; }
.tier .price span { font-size: 14px; color: var(--ink-faint); }
.tier .trial { font-size: 13px; color: color-mix(in srgb, var(--good) 62%, var(--ink)); font-weight: 600; margin: 0 0 18px; }
.tier ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.tier li { display: grid; grid-template-columns: 17px 1fr; gap: 9px; font-size: 13.5px; color: var(--ink-dim); }
.tier li svg { width: 14px; height: 14px; stroke: var(--good); fill: none; stroke-width: 2.2; margin-top: 3px; }
.tier li b { color: var(--ink); font-weight: 600; }

.terms { margin-top: 18px; font-size: 13px; color: var(--ink-faint); max-width: 74ch; }

.contact { max-width: 620px; margin: 0 auto; }
.contact label { display: block; font-size: 11.5px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 5px; }
.contact input, .contact textarea, .contact select {
  width: 100%; font: inherit; font-size: 14px; color: var(--ink); background: var(--field);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
.contact textarea { resize: vertical; min-height: 92px; }
.contact .field { margin-bottom: 13px; }
.contact .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.contact button {
  width: 100%; font: inherit; font-size: 14.5px; font-weight: 650; cursor: pointer;
  border: 0; border-radius: 11px; padding: 13px; background: var(--accent); color: var(--on-accent);
}
.contact button:disabled { opacity: .5; cursor: default; }
.said { margin-top: 14px; padding: 11px 14px; border-radius: 10px; font-size: 13.5px; display: none; }
.said.on { display: block; }
.said.good { background: color-mix(in srgb, var(--good) 13%, transparent); color: color-mix(in srgb, var(--good) 65%, var(--ink)); }
.said.bad { background: color-mix(in srgb, var(--bad) 13%, transparent); color: color-mix(in srgb, var(--bad) 60%, var(--ink)); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .three, .tiers { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  body { padding: 20px 14px 64px; }
  h1 { font-size: 30px; }
  .three, .tiers, .contact .pair { grid-template-columns: 1fr; }
}
