/* Plainly Commerce - brand site.
 *
 * One accent, one radius scale, one theme. The page is deliberately plain:
 * the product is the interesting part, and the widget demos are the only
 * thing on it that should draw the eye.
 *
 * The demos carry real theme tokens (--buttons-radius, --font-body-family,
 * --color-button-text and so on). The widget inherits them, which is the
 * claim the page is making, so the demos are not illustrations of it.
 */

:root {
  --paper: #fafaf9;
  --surface: #ffffff;
  --ink: #16191c;
  --muted: #5b6368;
  --line: #e2e6e4;
  --accent: #0f5c46;
  --accent-soft: #eef4f1;
  --r: 10px;
  --r-sm: 6px;
  --shell: 1120px;
  --gutter: 20px;
  /* One easing curve for every interaction on the page. */
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-weight: 600;
}

h1 {
  font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.25rem);
  letter-spacing: -0.032em;
}

h2 {
  font-size: clamp(1.55rem, 1.25rem + 1.1vw, 2rem);
}

h3 {
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 12px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-sm);
  z-index: 10;
}

.skip:focus {
  left: 12px;
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------------------------------------------------------------- header */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-decoration: none;
}

.wordmark-mark {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--accent);
}

.site-nav {
  display: flex;
  gap: 26px;
  font-size: 0.94rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

/* ------------------------------------------------------------------ hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding-block: 88px 92px;
}

.lede {
  margin-top: 18px;
  max-width: 46ch;
  font-size: 1.12rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--r);
  border: 1px solid transparent;
  font-size: 0.98rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 140ms var(--ease), background-color 140ms var(--ease), border-color 140ms
    var(--ease);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.btn:active {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background: #0b4a38;
  }
  .btn-secondary:hover {
    border-color: #c9cfcc;
  }
  .site-nav a:hover {
    color: var(--ink);
  }
}

.status {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  max-width: 46ch;
  font-size: 0.92rem;
  color: var(--muted);
}

/* ----------------------------------------------------------------- demos */

.demo {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  padding: 22px;
}

.demo-caption {
  margin-bottom: 14px;
  font-size: 0.8rem;
  color: var(--muted);
}

.demo-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--muted);
}

.demo-note.wide {
  max-width: 62ch;
}

/* Theme contexts. These set the tokens a Shopify theme would set, so the
 * widget below inherits them exactly as it does on a real store. */
.store-a {
  --buttons-radius: 999px;
  --border-radius: 8px;
  --font-body-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --color-button-text: #ffffff;
  --buttons-border-width: 1px;
  color: #16191c;
}

.store-b {
  --buttons-radius: 2px;
  --border-radius: 2px;
  --font-body-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --color-button-text: #ffffff;
  --buttons-border-width: 1px;
  color: #1b2733;
}

.store-c {
  --buttons-radius: 14px;
  --border-radius: 14px;
  --font-body-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --color-button-text: #ffffff;
  --buttons-border-width: 2px;
  color: #0f5c46;
}

/* ------------------------------------------------------------------ bands */

.band {
  border-block: 1px solid var(--line);
  background: var(--surface);
  padding-block: 84px;
}

.section-head {
  max-width: 58ch;
}

.section-head p {
  margin-top: 14px;
  color: var(--muted);
}

.theme-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 44px;
}

/* ----------------------------------------------------------------- offers */

.offers {
  padding-block: 88px;
}

.offer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding-block: 46px;
  border-top: 1px solid var(--line);
}

.offer-row:first-of-type {
  margin-top: 44px;
}

.offer-copy p {
  margin-top: 12px;
  color: var(--muted);
  max-width: 44ch;
}

.offer-demo .demo {
  padding: 18px;
}

/* ---------------------------------------------------------------- pricing */

.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 44px;
}

.plan {
  border-top: 2px solid var(--ink);
  padding-top: 20px;
}

.plan h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
}

.price {
  margin-top: 10px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.amount {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.per {
  color: var(--muted);
  font-size: 0.9rem;
}

.plan ul {
  margin-top: 16px;
  display: grid;
  gap: 9px;
  font-size: 0.93rem;
  color: var(--muted);
}

.plan li {
  padding-top: 9px;
  border-top: 1px solid var(--line);
}

.plan-foot {
  margin-top: 34px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------------------------------------------------------------- closing */

.closing {
  padding-block: 88px;
}

.closing-inner {
  max-width: 62ch;
}

.closing-inner p {
  margin-top: 18px;
  color: var(--muted);
}

.closing-note {
  font-size: 0.92rem;
}

/* ----------------------------------------------------------------- footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 30px;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-nav {
  display: flex;
  gap: 20px;
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
    padding-block: 60px 64px;
  }

  .offer-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 36px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .site-nav {
    gap: 18px;
    font-size: 0.88rem;
  }

  .band,
  .offers,
  .closing {
    padding-block: 60px;
  }

  .theme-pair {
    grid-template-columns: minmax(0, 1fr);
  }

  .plans {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
