/* ==========================================================================
   PapersOwl.online — design system & styles
   v1.0
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --ink: #1B1315;
  --ink-soft: #2A1E20;
  --body: #4B3F3E;
  --muted: #7B6A66;
  --line: #EADFD5;
  --line-strong: #DCCDBD;

  --bg: #ffffff;
  --bg-soft: #FBF7F1;
  --bg-tint: #F6EDE2;
  --bg-dark: #170F11;

  --brand: #9E1B34;
  --brand-deep: #7E1229;
  --brand-soft: #FBEDF0;
  --gold: #C8891F;
  --moss: #2E6B4F;
  --moss-soft: #E7F3EC;
  --amber: #C8891F;
  --amber-soft: #FBF1DE;

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;

  --shadow-xs: 0 1px 2px rgba(10, 15, 28, .06);
  --shadow-sm: 0 2px 8px rgba(10, 15, 28, .06), 0 1px 2px rgba(10, 15, 28, .04);
  --shadow-md: 0 12px 30px -12px rgba(10, 15, 28, .18), 0 2px 6px rgba(10, 15, 28, .04);
  --shadow-lg: 0 34px 70px -30px rgba(10, 15, 28, .35), 0 8px 20px -12px rgba(10, 15, 28, .12);

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Newsreader', 'Iowan Old Style', Georgia, 'Times New Roman', serif;

  --container: 1180px;
  --header-h: 76px;
  --ease: cubic-bezier(.22, .68, .32, 1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: var(--brand-deep); text-decoration: none; }
a:hover { color: var(--brand); }
ul, ol { padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.015em;
  font-variation-settings: 'SOFT' 0, 'WONK' 0;
}

h1 { font-size: clamp(2.35rem, 4.6vw, 3.9rem); }
h2 { font-size: clamp(1.85rem, 3vw, 2.7rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); }
h4 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 650; letter-spacing: 0; }

::selection { background: #d7e0ff; color: var(--ink); }

:focus-visible {
  outline: 3px solid rgba(47, 91, 255, .45);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 3. Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.container--wide { max-width: 1320px; }
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section--soft { background: var(--bg-soft); }
.section--tint { background: linear-gradient(180deg, #FCF9F5 0%, #ffffff 100%); }
.section--dark { background: var(--bg-dark); color: #aab6cd; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }

.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }

.stack > * + * { margin-top: 16px; }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.max-60 { max-width: 60ch; }
.max-70 { max-width: 70ch; }

/* ---------- 4. Type utilities ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.section--dark .eyebrow { color: #D98BA0; }

.lead { font-size: clamp(1.02rem, 1.3vw, 1.14rem); color: var(--body); }
.small { font-size: .875rem; }
.muted { color: var(--muted); }
.ink { color: var(--ink); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark p { color: #a6b2c8; }

.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { margin-inline: auto; }
.section-head p { margin-top: 14px; }

/* ---------- 5. Buttons ---------- */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: -.005em;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
  box-shadow: 0 10px 24px -12px rgba(47, 91, 255, .8);
}
.btn:hover { color: #fff; background: var(--brand-deep); transform: translateY(-1px); box-shadow: 0 16px 30px -14px rgba(27, 62, 216, .9); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; flex: none; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line-strong);
  box-shadow: none;
}
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #b9c4d8; box-shadow: var(--shadow-sm); }

.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); box-shadow: var(--shadow-sm); }
.btn--light:hover { background: #f4f7ff; color: var(--ink); }

.btn--dark { --btn-bg: var(--ink); --btn-fg: #fff; box-shadow: 0 10px 24px -14px rgba(10, 15, 28, .9); }
.btn--dark:hover { background: #131c30; }

.btn--lg { padding: 16px 30px; font-size: 1rem; }
.btn--sm { padding: 9px 16px; font-size: .84rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-row--center { justify-content: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: .94rem;
  color: var(--brand-deep);
}
.link-arrow svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- 6. Top bar ---------- */
.topbar {
  background: var(--ink);
  color: #DFD2C4;
  font-size: .8rem;
  letter-spacing: .01em;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 38px;
  text-align: center;
  flex-wrap: wrap;
}
.topbar strong { color: #fff; font-weight: 600; }
.topbar .tag {
  background: rgba(122, 92, 255, .22);
  color: #c9bcff;
  border: 1px solid rgba(122, 92, 255, .38);
  padding: 1px 8px;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.topbar a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 7. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(10, 15, 28, .5);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand:hover { color: inherit; }
.brand-mark { width: 38px; height: 38px; flex: none; border-radius: 11px; box-shadow: 0 6px 16px -8px rgba(47, 91, 255, .85); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.02em;
}
.brand-name em { font-style: normal; color: var(--brand); }
.brand-sub {
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 2px; margin-left: 14px; }
.nav-link {
  position: relative;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: .92rem;
  font-weight: 550;
  color: #4B3F3E;
  transition: color .16s var(--ease), background .16s var(--ease);
}
.nav-link:hover { color: var(--ink); background: var(--bg-soft); }
.nav-link.is-active { color: var(--brand-deep); }
.nav-link.is-active::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.header-actions .btn--ghost { border-color: transparent; }
.header-actions .btn--ghost:hover { background: var(--bg-soft); border-color: transparent; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  align-items: center;
  justify-content: center;
  background: #fff;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  position: relative;
  transition: background .18s var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .22s var(--ease), top .22s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
body.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: calc(var(--header-h) + 38px) 0 auto 0;
  z-index: 89;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding: 14px 24px 24px;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
}
body.nav-open .mobile-nav { opacity: 1; transform: none; visibility: visible; }
.mobile-nav a.m-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 4px;
  font-size: 1rem;
  font-weight: 550;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mobile-nav a.m-link:hover { color: var(--brand); }
.mobile-nav a.m-link svg { width: 15px; height: 15px; color: var(--muted); }
.mobile-nav .btn-row { margin-top: 18px; }
.mobile-nav .btn { flex: 1; }

/* ---------- 8. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 6vw, 84px) 0 clamp(52px, 6vw, 88px);
  background:
    radial-gradient(900px 480px at 82% -12%, rgba(122, 92, 255, .16), transparent 62%),
    radial-gradient(760px 420px at 6% 4%, rgba(47, 91, 255, .13), transparent 60%),
    linear-gradient(180deg, #FDFAF6 0%, #ffffff 78%);
}
.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(34px, 4.5vw, 64px); align-items: start; }

.hero h1 { margin-bottom: 20px; }
.hero h1 .accent {
  position: relative;
  white-space: nowrap;
  color: var(--brand-deep);
}
.hero h1 .accent::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: .04em;
  height: .3em;
  background: linear-gradient(90deg, rgba(122, 92, 255, .22), rgba(47, 91, 255, .12));
  border-radius: 3px;
  z-index: -1;
}
.hero-sub { font-size: clamp(1.03rem, 1.35vw, 1.16rem); max-width: 54ch; }
.hero-cta { margin-top: 30px; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px dashed var(--line-strong);
}
.hero-badges li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .84rem;
  font-weight: 550;
  color: #4B3F3E;
}
.hero-badges svg { width: 15px; height: 15px; color: var(--moss); flex: none; }

.rating-line { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-size: .86rem; color: var(--muted); }
.stars { display: inline-flex; gap: 2px; color: var(--amber); }
.stars svg { width: 15px; height: 15px; }

/* Quote / calculator card */
.quote-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 26px;
}
.quote-card::before {
  content: '';
  position: absolute;
  inset: -1px -1px auto -1px;
  height: 5px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(90deg, var(--brand), var(--gold) 60%, #ff8a3d);
}
.quote-card h3 { font-family: var(--font-body); font-size: 1.02rem; font-weight: 650; letter-spacing: 0; }
.quote-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.quote-head .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--moss);
  background: var(--moss-soft);
  padding: 5px 10px;
  border-radius: 999px;
}
.quote-head .pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.field { display: block; margin-bottom: 14px; }
.field > .label {
  display: block;
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #5a6780;
  margin-bottom: 7px;
}
.input, .select, .textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  font-size: .95rem;
  color: var(--ink);
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
  appearance: none;
}
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236d7a92' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 15px;
  padding-right: 34px;
}
.textarea { min-height: 108px; resize: vertical; line-height: 1.55; }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(47, 91, 255, .12);
}
.input.is-invalid, .select.is-invalid, .textarea.is-invalid {
  border-color: #B3261E;
  box-shadow: 0 0 0 4px rgba(224, 71, 63, .1);
}
.field-hint { display: block; font-size: .78rem; color: var(--muted); margin-top: 6px; }
.field-error { display: none; font-size: .78rem; color: #cf3b33; margin-top: 6px; font-weight: 550; }
.field-error.is-visible { display: block; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.quote-total {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 6px;
  padding-top: 16px;
  border-top: 1px dashed var(--line-strong);
}
.quote-total .label { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.quote-total .amount {
  font-family: var(--font-display);
  font-size: 2.15rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -.02em;
}
.quote-total .meta { font-size: .78rem; color: var(--muted); text-align: right; }
.quote-note { font-size: .76rem; color: var(--muted); text-align: center; margin-top: 12px; }

/* ---------- 9. Stat strip ---------- */
.stat-strip { background: var(--ink); color: #fff; padding: 30px 0; }
.stat-strip .grid { gap: 12px; }
.stat { text-align: center; padding: 6px 10px; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.stat-num span { color: #D98BA0; }
.stat-label { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: #9dabc4; margin-top: 6px; }

/* ---------- 10. Cards ---------- */
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #DFD2C4; }
.card h3 { margin-bottom: 9px; }
.card p { font-size: .93rem; }
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand-deep);
  margin-bottom: 16px;
}
.card-icon svg { width: 21px; height: 21px; }
.card-icon--mint { background: var(--moss-soft); color: var(--moss); }
.card-icon--amber { background: var(--amber-soft); color: #b57a08; }
.card-icon--violet { background: #f0ecff; color: #6446e0; }

.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); }
.card-price { font-size: .84rem; color: var(--muted); }
.card-price strong { color: var(--ink); font-size: 1.02rem; font-family: var(--font-display); font-weight: 700; }

/* ---------- 11. Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step { position: relative; padding-top: 46px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  font-family: var(--font-body);
}
.step h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 650; letter-spacing: 0; margin-bottom: 7px; }
.step p { font-size: .9rem; }
.step::after {
  content: '';
  position: absolute;
  top: 17px;
  left: 46px;
  right: 4px;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px);
}
.step:last-child::after { display: none; }

/* ---------- 12. Feature list ---------- */
.feature-list { display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; }
.feature-list .tick {
  flex: none;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--moss-soft);
  color: var(--moss);
  margin-top: 2px;
}
.feature-list .tick svg { width: 12px; height: 12px; stroke-width: 3; }
.feature-list strong { color: var(--ink); font-weight: 650; }

/* ---------- 13. Pricing table ---------- */
.price-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.price-table { font-size: .93rem; }
.price-table thead th {
  background: var(--ink);
  color: #fff;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 15px 18px;
  text-align: center;
  white-space: nowrap;
}
.price-table thead th:first-child { text-align: left; }
.price-table tbody td { padding: 15px 18px; border-top: 1px solid var(--line); text-align: center; color: var(--body); }
.price-table tbody td:first-child { text-align: left; font-weight: 600; color: var(--ink); }
.price-table tbody tr:nth-child(even) { background: #FDFAF6; }
.price-table tbody tr:hover { background: var(--brand-soft); }
.price-table .from { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.price-table .best { display: inline-block; font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--moss); background: var(--moss-soft); padding: 2px 7px; border-radius: 999px; margin-left: 7px; vertical-align: 2px; }

.price-cards { display: none; gap: 14px; }
.price-card-m {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: #fff;
}
.price-card-m .pcm-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.price-card-m .pcm-head strong { font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); }
.price-card-m .pcm-head span { font-size: .8rem; color: var(--muted); }
.price-card-m dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; font-size: .85rem; }
.price-card-m dt { color: var(--muted); }
.price-card-m dd { text-align: right; font-weight: 600; color: var(--ink); }

/* ---------- 14. Writers ---------- */
.writer-card { text-align: left; }
.avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.01em;
  flex: none;
}
.avatar--a { background: linear-gradient(135deg, #9E1B34, #C8891F); }
.avatar--b { background: linear-gradient(135deg, #2E6B4F, #9E1B34); }
.avatar--c { background: linear-gradient(135deg, #C8891F, #C8891F); }
.avatar--d { background: linear-gradient(135deg, #C8891F, #B3261E); }
.avatar--e { background: linear-gradient(135deg, #2A1E20, #9E1B34); }
.avatar--f { background: linear-gradient(135deg, #C8891F, #C8891F); }

.writer-top { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.writer-top h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 650; letter-spacing: 0; margin-bottom: 2px; }
.writer-top .role { font-size: .8rem; color: var(--muted); }
.writer-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 14px; }
.tag-chip {
  font-size: .73rem;
  font-weight: 550;
  color: #43506a;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 3px 9px;
  border-radius: 999px;
}
.writer-stats { display: flex; gap: 16px; padding-top: 13px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.writer-stats strong { color: var(--ink); font-weight: 650; }

/* ---------- 15. Reviews ---------- */
.review-card { display: flex; flex-direction: column; gap: 12px; }
.review-card .stars { color: var(--amber); }
.review-quote { font-size: .94rem; color: #33405a; }
.review-meta { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.review-meta .avatar { width: 38px; height: 38px; border-radius: 11px; font-size: .82rem; }
.review-meta strong { display: block; font-size: .86rem; color: var(--ink); font-weight: 650; }
.review-meta span { font-size: .76rem; color: var(--muted); }

/* ---------- 16. Accordion ---------- */
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  list-style: none;
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary:hover { color: var(--brand-deep); }
.acc-item summary .plus {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  position: relative;
  transition: transform .22s var(--ease), background .22s var(--ease), border-color .22s var(--ease);
}
.acc-item summary .plus::before,
.acc-item summary .plus::after {
  content: '';
  position: absolute;
  background: var(--ink);
  border-radius: 2px;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.acc-item summary .plus::before { width: 11px; height: 1.8px; }
.acc-item summary .plus::after { width: 1.8px; height: 11px; }
.acc-item[open] summary .plus { background: var(--brand); border-color: var(--brand); transform: rotate(90deg); }
.acc-item[open] summary .plus::before,
.acc-item[open] summary .plus::after { background: #fff; }
.acc-item[open] summary .plus::after { opacity: 0; }
.acc-body { padding: 0 44px 22px 4px; font-size: .95rem; }
.acc-body p + p { margin-top: 10px; }
.acc-body ul { margin-top: 10px; display: grid; gap: 6px; }
.acc-body ul li { padding-left: 18px; position: relative; }
.acc-body ul li::before { content: ''; position: absolute; left: 4px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }

/* ---------- 17. CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: clamp(34px, 5vw, 62px);
  background:
    radial-gradient(620px 320px at 88% 0%, rgba(122, 92, 255, .42), transparent 62%),
    radial-gradient(520px 300px at 4% 100%, rgba(47, 91, 255, .38), transparent 60%),
    var(--ink);
  color: #fff;
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 32px;
  align-items: center;
}
.cta-band h2 { color: #fff; max-width: 20ch; }
.cta-band p { color: #b3c0d6; margin-top: 14px; max-width: 46ch; }
.cta-band .btn-row { justify-content: flex-end; }

/* ---------- 18. Page head (inner pages) ---------- */
.page-head {
  position: relative;
  padding: clamp(38px, 5vw, 64px) 0 clamp(30px, 4vw, 46px);
  background: linear-gradient(180deg, #FCF9F5, #fff);
  border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: clamp(2rem, 3.6vw, 3.1rem); margin-bottom: 14px; }
.page-head p { max-width: 62ch; font-size: 1.05rem; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); margin-bottom: 18px; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span.sep { color: #b6c0d2; }
.breadcrumb .current { color: var(--ink); font-weight: 550; }

/* ---------- 19. Forms ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(22px, 3vw, 34px);
}
.form-section + .form-section { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line); }
.form-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin-bottom: 16px;
}
.form-section-title .n {
  width: 20px; height: 20px; border-radius: 6px;
  background: var(--brand); color: #fff;
  display: grid; place-items: center;
  font-size: .7rem; letter-spacing: 0;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .span-2 { grid-column: span 2; }
.check-row { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; }
.check-row input[type="checkbox"] { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.summary-box {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.summary-box h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 650; letter-spacing: 0; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; font-size: .88rem; padding: 7px 0; }
.summary-line span:first-child { color: var(--muted); }
.summary-line span:last-child { font-weight: 550; color: var(--ink); text-align: right; }
.summary-divide { border-top: 1px dashed var(--line-strong); margin: 12px 0; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; }
.summary-total .label { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.summary-total .amount { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }

.success-panel {
  display: none;
  text-align: center;
  padding: 8px 0;
}
.success-panel.is-visible { display: block; }
.success-icon {
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--moss-soft); color: var(--moss);
  display: grid; place-items: center; margin: 0 auto 18px;
}
.success-icon svg { width: 28px; height: 28px; stroke-width: 2.6; }

/* A rule with a display value beats the UA's [hidden] { display: none },
   which is how the old sign-in notice stayed on screen while JS kept it
   "hidden". Pinning it here means a hidden element is never painted. */
[hidden] { display: none !important; }

.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--amber-soft);
  border: 1px solid #f4dfae;
  font-size: .87rem;
  color: #7a5606;
}
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.notice--info { background: var(--brand-soft); border-color: #cfdbff; color: #24409f; }
.notice--mint { background: var(--moss-soft); border-color: #bfe9d9; color: #0a6d52; }

/* ---------- 20. Prose (blog & legal) ---------- */
.prose { max-width: 72ch; font-size: 1.02rem; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: clamp(1.45rem, 2.2vw, 1.85rem); margin-top: 2em; }
.prose h3 { margin-top: 1.7em; }
.prose p { color: #3d4a62; }
.prose ul, .prose ol { display: grid; gap: .55em; padding-left: 0; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before { content: ''; position: absolute; left: 4px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.prose ol { counter-reset: ol; }
.prose ol li { position: relative; padding-left: 30px; counter-increment: ol; }
.prose ol li::before {
  content: counter(ol);
  position: absolute; left: 0; top: .1em;
  width: 20px; height: 20px; border-radius: 6px;
  background: var(--brand-soft); color: var(--brand-deep);
  font-size: .72rem; font-weight: 700;
  display: grid; place-items: center;
}
.prose blockquote {
  border-left: 3px solid var(--brand);
  padding: 4px 0 4px 20px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
}
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose strong { color: var(--ink); font-weight: 650; }
.prose .callout {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  font-size: .95rem;
}
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }
.prose table { font-size: .9rem; margin-top: 1.2em; }
.prose th, .prose td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.prose th { background: var(--bg-soft); font-weight: 650; color: var(--ink); }

/* Blog cards */
.post-card { display: flex; flex-direction: column; gap: 10px; }
.post-card .post-tag { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-deep); }
.post-card h3 { font-size: 1.15rem; }
.post-card .post-meta { font-size: .78rem; color: var(--muted); margin-top: auto; padding-top: 14px; }

/* ---------- 21. Footer ---------- */
.site-footer { background: var(--bg-dark); color: #97a5bd; padding-top: clamp(48px, 6vw, 72px); font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 44px; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-sub { color: #7f8da8; }
.footer-about { margin-top: 16px; font-size: .88rem; line-height: 1.7; max-width: 34ch; }
.footer-col h4 {
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { display: grid; gap: 9px; }
.footer-col a { color: #97a5bd; font-size: .89rem; }
.footer-col a:hover { color: #fff; }
.footer-address {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-top: 16px;
  font-size: .85rem;
  color: #8C7B76;
  line-height: 1.6;
}
.footer-address svg { width: 15px; height: 15px; color: #12c2a0; flex: none; margin-top: 3px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 8px; color: #DFD2C4; font-weight: 550; }
.footer-contact svg { width: 15px; height: 15px; color: #D98BA0; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .09);
  padding: 20px 0 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: .82rem;
  color: #7b8aa4;
}
.footer-bottom .legal-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-bottom a { color: #7b8aa4; }
.footer-bottom a:hover { color: #fff; }
/* ---------- "We accept:" logos ----------
   Eight methods, each in its brand's own mark, on white pills so they read
   on the dark footer. Stripe is the processor, not a method, so it is not a
   badge here; it is still named at checkout. */
.footer-pay {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 0;
  margin-bottom: 4px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.pay-accept-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #8C7B76;
}
.pay-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pay-row .pay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 6px;
  padding: .3rem .5rem;
  min-height: 24px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .18);
}
.pay-row .pay img { display: block; width: auto; max-width: 100%; object-fit: contain; }
.pay-row .pay img.pl-mc,
.pay-row .pay img.pl-amex,
.pay-row .pay img.pl-up,
.pay-row .pay img.pl-mae { height: 17px; }
.pay-row .pay img.pl-visa,
.pay-row .pay img.pl-ap { height: 15px; }
.pay-row .pay img.pl-pp { height: 14px; }
.pay-row .pay img.pl-disc { height: 13px; }

/* ---------- footer socials ---------- */
.foot-social { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.foot-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 4px 12px -6px rgba(0, 0, 0, .45);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.foot-social-link:hover,
.foot-social-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .55);
  text-decoration: none;
}
.foot-social-link svg { display: block; }

@media (max-width: 640px) {
  .pay-row .pay { padding: .26rem .42rem; min-height: 22px; }
  .pay-row .pay img.pl-mc,
  .pay-row .pay img.pl-amex,
  .pay-row .pay img.pl-up,
  .pay-row .pay img.pl-mae { height: 15px; }
  .pay-row .pay img.pl-visa,
  .pay-row .pay img.pl-ap { height: 13px; }
  .pay-row .pay img.pl-pp { height: 12px; }
  .pay-row .pay img.pl-disc { height: 11px; }
  .foot-social-link { width: 36px; height: 36px; border-radius: 10px; }
}

/* ---------- 22. Page transition / reveal ---------- */
#main { transition: opacity .18s var(--ease), transform .18s var(--ease); }
body.is-navigating #main { opacity: .35; transform: translateY(4px); }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); will-change: opacity, transform; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  #main, body.is-navigating #main { transition: none; opacity: 1; transform: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* Progress bar for route changes */
.route-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--brand), var(--gold));
  z-index: 200;
  opacity: 0;
  transition: width .4s var(--ease), opacity .2s;
  pointer-events: none;
}
.route-bar.is-active { opacity: 1; }

/* ---------- 23. Misc ---------- */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 78px;   /* clears the support badge in the bottom-right corner */
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  z-index: 80;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 16px; height: 16px; }

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

.divider { height: 1px; background: var(--line); border: 0; }

.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: .78rem;
  font-weight: 600;
}
.badge-soft svg { width: 14px; height: 14px; }

.checkout-list { display: grid; gap: 10px; }
.checkout-list li { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.checkout-list svg { width: 16px; height: 16px; color: var(--moss); flex: none; }

/* ---------- 24. Responsive ---------- */
@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; }
  .quote-card { max-width: 520px; }
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn--ghost { display: none; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(2)::after { display: none; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band .btn-row { justify-content: flex-start; }
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-wrap { display: none; }
  .price-cards { display: grid; }
  .page-head { padding-top: 30px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .topbar { font-size: .74rem; }
  .topbar .container { min-height: 34px; padding-inline: 16px; }
  .container { padding-inline: 18px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .stat-strip .grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .field-row { grid-template-columns: 1fr; }
  .summary-box { position: static; }
  .cta-band { border-radius: var(--radius-lg); }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-badges { gap: 8px 14px; }
  .acc-body { padding-right: 10px; }
  .quote-card { padding: 20px; }
  .btn { padding: 12px 20px; }
  .mobile-nav { inset: calc(var(--header-h) + 34px) 0 auto 0; }
  .to-top { right: 14px; bottom: 72px; }
}

@media (max-width: 420px) {
  .brand-sub { display: none; }
  .header-actions .btn { padding: 10px 16px; font-size: .86rem; }
}

/* ---------- 25. Extra components ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Level price strip */
.level-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}
.level-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.level-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #DFD2C4; color: var(--ink); }
.lc-level { font-size: .8rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.lc-price { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; letter-spacing: -.02em; color: var(--ink); line-height: 1.1; }
.lc-price span { font-family: var(--font-body); font-size: .8rem; font-weight: 500; color: var(--muted); margin-left: 2px; }
.lc-note { font-size: .78rem; color: var(--muted); }

/* Auth pages */
.auth-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #fff;
}
.auth-side {
  background:
    radial-gradient(520px 280px at 80% 0%, rgba(122, 92, 255, .5), transparent 62%),
    radial-gradient(420px 260px at 0% 100%, rgba(47, 91, 255, .45), transparent 60%),
    var(--ink);
  color: #DFD2C4;
  padding: clamp(26px, 3.4vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-side h2 { color: #fff; font-size: clamp(1.5rem, 2.2vw, 2rem); }
.auth-side p { color: #b3c0d6; margin-top: 12px; font-size: .95rem; }
.auth-side .checkout-list { margin-top: 22px; }
.auth-side .checkout-list li { color: #c6d1e4; font-size: .9rem; }
.auth-side .checkout-list svg { color: #6ee7c0; }
.auth-form { padding: clamp(24px, 3.4vw, 40px); }
.auth-form h1, .auth-form h2 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); margin-bottom: 6px; }
.divider-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .8rem; margin: 18px 0; }
.divider-or::before, .divider-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* Blog article */
.article-head { padding-bottom: 0; border-bottom: 0; background: linear-gradient(180deg, #FCF9F5, #fff); }
.article-head h1 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); max-width: 22ch; }
.author-line { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-size: .85rem; color: var(--muted); flex-wrap: wrap; }
.author-line .avatar { width: 40px; height: 40px; border-radius: 12px; font-size: .82rem; }
.author-line strong { color: var(--ink); font-weight: 650; display: block; font-size: .9rem; }
.article-body { padding: clamp(34px, 4vw, 56px) 0 clamp(48px, 6vw, 80px); }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(30px, 4vw, 60px); align-items: start; }
.toc {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: #fff;
}
.toc h4 { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { display: grid; gap: 9px; counter-reset: toc; }
.toc a { font-size: .87rem; color: #4B3F3E; display: block; padding-left: 16px; position: relative; }
.toc a::before { content: ''; position: absolute; left: 0; top: .58em; width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.toc a:hover { color: var(--brand); }
.toc a:hover::before { background: var(--brand); }
.toc-cta { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .84rem; }

/* Samples */
.sample-block { border-left: 3px solid var(--brand); padding-left: 18px; font-family: var(--font-display); font-size: 1.02rem; color: #2d3a52; line-height: 1.7; }
.sample-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .8rem; color: var(--muted); margin-top: 14px; }

/* Timeline (how it works) */
.timeline { position: relative; display: grid; gap: 30px; padding-left: 40px; }
.timeline::before { content: ''; position: absolute; left: 13px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--brand), #F2DDD8); }
.tl-item { position: relative; }
.tl-item::before {
  content: '';
  position: absolute; left: -40px; top: 4px;
  width: 28px; height: 28px; border-radius: 50%;
  background: #fff; border: 2px solid var(--brand);
  box-shadow: 0 0 0 5px #fff;
}
.tl-item h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 650; letter-spacing: 0; margin-bottom: 6px; }
.tl-item p { font-size: .94rem; }

/* Compare / check table */
.cmp-table th, .cmp-table td { padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: .9rem; text-align: left; }
.cmp-table thead th { background: var(--bg-soft); font-weight: 650; color: var(--ink); font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; }
.cmp-table td.yes { color: var(--moss); font-weight: 600; }
.cmp-table td.no { color: #b0bccf; }

/* Misc layout */
.grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.card--pad-sm { padding: 20px; }
.card--accent { background: linear-gradient(180deg, #f8faff, #fff); border-color: #F2DDD8; }
.list-plain { display: grid; gap: 10px; font-size: .92rem; }
.list-plain li { display: flex; gap: 10px; align-items: flex-start; }
.list-plain svg { width: 16px; height: 16px; color: var(--brand); flex: none; margin-top: 3px; }
.inline-note { font-size: .82rem; color: var(--muted); }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }

@media (max-width: 980px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { order: 2; }
  .article-grid { grid-template-columns: 1fr; }
  .toc { position: static; order: -1; }
  .grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .grid--5 { grid-template-columns: 1fr; }
  .timeline { padding-left: 32px; }
  .tl-item::before { left: -32px; width: 22px; height: 22px; }
}

/* price table stays usable on small screens (horizontal scroll) */
@media (max-width: 860px) {
  .price-wrap { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .price-table { min-width: 640px; }
  .price-cards { display: none; }
}

/* responsive two-column page layouts (replaces inline grid styles) */
.order-grid { grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); gap: clamp(24px, 3.2vw, 44px); align-items: start; }
.contact-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 3.5vw, 48px); align-items: start; }
.account-grid { grid-template-columns: 280px minmax(0, 1fr); gap: 26px; align-items: start; }
.split-cta { display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center; }
.rating-summary { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 900px) {
  .order-grid, .contact-grid, .account-grid { grid-template-columns: minmax(0, 1fr); }
  .account-grid > aside { position: static !important; }
}
@media (max-width: 720px) {
  .split-cta { grid-template-columns: minmax(0, 1fr); }
  .rating-summary { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .rating-summary .stars { justify-content: center; }
}

/* ---------- 26. Navigation dropdowns (v2) ---------- */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.nav-trigger svg { width: 12px; height: 12px; opacity: .65; transition: transform .2s var(--ease); }
.nav-item:hover .nav-trigger svg,
.nav-item.is-open .nav-trigger svg { transform: rotate(180deg); }
.nav-item.is-open > .nav-trigger { color: var(--brand-deep); background: var(--bg-soft); }

.nav-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: -10px;
  width: 306px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
  z-index: 95;
}
.nav-item:hover .nav-menu,
.nav-item:focus-within .nav-menu,
.nav-item.is-open .nav-menu { opacity: 1; visibility: visible; transform: none; }
.nav-menu a {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
}
.nav-menu a .desc { font-size: .755rem; font-weight: 400; color: var(--muted); }
.nav-menu a:hover { background: var(--bg-soft); color: var(--brand-deep); }
.nav-menu .menu-sep { height: 1px; background: var(--line); margin: 8px 6px; }
.nav-menu .nav-menu-all { font-size: .85rem; font-weight: 600; color: var(--brand-deep); }

/* mobile accordion groups */
.mobile-nav .m-group { border-bottom: 1px solid var(--line); }
.mobile-nav .m-group > summary {
  list-style: none;
  cursor: pointer;
  border-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 4px;
  font-size: 1rem;
  font-weight: 550;
  color: var(--ink);
}
.m-group > summary::-webkit-details-marker { display: none; }
.m-group > summary svg { width: 15px; height: 15px; color: var(--muted); transition: transform .2s var(--ease); }
.m-group[open] > summary svg { transform: rotate(90deg); }
.m-sub {
  display: grid;
  gap: 2px;
  padding: 2px 0 12px 12px;
  margin: 0 0 6px 6px;
  border-left: 2px solid var(--line);
}
.m-sub a { display: block; padding: 8px 10px; border-radius: 8px; font-size: .91rem; color: #4B3F3E; }
.m-sub a:hover { background: var(--bg-soft); color: var(--ink); }
.mobile-nav .m-link.is-active { color: var(--brand-deep); }
.m-note { font-size: .8rem; color: var(--muted); text-align: center; margin-top: 14px; }

/* 24/7 support pill */
.support-fab {
  position: fixed;
  right: 18px;
  bottom: 20px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.support-fab:hover { background: #131c30; color: #fff; transform: translateY(-2px); }
.support-fab svg { width: 16px; height: 16px; color: #D98BA0; }

/* ---------- live support panel ---------- */
.support-fab { position: fixed; }
.support-fab .es-sup-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #D9A03A;
  color: #1b1600;
  font-size: .7rem;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}
/* ---------- proactive prompt above the launcher ---------- */
.es-sup-nudge {
  position: fixed;
  right: 18px;
  bottom: 5.9rem;
  z-index: 81;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 258px;
  padding: 8px 10px 8px 8px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 14px 34px -14px rgba(10, 15, 28, .45), 0 2px 8px rgba(10, 15, 28, .12);
  font-size: .84rem;
  font-weight: 700;
  color: #0f3d2e;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .28s var(--ease), transform .28s var(--ease);
}
.es-sup-nudge.is-on { opacity: 1; transform: translateY(0); pointer-events: auto; }
.es-sup-nudge-ico {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--ink, #1B1315);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.es-sup-nudge-ico svg { width: 15px; height: 15px; color: #D98BA0; }
.es-sup-nudge strong { font-size: .84rem; font-weight: 700; line-height: 1.25; }
.es-sup-nudge-x {
  margin-left: 2px;
  width: 20px;
  height: 20px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: #eef2fa;
  color: #6E5F5C;
  font-size: .66rem;
  line-height: 1;
  cursor: pointer;
}
.es-sup-nudge-x:hover { background: #e2e8f5; color: #1F1719; }
@media (max-width: 640px) {
  .es-sup-nudge { right: 12px; bottom: 5.5rem; max-width: calc(100vw - 96px); }
}

.es-sup {
  position: fixed;
  right: 18px;
  bottom: 78px;
  z-index: 95;
  width: 372px;
  max-width: calc(100vw - 24px);
  height: 520px;
  max-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px -20px rgba(10, 15, 28, .45), 0 2px 8px rgba(10, 15, 28, .12);
  overflow: hidden;
  font-family: var(--font-body, system-ui, sans-serif);
}
.es-sup[hidden] { display: none !important; }
.es-sup-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  background: var(--ink, #1B1315);
  color: #fff;
}
.es-sup-face {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(143, 169, 255, .18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.es-sup-face svg { width: 18px; height: 18px; color: #D98BA0; }
.es-sup-who { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.es-sup-who b { font-size: .92rem; font-weight: 700; }
.es-sup-who i { font-size: .74rem; font-style: normal; color: #B9A79F; }
.es-sup-x {
  margin-left: auto;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.es-sup-x svg { width: 15px; height: 15px; }
.es-sup-x:hover { background: rgba(255, 255, 255, .2); }
.es-sup-views { flex: 1; min-height: 0; display: flex; }
.es-sup-view { flex: 1; min-height: 0; overflow-y: auto; background: #FBF7F1; }
.es-sup-view[hidden] { display: none !important; }
.es-sup-view--chat { display: flex; flex-direction: column; overflow: hidden; background: #FBF7F1; }

/* ---------- home: the support desk card ---------- */
.es-sup-desk {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 15px;
  background: linear-gradient(120deg, #eef4ff 0%, #e7eefc 55%, #dbe7fb 100%);
  border-bottom: 1px solid rgba(13, 25, 64, .07);
}
.es-sup-online {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #22c55e, #16a34a);
}
.es-sup-trio { display: flex; align-items: center; flex: none; }
.es-sup-face-pic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #fff;
  box-shadow: 0 2px 7px rgba(13, 25, 64, .18);
  background: linear-gradient(135deg, #EFD9D2, #B9A79F);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.es-sup-face-pic + .es-sup-face-pic { margin-left: -11px; }
.es-sup-face-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.es-sup-desk-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.es-sup-desk-text b { font-size: .9rem; font-weight: 800; color: #1F1719; }
.es-sup-desk-text i {
  font-style: normal;
  font-size: .76rem;
  font-weight: 600;
  color: #245640;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.es-sup-desk-text i::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .18);
}
.es-sup-hello { padding: 16px 16px 10px; }
.es-sup-wave { font-size: .84rem; color: #6E5F5C; }
.es-sup-hello h3 {
  margin: 2px 0 12px;
  font-size: 1.16rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: #1F1719;
}
.es-sup-cta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  background: #fff;
  border: 1px solid rgba(13, 25, 64, .1);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(13, 25, 64, .1);
  font: inherit;
  font-size: .86rem;
  font-weight: 600;
  color: #1F1719;
  cursor: pointer;
  text-align: left;
}
.es-sup-cta:hover { border-color: #9E1B34; color: #9E1B34; }
.es-sup-cta svg { width: 16px; height: 16px; flex: none; }
.es-sup-faqs { display: flex; flex-direction: column; gap: 1px; padding: 4px 8px 12px; }
.es-sup-faq {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 10px;
  border: 0;
  border-bottom: 1px solid #F7EFE6;
  background: none;
  font: inherit;
  font-size: .84rem;
  font-weight: 600;
  color: #344054;
  text-align: left;
  cursor: pointer;
}
.es-sup-faq:last-child { border-bottom: 0; }
.es-sup-faq:hover { color: #9E1B34; }
.es-sup-faq svg { width: 15px; height: 15px; flex: none; color: #9A8A85; }

/* ---------- messages ---------- */
.es-sup-msghead {
  padding: 13px 16px 8px;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #8C7B76;
}
.es-sup-msgrow {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid #F7EFE6;
  background: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.es-sup-msgrow:hover { background: #f2f6ff; }
.es-sup-msgav {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F8E4E8;
  color: #9E1B34;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.es-sup-msgav svg { width: 17px; height: 17px; }
.es-sup-msgbody { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.es-sup-msgtitle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  font-weight: 700;
  color: #1F1719;
}
.es-sup-msgtitle em {
  font-style: normal;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
}
.es-sup-msgtitle em.is-open { background: #E7F3EC; color: #245640; }
.es-sup-msgtitle em.is-closed { background: #eef1f6; color: #6E5F5C; }
.es-sup-msgsnip {
  font-size: .78rem;
  color: #6E5F5C;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.es-sup-msgtime { font-size: .68rem; color: #9A8A85; flex: none; }
.es-sup-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 40px 22px;
  text-align: center;
  color: #6E5F5C;
  font-size: .82rem;
}
.es-sup-empty b { font-size: .95rem; color: #1F1719; }

/* ---------- chat bar ---------- */
.es-sup-chatbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #fff;
  border-bottom: 1px solid #eef2fa;
  font-size: .78rem;
  font-weight: 700;
  color: #344054;
  flex: none;
}
.es-sup-back {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 8px;
  background: #FDF4F5;
  color: #9E1B34;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.es-sup-back svg { width: 15px; height: 15px; }

/* ---------- bottom nav ---------- */
.es-sup-nav {
  display: flex;
  border-top: 1px solid #eef2fa;
  background: #fff;
  flex: none;
}
.es-sup-nav button {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 0 9px;
  border: 0;
  background: none;
  font: inherit;
  font-size: .72rem;
  font-weight: 600;
  color: #9A8A85;
  cursor: pointer;
}
.es-sup-nav button svg { width: 18px; height: 18px; }
.es-sup-nav button.is-on { color: #9E1B34; }
.es-sup-navdot {
  position: absolute;
  top: 5px;
  right: 50%;
  margin-right: -16px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #D9A03A;
}

.es-sup-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  background: #FBF7F1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.es-sup-row { display: flex; gap: 8px; align-items: flex-end; }
.es-sup-row.is-mine { justify-content: flex-end; }
.es-sup-av {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  background: #EFE5D9;
}
.es-sup-av--bot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9E1B34;
}
.es-sup-av--bot svg { width: 14px; height: 14px; }
.es-sup-bub {
  max-width: 78%;
  padding: 9px 12px 7px;
  border-radius: 14px 14px 14px 4px;
  background: #fff;
  border: 1px solid #EFE5D9;
  font-size: .88rem;
  line-height: 1.5;
  color: #1F1719;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.es-sup-bub.is-mine {
  background: var(--ink, #1B1315);
  color: #fff;
  border-color: transparent;
  border-radius: 14px 14px 4px 14px;
}
.es-sup-name { font-size: .72rem; font-weight: 700; color: #9E1B34; }
.es-sup-text { white-space: pre-wrap; word-break: break-word; }
.es-sup-time { font-size: .66rem; color: #93a0b8; align-self: flex-end; }
.es-sup-bub.is-mine .es-sup-time { color: rgba(255, 255, 255, .6); }
.es-sup-note {
  align-self: center;
  font-size: .74rem;
  font-weight: 600;
  color: #245640;
  background: #E7F3EC;
  border: 1px solid #bfe9d9;
  border-radius: 999px;
  padding: 5px 12px;
  text-align: center;
}
.es-sup-dots { display: inline-flex; gap: 4px; padding: 3px 2px; }
.es-sup-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #B9A79F;
  animation: esSupDot 1.1s infinite ease-in-out;
}
.es-sup-dots i:nth-child(2) { animation-delay: .16s; }
.es-sup-dots i:nth-child(3) { animation-delay: .32s; }
@keyframes esSupDot {
  0%, 60%, 100% { opacity: .35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-2px); }
}
.es-sup-closed {
  align-self: center;
  text-align: center;
  font-size: .78rem;
  color: #475467;
  background: #fff;
  border: 1px solid #EFE5D9;
  border-radius: 12px;
  padding: 10px 12px;
}
.es-sup-closed b { display: block; margin-bottom: 2px; color: #1F1719; }
.es-sup-closed button {
  margin-top: 8px;
  border: 0;
  border-radius: 8px;
  padding: 7px 12px;
  background: #D9A03A;
  color: #1b1600;
  font-weight: 700;
  font-size: .78rem;
  cursor: pointer;
}
.es-sup-chips {
  display: flex;
  gap: 6px;
  padding: 8px 12px 0;
  flex-wrap: wrap;
  background: #fff;
}
.es-sup-chip {
  border: 1px solid #EFD9D2;
  background: #FDF4F5;
  color: #9E1B34;
  font-size: .76rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 5px 11px;
  cursor: pointer;
}
.es-sup-chip:hover { background: #F8E4E8; }
.es-sup-compose {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 12px 12px;
  background: #fff;
  border-top: 1px solid #eef2fa;
}
.es-sup-compose textarea {
  flex: 1;
  resize: none;
  border: 1px solid #d9e1f2;
  border-radius: 12px;
  padding: 9px 11px;
  font: inherit;
  font-size: .86rem;
  line-height: 1.45;
  max-height: 110px;
  outline: none;
}
.es-sup-compose textarea:focus { border-color: #9E1B34; box-shadow: 0 0 0 3px rgba(47, 91, 255, .14); }
.es-sup-compose button {
  width: 38px;
  height: 38px;
  flex: none;
  border: 0;
  border-radius: 11px;
  background: var(--ink, #1B1315);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.es-sup-compose button svg { width: 17px; height: 17px; }
@media (max-width: 640px) {
  .es-sup {
    right: 8px;
    left: 8px;
    bottom: 72px;
    width: auto;
    height: calc(100vh - 96px);
    max-height: none;
    border-radius: 14px;
  }
}
.footer-hours { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: .84rem; color: #8C7B76; }
.footer-hours svg { width: 15px; height: 15px; color: #6ee7c0; flex: none; }

/* ---------- 27. Subjects page ---------- */
.subj-search { position: relative; max-width: 540px; margin: 0 auto 14px; }
.subj-search .input { height: 52px; border-radius: 999px; padding-left: 44px; font-size: 1rem; }
.subj-search svg {
  position: absolute; left: 17px; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px; color: var(--muted);
}
.subj-count { text-align: center; font-size: .85rem; color: var(--muted); margin-bottom: 30px; }
.subj-group { margin-bottom: 30px; scroll-margin-top: calc(var(--header-h) + 20px); }
.subj-group h2 { font-size: 1.2rem; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.subj-group h2 .n {
  font-family: var(--font-body); font-size: .7rem; font-weight: 700; letter-spacing: .05em;
  color: var(--brand-deep); background: var(--brand-soft); padding: 3px 9px; border-radius: 999px;
}
.subj-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 2px 20px; }
.subj-list li {
  font-size: .9rem; color: #4B3F3E; padding: 7px 0 7px 18px;
  position: relative; border-bottom: 1px dashed #eef1f7;
}
.subj-list li::before {
  content: ''; position: absolute; left: 2px; top: .78em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--brand); opacity: .5;
}
.subj-empty { display: none; text-align: center; padding: 40px 20px; color: var(--muted); }

@media (max-width: 1240px) {
  .nav { gap: 0; margin-left: 6px; }
  .nav-link { padding: 8px 9px; font-size: .88rem; }
  .brand-sub { display: none; }
}
@media (max-width: 720px) {
  .support-fab { right: 14px; left: auto; bottom: 14px; padding: 12px; border-radius: 50%; }
  .support-fab span { display: none; }
  .to-top { right: 14px; bottom: 72px; }
}

/* small-phone header fit (no horizontal overflow at 360–420px) */
@media (max-width: 520px) {
  .container { padding-inline: 16px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
  .brand-name { font-size: 1.02rem; }
  .brand { gap: 9px; }
  .header-actions { gap: 8px; }
  .header-actions .btn { padding: 9px 12px; font-size: .84rem; }
  .header-actions .btn svg { display: none; }
  .nav-toggle { width: 40px; height: 40px; }
}

/* 320px phones: tighten the header so the actions never push past the edge */
@media (max-width: 360px) {
  .container { padding-inline: 14px; }
  .brand-mark { width: 30px; height: 30px; border-radius: 9px; }
  .brand-name { font-size: .94rem; }
  .brand { gap: 7px; }
  .header-actions { gap: 6px; }
  .header-actions .btn { padding: 8px 10px; font-size: .8rem; }
  .nav-toggle { width: 36px; height: 36px; }
}

/* ---------- 27. Account area + auth extras ---------- */
.account-side { position: sticky; top: calc(var(--header-h) + 20px); }
.account-nav { display: grid; gap: 2px; margin-top: 4px; }
.account-nav a { display: block; padding: 9px 10px; border-radius: 9px; font-size: .9rem; font-weight: 550; color: #4B3F3E; }
.account-nav a:hover { background: var(--bg-soft); color: var(--ink); }
.account-nav a.is-current { background: var(--brand-soft); color: var(--brand-deep); font-weight: 650; }
.acct-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px;
  margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--line);
}
.acct-facts dt { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.acct-facts dd { margin: 4px 0 0; font-size: .95rem; font-weight: 600; color: var(--ink); word-break: break-word; }
.pill--ok { background: var(--moss-soft); color: #0a7a5a; border-color: #bfe8d8; }
.auth-gate { max-width: 560px; margin: 0 auto; text-align: center; padding: clamp(28px, 4vw, 44px); }
.gate-icon { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--brand-soft); color: var(--brand-deep); margin-bottom: 16px; }
.gate-icon svg { width: 24px; height: 24px; }
.auth-reset summary { cursor: pointer; color: var(--brand-deep); font-weight: 600; list-style: none; }
.auth-reset summary::-webkit-details-marker { display: none; }
.auth-reset summary::after { content: ' +'; font-weight: 700; }
.auth-reset[open] summary::after { content: ' \2212'; }
.auth-reset[open] summary { margin-bottom: 4px; }
@media (max-width: 900px) { .account-side { position: static; } }

/* ==========================================================================
   PapersOwl.online — brand and small-screen overrides
   ========================================================================== */

/* the badge is a circle, so the glow must be circular too */
.brand-mark { border-radius: 50%; box-shadow: 0 6px 16px -9px rgba(158, 27, 52, .55); }

/* icon lists used across service, essay-type and subject pages */
.tick-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: .9rem; line-height: 1.6; }
.tick-list li { display: flex; align-items: flex-start; gap: 10px; }
.tick-list li svg { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--brand); }

/* grid and flex children must be allowed to shrink below their content,
   otherwise one long label or icon widens a whole column on mobile */
.split > *, .grid > *, .stack > * { min-width: 0; }
.prose, .card, .article-body { overflow-wrap: break-word; }

@media (max-width: 560px) {
  .btn { white-space: normal; text-align: center; line-height: 1.25; }
  .btn--block { width: 100%; }
  .hero-badges { gap: 10px 16px; }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
