/* Vidmerce website. Colours are the Figma tokens in shared/design-tokens.json. Light theme only. */

:root {
  color-scheme: light;
  --ink: #0F1724;
  --muted: #5D6878;
  --line: #E3E7EC;
  --bg: #F5F6F8;
  --surface: #FFFFFF;
  --accent: #2B57E0;
  --accent-soft: #E6ECFD;
  --accent-line: #C9D6FA;
  --money: #128A57;
  --money-soft: #E1F4EA;
  /* moneyInk / warnInk: the same hues dark enough (≥ 4.5:1 on white and on their soft fills) for small text */
  --money-ink: #0E7446;
  --warn: #B26A00;
  --warn-soft: #FCEFD9;
  --warn-line: #EFD3A6;
  --warn-ink: #965A00;
  --night: #0B1220;
  --night-muted: #B7C1D3;
  --track: #D5DAE1;
  --seg: #E9ECF1;
  --canvas: #E8EBF0;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --gutter: 20px;
  --content: 1120px;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow-card: 0 1px 2px rgba(15, 23, 36, 0.04), 0 8px 24px rgba(15, 23, 36, 0.06);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, p, ul, ol, figure, fieldset {
  margin: 0;
}
ul, ol {
  padding: 0;
}
img, svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button, input, select {
  font: inherit;
  color: inherit;
}

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

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-weight: 600;
}
.skip-link:focus {
  top: 12px;
}
.main {
  flex: 1 0 auto;
  outline: none;
}

.container {
  width: 100%;
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.narrow {
  max-width: calc(760px + 2 * var(--gutter));
}
@media (min-width: 900px) {
  :root {
    --gutter: 28px;
  }
}

.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
  line-height: 1.5;
}
.icon {
  width: 20px;
  height: 20px;
  flex: none;
}

/* ---------- type ---------- */
.display {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 700;
  text-wrap: balance;
}
.title {
  font-size: clamp(30px, 4.2vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-wrap: balance;
}
.lead {
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
}
.text-link .icon {
  width: 16px;
  height: 16px;
}
.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- buttons, cards ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.05s ease;
}
.btn:hover {
  filter: brightness(0.93);
}
.btn:active {
  transform: translateY(1px);
}
.btn[disabled] {
  opacity: 0.65;
  cursor: progress;
}
/* Sending / redirecting: a small spinner before the label (public/js sets aria-busy). Reduced motion = a still ring. */
.btn[aria-busy='true'] {
  opacity: 0.85;
}
.btn[aria-busy='true']::before {
  content: '';
  flex: none;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
}
@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  filter: none;
  background: var(--bg);
}
.btn-sm {
  min-height: 36px;
  padding: 0 14px;
  white-space: nowrap;
  border-radius: 10px;
  font-size: 14px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.section-band .card {
  background: var(--bg);
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 246, 248, 0.88);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
}
.brand-word {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.logo-mark {
  flex: none;
}
.nav-links {
  display: flex;
  gap: 2px;
  margin-left: 20px;
}
.nav-links a {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: var(--seg);
}
.nav-end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  gap: 2px;
  border-radius: 999px;
  background: var(--seg);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.lang-switch > * {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--muted);
}
.lang-switch a:hover {
  color: var(--ink);
}
.lang-switch .lang-current {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(15, 23, 36, 0.12);
}
@media (max-width: 719px) {
  .nav {
    gap: 4px;
  }
  .nav-links {
    margin-left: auto;
  }
  .nav-links a {
    padding: 8px 8px;
    font-size: 14px;
  }
  .nav-end {
    margin-left: 4px;
  }
  .nav-cta {
    display: none;
  }
  .brand-word {
    font-size: 19px;
  }
}

@media (max-width: 379px) {
  .nav {
    flex-wrap: wrap;
    padding-block: 8px;
    row-gap: 4px;
  }
  .nav-end {
    margin-left: auto;
  }
  .nav-links {
    order: 3;
    width: 100%;
    margin-left: -8px;
  }
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 36px 0 44px;
  color: var(--muted);
  font-size: 14px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px 32px;
}
.footer-brand {
  display: grid;
  gap: 10px;
}
.footer-meta {
  margin: 0;
  line-height: 1.5;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: flex-start;
}
.footer-links a,
.footer-meta a {
  color: var(--muted);
}
.footer-links a:hover,
.footer-meta a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-footer-min {
  text-align: center;
  background: transparent;
  border-top: 0;
}

/* ---------- forms ---------- */
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
input[type="email"],
select {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid var(--track);
  border-radius: var(--radius-md);
  background: var(--surface);
  font-size: 16px;
  line-height: 1.2;
}
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235D6878' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
input[type="email"]::placeholder,
.brand-form input::placeholder,
.brand-form textarea::placeholder {
  color: #6A7484; /* ≥ 4.5:1 on white (was #8C97AB, ~3:1) */
  opacity: 1;
}
input[type="email"]:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.45;
  cursor: pointer;
}
.check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--accent);
}
.form-status {
  min-height: 0;
  font-size: 14px;
  line-height: 1.45;
}
.form-status:empty {
  display: none;
}
.form-status.is-error {
  color: #B4231B;
  font-weight: 500;
}
.form-status.is-success {
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
}
.form-legal {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.form-legal a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.waitlist {
  display: grid;
  gap: 14px;
  max-width: 520px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}
.waitlist-fields {
  display: grid;
  gap: 12px;
}
@media (min-width: 480px) {
  .waitlist-fields {
    grid-template-columns: minmax(0, 1fr) 160px;
  }
}
.waitlist-submit {
  width: 100%;
}
.waitlist.is-done .waitlist-fields,
.waitlist.is-done .check,
.waitlist.is-done .waitlist-submit,
.waitlist.is-done .form-legal {
  display: none;
}

.appstore {
  display: grid;
  gap: 10px;
  justify-items: start;
}
.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 22px 0 18px;
  border-radius: 12px;
  background: #000;
  color: #fff;
  border: 1px solid #3a3f4a;
}
.appstore-badge .apple-glyph {
  width: 24px;
  height: 27px;
}
.appstore-text {
  display: grid;
  line-height: 1.1;
}
.appstore-text small {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.85;
}
.appstore-text b {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.appstore-note {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- hero ---------- */
.hero {
  padding: 40px 0 64px;
}
.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
.hero-copy {
  display: grid;
  gap: 20px;
  justify-items: start;
}
.hero-copy .waitlist {
  width: 100%;
}
.hero-fine {
  font-size: 13px;
  color: var(--muted);
  max-width: 520px;
}
.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  padding-block: 8px;
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 4% 0;
  background: radial-gradient(closest-side, var(--accent-soft), rgba(230, 236, 253, 0));
  z-index: 0;
}
.hero-art > * {
  position: relative;
  z-index: 1;
}
@media (min-width: 960px) {
  .hero {
    padding: 72px 0 96px;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: 72px;
  }
}

/* ---------- phone mockup (replica of the app's Today screen) ---------- */
.phone-figure {
  display: grid;
  justify-items: center;
}
.phone {
  position: relative;
  width: 300px;
  height: 604px;
  padding: 9px;
  border-radius: 48px;
  background: var(--night);
  box-shadow: 0 40px 70px -28px rgba(11, 18, 32, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.phone-island {
  position: absolute;
  top: 19px;
  left: 50%;
  width: 86px;
  height: 24px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
  z-index: 2;
}
.phone-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 40px;
  background: var(--bg);
  overflow: hidden;
  font-size: 11px;
  line-height: 1.3;
}
.ph-status {
  flex: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 46px;
  padding: 8px 24px 0 28px;
  font-size: 12px;
  font-weight: 600;
}
.ph-battery {
  position: relative;
  width: 22px;
  height: 11px;
  border: 1px solid var(--ink);
  border-radius: 3.5px;
}
.ph-battery::after {
  content: "";
  position: absolute;
  inset: 1.5px 5px 1.5px 1.5px;
  border-radius: 1.5px;
  background: var(--ink);
}
.ph-quota {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin: 2px 12px 0;
  height: 34px;
  padding: 0 8px 0 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
}
.ph-quota b {
  color: var(--ink);
  font-weight: 600;
}
.ph-bell {
  position: relative;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--ink);
}
.ph-bell .icon {
  width: 16px;
  height: 16px;
}
.ph-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px 12px 0;
  overflow: hidden;
}
.ph-title {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.ph-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ph-cap {
  display: block;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.ph-cap-gap {
  margin-top: 2px;
}
.ph-link {
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
}
.ph-radar {
  display: flex;
  gap: 8px;
  margin-right: -12px;
  overflow: hidden;
}
.ph-card {
  flex: none;
  width: 166px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 9.5px;
  color: var(--muted);
}
.ph-card-img {
  position: relative;
  display: grid;
  place-items: center;
  height: 64px;
  margin-bottom: 4px;
  border-radius: 10px;
}
.ph-card-img .icon {
  width: 26px;
  height: 26px;
}
.ph-trend {
  position: absolute;
  top: 5px;
  left: 5px;
  max-width: calc(100% - 10px);
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ph-card-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-height: 2.5em;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.25;
}
.ph-small {
  font-size: 8.5px;
}
.ph-ink {
  color: var(--ink);
}
.ph-money {
  color: var(--money);
  font-weight: 700;
  font-size: 10.5px;
}
.ph-btns {
  display: flex;
  gap: 5px;
  margin-top: 5px;
}
.ph-btn {
  flex: 1;
  display: grid;
  place-items: center;
  height: 24px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}
.ph-btn-ghost {
  flex: none;
  width: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
}
.ph-btn-ghost .icon {
  width: 12px;
  height: 12px;
}
.ph-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.ph-kpis > div {
  display: grid;
  gap: 1px;
  padding: 6px 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.ph-kpis b {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.ph-kpis .ph-dash {
  color: var(--track);
  font-weight: 600;
}
/* empty state: the radar card as grey blocks */
.ph-card-empty {
  width: calc(100% - 12px);
}
.ph-card-empty .ph-card-title {
  text-align: center;
  align-self: center;
  color: var(--muted);
  font-size: 10.5px;
  min-height: 2.5em;
}
.ph-bar {
  display: block;
  height: 7px;
  margin-top: 4px;
  border-radius: 4px;
  background: var(--seg);
}
.ph-bar-s {
  width: 62%;
}
.ph-bar-m {
  width: 80%;
}
.ph-btn-skel {
  background: var(--seg);
}
.ph-approve {
  display: grid;
  gap: 6px;
  padding: 8px 9px;
  background: var(--warn-soft);
  border: 1px solid var(--warn-line);
  border-radius: 12px;
}
.ph-approve-title {
  color: var(--warn);
  font-size: 10.5px;
  font-weight: 700;
}
.ph-approve-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ph-thumb {
  flex: none;
  width: 22px;
  height: 36px;
  border-radius: 5px;
  background: linear-gradient(160deg, #2B57E0, #13235A);
}
.ph-approve-text {
  flex: 1;
  min-width: 0;
  display: grid;
  color: var(--ink);
}
.ph-approve-text b {
  font-size: 10.5px;
  font-weight: 600;
}
.ph-approve-text small {
  font-size: 9.5px;
  line-height: 1.35;
  color: var(--muted);
}
.ph-tabbar {
  flex: none;
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  height: 54px;
  padding-top: 7px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  font-size: 8.5px;
  font-weight: 500;
  color: var(--muted);
}
.ph-tab {
  display: grid;
  justify-items: center;
  gap: 2px;
  width: 54px;
}
.ph-tab .icon {
  width: 18px;
  height: 18px;
}
.ph-tab.on {
  color: var(--accent);
}
.phone-caption {
  max-width: 300px;
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  text-align: center;
}

/* category / tone tiles (placeholders when there is no image) */
.tone-warm { background: #F1E9DE; color: #8A5A2B; }
.tone-blue { background: #E3ECF7; color: #2D5C8E; }
.tone-violet { background: #ECE6F6; color: #5B3E91; }
.tone-rose { background: #F6E4EA; color: #9A3A5A; }
.tone-green { background: #E2F0E7; color: #2E7650; }
.tone-amber { background: #FBEFD7; color: #946512; }
.tone-neutral { background: var(--seg); color: var(--muted); }

/* ---------- sections ---------- */
.section {
  padding: 56px 0;
}
.section.section-tight {
  padding-top: 8px;
}
.section-band {
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.section-night {
  background: var(--night);
  color: #fff;
}
@media (min-width: 900px) {
  .section {
    padding: 88px 0;
  }
}
.section-head {
  max-width: 660px;
  margin: 0 auto 36px;
  text-align: center;
  display: grid;
  gap: 12px;
}
.section-head h2,
.honest-head h2,
.closing h2,
.apply h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-wrap: balance;
}
.section-head p {
  font-size: 17px;
  color: var(--muted);
  text-wrap: pretty;
}
.section-head-left {
  margin-inline: 0;
  text-align: left;
}

.steps,
.features,
.teaser,
.terms-grid,
.packs {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
@media (min-width: 760px) {
  .steps,
  .teaser,
  .terms-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.step {
  padding: 24px;
}
.step-num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
}
.step h3,
.feature h3 {
  margin: 16px 0 8px;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 600;
}
.step p,
.feature p,
.terms-card p {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.6;
}
.feature {
  padding: 28px;
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--accent);
}
.feature-icon .icon {
  width: 22px;
  height: 22px;
}

/* "Coming soon": services that aren't live yet are shown with this badge, never hidden */
.soon-badge {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border-radius: 5px;
  background: var(--seg);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  vertical-align: middle;
}

/* "Post everywhere": platforms and stores */
.reach {
  margin-top: 16px;
}
.reach-label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.feature .reach-label {
  font-size: 11px;
  line-height: 1.4;
}
.reach-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.reach-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 500;
}
.reach-chip.is-soon {
  background: var(--bg);
  color: var(--muted);
}

/* honest by design (dark band) */
.honest {
  display: grid;
  gap: 32px;
}
.honest-head {
  display: grid;
  gap: 14px;
  align-content: start;
}
.honest-head p {
  color: var(--night-muted);
  font-size: 17px;
  text-wrap: pretty;
}
.honest-list {
  list-style: none;
}
.honest-list li {
  display: flex;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.honest-list li:first-child {
  border-top: 0;
  padding-top: 0;
}
.honest-check {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}
.honest-check .icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.4;
}
.honest-list h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.honest-list p {
  color: var(--night-muted);
  font-size: 15.5px;
}
@media (min-width: 900px) {
  .honest {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 72px;
  }
  .honest-head {
    position: sticky;
    top: 110px;
  }
}

/* pricing teaser */
.teaser-card {
  padding: 24px;
}
.teaser-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}
.teaser-featured {
  border-color: var(--accent-line);
  box-shadow: 0 0 0 1px var(--accent-line), 0 14px 32px rgba(43, 87, 224, 0.1);
}
.teaser-price {
  margin: 6px 0 8px;
  font-size: 40px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.035em;
}
.teaser-price span {
  margin-left: 2px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}
.teaser-note {
  color: var(--muted);
  font-size: 15px;
}
.teaser-more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 20px;
  margin-top: 28px;
  font-size: 15px;
}

/* faq */
.faq-list {
  display: grid;
  gap: 10px;
}
.faq-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-chevron {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--muted);
  transition: transform 0.2s ease;
}
.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}
.faq-body {
  display: grid;
  gap: 10px;
  padding: 0 20px 20px;
  color: var(--muted);
  font-size: 16px;
  text-wrap: pretty;
}
.faq-body p {
  max-width: 62ch;
}
.section:not(.section-band) .faq-item {
  background: var(--surface);
}

/* closing call to action */
.closing {
  padding: 24px 0 72px;
}
.closing-inner {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 48px 24px;
  text-align: center;
  background: var(--accent);
  color: #fff;
  border-radius: 24px;
}
.closing-inner p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  margin-bottom: 8px;
}
.closing-inner .btn {
  background: #fff;
  color: var(--accent);
}

/* ---------- inner pages ---------- */
.page-head {
  padding: 48px 0 12px;
}
.page-head .container {
  display: grid;
  gap: 14px;
  justify-items: start;
}
.page-head-center .container {
  justify-items: center;
  text-align: center;
}
.page-head-center .lead {
  max-width: 56ch;
}
.page-head-inline {
  display: grid;
  gap: 12px;
  padding: 40px 0 28px;
}
@media (min-width: 900px) {
  .page-head {
    padding: 72px 0 28px;
  }
}

/* monthly / yearly toggle: radios + :checked, no JavaScript */
.period {
  display: block;
}
.period-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  opacity: 0;
  pointer-events: none;
}
.period-toggle {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 28px;
  padding: 4px;
  gap: 4px;
  background: var(--seg);
  border-radius: var(--radius-md);
}
.period-toggle label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}
#period-monthly:checked ~ .period-toggle label[for="period-monthly"],
#period-yearly:checked ~ .period-toggle label[for="period-yearly"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(15, 23, 36, 0.12);
}
#period-monthly:focus-visible ~ .period-toggle label[for="period-monthly"],
#period-yearly:focus-visible ~ .period-toggle label[for="period-yearly"] {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.save-badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}
.when-yearly {
  display: none;
}
#period-yearly:checked ~ .period-scope .when-yearly {
  display: block;
}
#period-yearly:checked ~ .period-scope .when-monthly {
  display: none;
}

.plans {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}
@media (min-width: 900px) {
  .plans {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
}
.plan-featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 18px 40px rgba(43, 87, 224, 0.14);
}
.badge-popular {
  position: absolute;
  top: -12px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.badge-inline {
  position: static;
}
.plan-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.plan-blurb {
  color: var(--muted);
  font-size: 15px;
  margin-top: -6px;
}
.plan-price .amount {
  font-size: 46px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.plan-price .per {
  margin-left: 2px;
  color: var(--muted);
  font-size: 16px;
}
.plan-billing {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.plan-features {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 4px 0 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.plan-features li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.45;
}
.plan-features .icon {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--accent);
  stroke-width: 2.2;
}
.plan .btn {
  margin-top: auto;
}
.fine-print {
  max-width: 760px;
  margin: 28px auto 0;
  text-align: center;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.packs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 900px) {
  .packs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.pack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 24px 12px;
  text-align: center;
}
.pack-credits {
  font-size: 36px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.035em;
}
.pack-unit {
  font-size: 13px;
  color: var(--muted);
}
.pack-price {
  margin-top: 14px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.pack-note {
  font-size: 13px;
  color: var(--muted);
  text-wrap: balance; /* avoid "(or 1 one-" / "click)" */
}

.table-wrap {
  padding: 4px 20px;
  overflow-x: auto;
}
.cost-table {
  width: 100%;
  border-collapse: collapse;
}
.cost-table th,
.cost-table td {
  padding: 16px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.cost-table tbody tr:last-child th,
.cost-table tbody tr:last-child td {
  border-bottom: 0;
}
.cost-table thead th {
  padding: 14px 0 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.cost-table tbody th {
  font-weight: 400;
}
.cost-label {
  display: block;
  font-weight: 600;
}
.cost-note {
  display: block;
  margin-top: 2px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--muted);
}
.cost-table .num {
  padding-left: 20px;
  text-align: right;
  white-space: nowrap;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.cost-table .is-soon .cost-label {
  color: var(--muted);
}
.cost-soon {
  white-space: nowrap;
}
.cost-table thead .num {
  font-size: 11px;
  font-weight: 600;
}
.table-wrap + .muted {
  margin-top: 14px;
}

/* ---------- checkout ---------- */
.checkout-page {
  padding-bottom: 80px;
}
.checkout-form {
  display: grid;
  gap: 8px;
}
.choice-group {
  min-width: 0;
  padding: 0;
  border: 0;
  margin-bottom: 20px;
}
.choice-group legend {
  padding: 0;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.choices {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
@media (min-width: 560px) {
  .choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.choices-packs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 760px) {
  .choices-packs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.choice {
  position: relative;
  display: block;
  cursor: pointer;
}
.choice-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.choice-card {
  position: relative;
  display: grid;
  gap: 8px;
  height: 100%;
  padding: 18px 20px;
  border-width: 1.5px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.choice:hover .choice-card {
  border-color: var(--track);
}
.choice-input:checked + .choice-card {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent);
}
.choice-input:focus-visible + .choice-card {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.choice-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 28px;
}
.choice-card .plan-price .amount {
  font-size: 32px;
}
.choice-card .plan-billing {
  margin-top: 2px;
}
.choice-note {
  font-size: 14px;
  color: var(--muted);
}
.choices-packs .choice-card {
  padding: 16px;
}
.pack-credits-sm {
  white-space: nowrap;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.choice-tick {
  position: absolute;
  top: 14px;
  right: 14px;
  display: none;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}
.choice-tick .icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.6;
}
.choice-input:checked + .choice-card .choice-tick {
  display: grid;
}
.checkout-submit {
  width: 100%;
  margin-top: 8px;
}
.manage-sub {
  display: grid;
  gap: 10px;
  justify-items: start;
  margin-top: 28px;
  padding: 20px 22px;
}
.manage-sub h2 {
  margin: 0;
  font-size: 17px;
}
.manage-sub p {
  margin: 0;
}
.message-page {
  padding: 40px 0 96px;
}
.message-card {
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: 44px 24px;
  text-align: center;
}
.message-card .title {
  font-size: clamp(26px, 3.6vw, 36px);
}
.success-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}
.success-mark .icon {
  width: 28px;
  height: 28px;
  stroke-width: 2.4;
}

/* ---------- partners ---------- */
.terms-card {
  padding: 26px;
}
.terms-card h3 {
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.rule-list {
  list-style: none;
  display: grid;
}
.rule-list li {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.rule-list li:first-child {
  border-top: 0;
}
.rule-check {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}
.rule-check .icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.4;
}
.rule-list h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}
.rule-list p {
  color: var(--muted);
}
.apply {
  display: grid;
  justify-items: start;
  gap: 14px;
}
.apply p {
  max-width: 60ch;
  color: var(--muted);
}

/* ---------- legal ---------- */
.prose-wrap {
  max-width: calc(980px + 2 * var(--gutter));
}
.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* a long URL in the text must not widen the page on phones */
  gap: 32px;
  padding-bottom: 88px;
}
.toc {
  display: none;
}
@media (min-width: 960px) {
  .legal-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 56px;
  }
  .toc {
    display: block;
    position: sticky;
    top: 96px;
    align-self: start;
    font-size: 14px;
  }
}
.toc-title {
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.toc ol {
  list-style: none;
  display: grid;
  gap: 2px;
}
.toc a {
  display: block;
  padding: 5px 0;
  color: var(--muted);
  line-height: 1.35;
}
.toc a:hover {
  color: var(--ink);
}
.prose {
  max-width: 720px;
  overflow-wrap: anywhere; /* long links (Google / YouTube policy URLs) wrap instead of overflowing */
}
.prose-section {
  padding-top: 8px;
}
.prose .doc-links {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.prose h2 {
  margin: 32px 0 12px;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 700;
  scroll-margin-top: 88px;
}
.prose-section:first-child h2 {
  margin-top: 0;
}
.prose-num {
  color: var(--muted);
  font-weight: 500;
  margin-right: 2px;
}
.prose p,
.prose li {
  font-size: 16px;
  line-height: 1.7;
  text-wrap: pretty;
}
.prose p + p,
.prose p + ul,
.prose ul + p {
  margin-top: 12px;
}
.prose ul {
  padding-left: 22px;
}
.prose li {
  margin: 6px 0;
  padding-left: 2px;
}
.prose li::marker {
  color: var(--muted);
}

/* ---------- learning center (/learn, /learn/app, lessons) ---------- */
.learn-wrap {
  max-width: calc(760px + 2 * var(--gutter));
}
.learn-note {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  text-wrap: pretty;
}
.learn-body {
  display: grid;
  gap: 48px;
  padding-bottom: 88px;
}
.learn-group-head {
  margin-bottom: 16px;
}
.learn-group-head h2 {
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.learn-group-head h2 a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.learn-group-head p {
  margin-top: 6px;
  color: var(--muted);
  text-wrap: pretty;
}
.learn-list {
  list-style: none;
  display: grid;
  gap: 10px;
}
.learn-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.learn-item:hover {
  border-color: var(--accent-line);
  box-shadow: var(--shadow-card);
}
.learn-num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}
.learn-item-text {
  display: grid;
  gap: 4px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.learn-item-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}
.learn-item-desc {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}
.learn-item-meta {
  font-size: 13px;
  color: var(--muted);
}
.learn-crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
}
.learn-crumbs li {
  display: inline-flex;
  align-items: center;
}
.learn-crumbs li + li::before {
  content: "›";
  margin: 0 8px;
  color: var(--muted);
}
.learn-crumbs a {
  color: var(--accent);
  font-weight: 600;
}
.learn-crumbs a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.learn-meta {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.learn-article > * + * {
  margin-top: 14px;
}
.learn-article a,
.faq-body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.learn-article h2 {
  margin: 36px 0 10px;
}
.learn-article > h2:first-child {
  margin-top: 0;
}
.learn-article ol {
  padding-left: 24px;
}
.learn-article ol > li::marker {
  color: var(--muted);
  font-weight: 600;
}
@media (min-width: 720px) {
  .learn-article p,
  .learn-article li {
    font-size: 17px;
  }
}
.learn-article .learn-tip {
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--accent-soft);
  color: var(--ink);
}
.learn-article .learn-download {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.learn-download .text-link {
  text-decoration: none;
}
/* "Avoid" → "Better": stacked on phones, side by side from 640 px */
.learn-article .learn-pairs,
.learn-article .learn-features {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 10px;
}
.learn-article .learn-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  margin: 0;
  padding: 0;
}
@media (min-width: 640px) {
  .learn-article .learn-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.learn-article .learn-pair p {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 15px;
  line-height: 1.5;
}
.learn-pair-bad {
  background: var(--warn-soft);
}
.learn-pair-good {
  background: var(--money-soft);
}
.learn-pair-label {
  display: block;
  margin-bottom: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.learn-pair-bad .learn-pair-label {
  color: var(--warn-ink);
}
.learn-pair-good .learn-pair-label {
  color: var(--money-ink);
}
/* What Vidmerce does: a check per live line, an open circle and "Coming soon" for the others */
.learn-article .learn-features li {
  position: relative;
  margin: 0;
  padding: 10px 12px 10px 38px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.learn-features li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 19px;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--money);
  border-bottom: 2px solid var(--money);
  transform: rotate(-45deg);
}
.learn-features li.is-soon {
  color: var(--muted);
}
.learn-features li.is-soon::before {
  top: 18px;
  left: 15px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--track);
  border-radius: 50%;
  transform: none;
}
.learn-pager {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-top: 48px;
}
@media (min-width: 640px) {
  .learn-pager {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .learn-pager .is-next {
    grid-column: 2;
    text-align: right;
  }
}
.learn-pager-link {
  display: grid;
  gap: 2px;
  min-height: 44px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 0.15s ease;
}
.learn-pager-link:hover {
  border-color: var(--accent-line);
}
.learn-pager-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.learn-pager .is-prev .learn-pager-label::before {
  content: "← ";
}
.learn-pager .is-next .learn-pager-label::after {
  content: " →";
}
.learn-pager-title {
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.learn-back {
  margin-top: 24px;
  padding-bottom: 88px;
}
.learn-body .learn-back {
  margin-top: 0;
  padding-bottom: 0;
}
/* The header's "Free guide" link: only where the nav has room (the footer always has it) */
.nav-links .nav-guide {
  display: none;
}
@media (min-width: 960px) {
  .nav-links .nav-guide {
    display: block;
  }
}

/* ---------- storefront (mobile list + desktop grid) ---------- */
.sf-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.sf-header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px 18px;
  align-items: start;
  padding-block: 26px;
}
.sf-avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 26px;
  font-weight: 700;
}
.sf-name {
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.sf-handle {
  margin-top: 2px;
  font-size: 15px;
  color: var(--muted);
}
.sf-bio {
  margin-top: 10px;
  max-width: 62ch;
  font-size: 15.5px;
  overflow-wrap: anywhere;
}
.market-toggle {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
}
.market-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.seg {
  display: inline-flex;
  padding: 3px;
  background: var(--seg);
  border-radius: 10px;
}
.seg a {
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.seg a[aria-current="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(15, 23, 36, 0.12);
}
@media (min-width: 760px) {
  .sf-header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding-block: 36px;
    gap: 24px;
    align-items: center;
  }
  .sf-avatar {
    width: 84px;
    height: 84px;
    font-size: 34px;
  }
  .sf-name {
    font-size: 30px;
  }
  .market-toggle {
    grid-column: auto;
    align-self: start;
  }
}
.sf-disclosure {
  background: var(--accent-soft);
  border-bottom: 1px solid var(--accent-line);
}
.sf-disclosure .container {
  display: grid;
  gap: 4px;
  padding-block: 14px;
}
.sf-disclosure-main {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}
.sf-disclosure-sub {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}
.sf-main {
  padding-block: 24px 40px;
}
.sf-empty {
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
}
.sf-grid {
  list-style: none;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr);
}
.sf-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.sf-media {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  overflow: hidden;
  background: var(--seg);
}
.sf-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sf-tile {
  display: grid;
  place-items: center;
}
.sf-tile .icon {
  width: 38%;
  height: auto;
  stroke-width: 1.6;
}
.sf-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.sf-title {
  font-size: 15.5px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.sf-price {
  margin: 8px 0 12px;
  display: grid;
  gap: 1px;
}
.sf-amount {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.sf-asof {
  font-size: 12px;
  color: var(--muted);
}
.sf-shop {
  width: 100%;
  margin-top: auto;
}
.sf-shop .icon {
  width: 16px;
  height: 16px;
}
@media (min-width: 640px) {
  .sf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .sf-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    overflow: hidden;
  }
  .sf-media {
    border-radius: 0;
  }
  .sf-info {
    flex: 1;
    padding: 16px;
  }
  .sf-title {
    -webkit-line-clamp: 2;
    line-clamp: 2;
    min-height: 2.6em;
  }
}
@media (min-width: 900px) {
  .sf-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1120px) {
  .sf-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.sf-footer {
  padding: 8px 0 56px;
}
.sf-footer-inner {
  display: grid;
  justify-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}
.made-with {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.made-with:hover {
  border-color: var(--track);
}
.sf-footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

/* ---------- Vidmerce for Brands (/brands) ---------- */
.brands-cta {
  margin-top: 24px;
}
.brands-steps {
  counter-reset: none;
}
@media (min-width: 760px) {
  .brands-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.brands-subhead {
  margin: 32px 0 12px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.brand-license {
  margin: 20px 0 12px;
  padding: 20px 22px;
  border-color: var(--accent-line);
  background: var(--accent-soft);
}
.brand-license p {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 16.5px;
  line-height: 1.55;
  font-weight: 500;
}
.brand-license-box {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
}
.brand-license-box .icon {
  width: 16px;
  height: 16px;
}
.brand-form {
  display: grid;
  gap: 18px;
  margin-top: 20px;
  padding: 22px;
  text-align: left;
}
.brand-form h3 {
  font-size: 20px;
  font-weight: 600;
}
.brand-form-grid {
  display: grid;
  gap: 14px;
}
@media (min-width: 640px) {
  .brand-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.brand-form input[type="text"],
.brand-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--track);
  border-radius: var(--radius-md);
  background: var(--surface);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
}
.brand-form textarea {
  resize: vertical;
}
.brand-form input[type="text"]:focus-visible,
.brand-form textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.brand-form [aria-invalid="true"],
.brand-form input[aria-invalid="true"] {
  /* the second selector outweighs `.brand-form input[type="text"]`, which hid the red border on text fields */
  border-color: #B4231B;
}
.brand-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.brand-fieldset legend {
  margin-bottom: 8px;
  padding: 0; /* line up with the other field labels */
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.brand-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}
.brand-checks-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 640px) {
  .brand-checks-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.field-error,
.apply .field-error {
  /* `.apply p` (muted grey) would otherwise win */
  margin-top: 6px;
  color: #B4231B;
  font-size: 13px;
  font-weight: 500;
}
.brand-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- touch targets on phones and touch screens ----------
   Apple's HIG asks for 44×44 pt. Where a bigger box would change the look, an invisible ::after
   extends the hit area instead (the link stays the same size on screen). */
@media (max-width: 719px), (pointer: coarse) {
  .brand,
  .nav-links a,
  .lang-switch a,
  .text-link,
  .seg a,
  .sf-footer-links a,
  .footer-meta a {
    position: relative;
  }
  .brand::after,
  .nav-links a::after,
  .lang-switch a::after,
  .text-link::after,
  .seg a::after,
  .sf-footer-links a::after,
  .footer-meta a::after {
    content: "";
    position: absolute;
  }
  .brand::after {
    inset: -7px 0; /* 30 → 44 tall */
  }
  .nav-links a::after {
    inset: -3px 0; /* 38 → 44 tall */
  }
  .lang-switch a::after {
    inset: -9px -5px; /* 26×35 → 44×45; the other half of the switch is not a link */
  }
  .text-link::after {
    inset: -13px -4px;
  }
  .seg a::after {
    inset: -6px 0; /* storefront US / Canada: 33 → 45 tall */
  }
  .sf-footer-links a::after,
  .footer-meta a::after {
    inset: -14px -4px; /* "Terms · Privacy": stays clear of the neighbour */
  }
  .footer-links {
    gap: 0 22px;
    margin-top: -11px;
  }
  .footer-links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .footer-links a::after {
    content: "";
    position: absolute;
    inset: 0 -6px; /* "Terms" is 40 px wide; the 22 px gap leaves room */
  }
  .made-with {
    min-height: 44px;
  }
  /* checkbox / radio rows (waitlist consent, brand application) */
  .check {
    min-height: 44px;
  }
  .brand-checks .check {
    align-items: center;
  }
  .brand-checks .check input {
    margin-top: 0;
  }
  .brand-checks {
    gap: 0 20px;
  }
}
/* minimal footer (checkout, storefront 404): never break inside "· Terms · Privacy"; on phones the links get their own line */
.footer-min-links {
  white-space: nowrap;
}
@media (max-width: 559px) {
  .footer-min-links {
    display: block;
    margin-top: 6px;
  }
  .footer-min-sep {
    display: none;
  }
}
