/* ==========================================================================
   GoodLift — shared stylesheet
   Brand: black/near-black surfaces, white text, cool-grey secondary text,
   blue (#40C4FF) + cyan (#0CC0DF, the logo cyan) accents, restrained green.
   ========================================================================== */

:root {
  /* Surfaces */
  --bg: #050607;
  --surface: #101315;
  --surface-2: #1b2023;
  --surface-3: #232a2e;

  /* Accents */
  --blue: #40c4ff;
  --cyan: #0cc0df;        /* sampled from the GoodLift logo */
  --green: #66bb6a;

  /* Text */
  --text: #f5f7f8;
  --text-dim: #aab2b7;
  --text-faint: #7e878c;

  /* Lines & glows */
  --border: rgba(120, 170, 200, 0.14);
  --border-strong: rgba(120, 170, 200, 0.26);
  --glow-blue: rgba(64, 196, 255, 0.18);
  --glow-cyan: rgba(12, 192, 223, 0.16);

  /* Layout */
  --maxw: 1140px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --radius: 14px;
  --radius-lg: 22px;

  /* Type */
  --font-head: "Monda", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji", sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ----- Reset / base --------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin: 0 0 0.6em;
  color: var(--text);
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.3rem;
}

li {
  margin: 0.3rem 0;
}

strong {
  color: var(--text);
  font-weight: 700;
}

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

/* ----- Utility / layout ---------------------------------------------- */

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

.section {
  padding-block: clamp(3.25rem, 8vw, 6rem);
}

.section--tight {
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.9rem;
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}

.section-head h2 {
  font-size: clamp(1.75rem, 4.4vw, 2.6rem);
}

.section-head p {
  color: var(--text-dim);
  font-size: 1.075rem;
  margin-bottom: 0;
}

.lead {
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  color: var(--text-dim);
}

.text-cyan { color: var(--cyan); }
.text-blue { color: var(--blue); }
.text-green { color: var(--green); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--blue);
  color: #00131c;
  font-weight: 700;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  transition: top 0.18s var(--ease);
}

.skip-link:focus {
  top: 1rem;
  text-decoration: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ----- Buttons -------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  padding: 0.85rem 1.4rem;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s var(--ease), background 0.16s var(--ease),
    border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
  text-align: center;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #001016;
  box-shadow: 0 8px 26px -10px var(--glow-blue);
}

.btn--primary:hover {
  box-shadow: 0 14px 34px -10px var(--glow-blue);
}

.btn--ghost {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn--ghost:hover {
  border-color: var(--blue);
  background: var(--surface-3);
}

.btn .store-sub {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 0.8;
  line-height: 1;
  margin-bottom: 2px;
  text-align: left;
}

.btn .store-name {
  display: block;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1;
  text-align: left;
}

.btn svg {
  flex: none;
  width: 22px;
  height: 22px;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ----- Header / nav --------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 6, 7, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: 0.04em;
  color: var(--text);
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
}

.brand .brand-good { color: var(--text); }
.brand .brand-lift { color: var(--cyan); }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.primary-nav a.nav-link {
  color: var(--text-dim);
  font-size: 0.96rem;
  font-weight: 500;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
}

.primary-nav a.nav-link:hover,
.primary-nav a.nav-link:focus-visible {
  color: var(--text);
  text-decoration: none;
  background: var(--surface-2);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.header-cta .btn {
  padding: 0.6rem 1.05rem;
  min-height: 42px;
  font-size: 0.95rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  cursor: pointer;
  color: var(--text);
}

.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Mobile nav panel */
@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }

  .nav-wrap {
    position: fixed;
    inset: 68px 0 auto 0;
    background: rgba(7, 9, 10, 0.98);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease),
      visibility 0.2s;
    display: flex;
  }

  .nav-wrap.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .primary-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0.1rem;
  }

  .primary-nav a.nav-link {
    padding: 0.85rem 0.6rem;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }

  .header-cta {
    margin-top: 1rem;
    flex-direction: column;
    align-items: stretch;
  }

  .header-cta .btn {
    width: 100%;
    min-height: 50px;
    font-size: 1rem;
  }
}

@media (min-width: 881px) {
  .nav-wrap {
    display: flex;
    align-items: center;
    gap: 1.4rem;
  }
}

/* ----- Hero ----------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(2.75rem, 7vw, 5.5rem);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 78% 12%, var(--glow-blue), transparent 70%),
    radial-gradient(46% 44% at 8% 90%, var(--glow-cyan), transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero__copy h1 {
  font-size: clamp(2.1rem, 6vw, 3.5rem);
  line-height: 1.06;
  margin-bottom: 1.1rem;
}

.hero__copy h1 .line { display: block; }
.hero__copy h1 .accent { color: var(--cyan); }

.hero__sub {
  font-size: clamp(1.05rem, 2.4vw, 1.22rem);
  color: var(--text-dim);
  max-width: 34rem;
  margin-bottom: 1.6rem;
}

.hero__meta {
  margin-top: 1.25rem;
  color: var(--text-faint);
  font-size: 0.92rem;
}

.hero__meta strong { color: var(--text); }

/* Phone composition */
.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
  min-height: 1px;
}

.phone {
  position: relative;
  border-radius: 30px;
  background: linear-gradient(160deg, #2a3237, #0c0f11);
  padding: 9px;
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 70px -28px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.phone::after {
  /* speaker / camera notch hint */
  content: "";
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 54px;
  height: 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.16);
  z-index: 2;
}

.phone img,
.phone video {
  border-radius: 22px;
  object-fit: contain;
  background: #000;
  width: 100%;
  height: auto;
  display: block;
}

.phone--primary {
  width: clamp(210px, 60%, 280px);
  z-index: 2;
}

.phone--secondary {
  width: clamp(150px, 42%, 215px);
  margin-left: -14%;
  margin-bottom: 8%;
  z-index: 1;
  opacity: 0.97;
}

@media (max-width: 880px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .phone-stage {
    margin-top: 0.5rem;
    justify-content: center;
  }
  .phone--primary { width: clamp(190px, 54vw, 250px); }
  .phone--secondary { width: clamp(130px, 38vw, 180px); }
}

@media (max-width: 420px) {
  .phone--secondary { display: none; }
  .phone--primary { width: min(70vw, 250px); }
}

/* ----- Plan / Record / Progress triad -------------------------------- */

.triad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  counter-reset: step;
}

.triad__card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem;
  overflow: hidden;
}

.triad__card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  opacity: 0.85;
}

.triad__num {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--cyan);
  text-transform: uppercase;
}

.triad__card h3 {
  font-size: 1.45rem;
  margin: 0.5rem 0 0.6rem;
}

.triad__card p {
  color: var(--text-dim);
  font-size: 1rem;
  margin: 0;
}

.triad__card .arrow {
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--border-strong);
}

@media (max-width: 760px) {
  .triad { grid-template-columns: 1fr; }
}

/* ----- Showcase (alternating screenshot rows) ------------------------ */

.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.75rem, 5vw, 4rem);
  align-items: center;
}

.showcase-row + .showcase-row {
  margin-top: clamp(3rem, 7vw, 5.5rem);
}

.showcase-row:nth-child(even) .showcase-row__media {
  order: -1;
}

.showcase-row__media {
  display: flex;
  justify-content: center;
}

.showcase-row__media .phone {
  width: clamp(200px, 58%, 270px);
}

.showcase-row h3 {
  font-size: clamp(1.5rem, 3.6vw, 2.05rem);
}

.showcase-row p {
  color: var(--text-dim);
  font-size: 1.08rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
}

.chip .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
}

.chip.is-green .dot { background: var(--green); }

@media (max-width: 760px) {
  .showcase-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .showcase-row:nth-child(even) .showcase-row__media {
    order: 0;
  }
  .showcase-row__media .phone { width: clamp(190px, 56vw, 240px); }
}

/* ----- Feature grid --------------------------------------------------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.feature:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.feature__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(64, 196, 255, 0.1);
  border: 1px solid var(--border);
  color: var(--cyan);
  margin-bottom: 0.9rem;
}

.feature__icon svg { width: 22px; height: 22px; }

.feature h3 {
  font-size: 1.12rem;
  margin-bottom: 0.35rem;
}

.feature p {
  color: var(--text-dim);
  font-size: 0.97rem;
  margin: 0;
}

@media (max-width: 860px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 540px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* ----- Split / emphasis panel ---------------------------------------- */

.panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.75rem, 5vw, 3.5rem);
  align-items: center;
  background: linear-gradient(160deg, var(--surface), #0a0d0f);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 3rem);
}

.panel__media { display: flex; justify-content: center; }
.panel__media .phone { width: clamp(190px, 52%, 250px); }

@media (max-width: 760px) {
  .panel { grid-template-columns: 1fr; }
}

/* ----- Audience ------------------------------------------------------- */

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.audience {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
}

.audience h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.audience p {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin: 0;
}

@media (max-width: 860px) { .audience-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .audience-grid { grid-template-columns: 1fr; } }

/* ----- Pricing -------------------------------------------------------- */

.pricing-wrap {
  display: flex;
  justify-content: center;
}

.price-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: linear-gradient(165deg, var(--surface), #0a0d0f);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(1.9rem, 4vw, 2.75rem);
  box-shadow: 0 30px 70px -40px var(--glow-blue);
  overflow: hidden;
}

.price-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.price-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

.price-card .amount {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0.6rem 0 0.3rem;
}

.price-card .amount .value {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 8vw, 3.4rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.price-card .amount .per {
  color: var(--text-dim);
  font-size: 1.05rem;
}

.price-card .price-note {
  color: var(--text-faint);
  font-size: 0.9rem;
  margin-bottom: 1.4rem;
}

.price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.6rem;
  display: grid;
  gap: 0.65rem;
}

.price-list li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--text);
  font-size: 0.99rem;
}

.price-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(102, 187, 106, 0.16);
  border: 1px solid rgba(102, 187, 106, 0.5);
}

.price-list li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.52em;
  width: 5px;
  height: 9px;
  border: solid var(--green);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.price-fine {
  color: var(--text-faint);
  font-size: 0.85rem;
  margin: 1.2rem 0 0;
}

/* ----- FAQ / accordion ----------------------------------------------- */

.faq {
  max-width: 800px;
  margin-inline: auto;
}

.accordion {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.accordion__header {
  margin: 0;
}

.accordion__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 1.15rem 1.3rem;
  cursor: pointer;
  min-height: 56px;
}

.accordion__btn:hover { color: var(--blue); }

.accordion__icon {
  flex: none;
  width: 22px;
  height: 22px;
  position: relative;
  transition: transform 0.22s var(--ease);
  color: var(--cyan);
}

.accordion__btn[aria-expanded="true"] .accordion__icon {
  transform: rotate(45deg);
}

.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.26s var(--ease);
}

.accordion__panel[hidden] {
  display: grid; /* keep grid so animation works; visually collapsed */
}

.accordion__panel:not([hidden]) {
  grid-template-rows: 1fr;
}

.accordion__panel-inner {
  overflow: hidden;
}

.accordion__panel p {
  margin: 0 1.3rem 1.25rem;
  color: var(--text-dim);
  font-size: 1rem;
}

/* ----- Final CTA ------------------------------------------------------ */

.final-cta {
  position: relative;
  text-align: center;
  background:
    radial-gradient(60% 120% at 50% 0%, var(--glow-blue), transparent 65%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 3rem);
}

.final-cta h2 {
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  margin-bottom: 0.4rem;
}

.final-cta h2 .accent { color: var(--cyan); }

.final-cta p {
  color: var(--text-dim);
  max-width: 38rem;
  margin: 0 auto 1.8rem;
  font-size: 1.1rem;
}

.final-cta .store-buttons { justify-content: center; }

/* ----- Footer --------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: #040506;
  padding-block: clamp(2.5rem, 6vw, 3.5rem);
  margin-top: clamp(3rem, 8vw, 5rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand .brand { margin-bottom: 0.9rem; }

.footer-brand p {
  color: var(--text-faint);
  font-size: 0.95rem;
  max-width: 26rem;
}

.footer-col h4 {
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.9rem;
}

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

.footer-col li { margin: 0.45rem 0; }

.footer-col a {
  color: var(--text-dim);
  font-size: 0.96rem;
}

.footer-col a:hover { color: var(--text); text-decoration: none; }

.footer-bottom {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  color: var(--text-faint);
  font-size: 0.88rem;
}

.footer-bottom .attribution {
  color: var(--text-dim);
}

.footer-bottom .attribution a {
  color: var(--text);
  font-weight: 600;
  border-bottom: 1px solid var(--border-strong);
}

.footer-bottom .attribution a:hover {
  color: var(--cyan);
  text-decoration: none;
  border-color: var(--cyan);
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 460px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ----- Article / legal pages ----------------------------------------- */

.page-hero {
  position: relative;
  padding-block: clamp(2.5rem, 6vw, 4rem);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 80% at 80% 0%, var(--glow-blue), transparent 70%);
  pointer-events: none;
}

.page-hero .container { position: relative; }

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: var(--text-dim);
  max-width: 42rem;
  margin: 0;
}

.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--text-faint);
}

.breadcrumb li { margin: 0; }
.breadcrumb a { color: var(--text-dim); }
.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.4rem;
  color: var(--text-faint);
}

.prose {
  max-width: 760px;
}

.prose h2 {
  font-size: clamp(1.4rem, 3.4vw, 1.85rem);
  margin-top: 2.5rem;
  padding-top: 0.5rem;
}

.prose h2:first-child { margin-top: 0; }

.prose h3 {
  font-size: 1.2rem;
  margin-top: 1.8rem;
}

.prose p,
.prose li {
  color: var(--text-dim);
}

.prose strong { color: var(--text); }

.prose a {
  border-bottom: 1px solid var(--border-strong);
}

.prose a:hover { text-decoration: none; border-color: var(--cyan); }

.updated {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--text-faint);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  margin-bottom: 1.5rem;
}

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  margin-bottom: 2.5rem;
}

.toc h2 {
  font-size: 0.78rem !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 0.75rem !important;
  padding: 0 !important;
}

.toc ul { columns: 2; column-gap: 1.5rem; margin: 0; padding-left: 1.1rem; }
.toc li { color: var(--text-dim); }

@media (max-width: 560px) { .toc ul { columns: 1; } }

/* Callout / note boxes */
.note {
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  margin: 1.5rem 0;
}

.note p:last-child { margin-bottom: 0; }
.note--warn { border-left-color: #ffb74d; }
.note--warn strong { color: #ffcc80; }

.note__title {
  display: block;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.3rem;
}

/* Help/support steps */
.steps {
  counter-reset: stepnum;
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
}

.steps li {
  position: relative;
  padding: 0.2rem 0 0.2rem 2.6rem;
  margin: 0.85rem 0;
  color: var(--text-dim);
}

.steps li::before {
  counter-increment: stepnum;
  content: counter(stepnum);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  color: #001016;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 50%;
}

/* Support contact card */
.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(160deg, var(--surface), #0a0d0f);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.8rem;
  margin: 1.5rem 0;
}

.contact-card h3 { margin: 0 0 0.2rem; font-size: 1.2rem; }
.contact-card p { margin: 0; color: var(--text-dim); }

.contact-card__email { margin-top: 0.55rem !important; font-weight: 600; }

.contact-card__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
}

.contact-card__actions .btn--copy {
  min-height: 42px;
  padding: 0.55rem 1.1rem;
  font-size: 0.92rem;
}

/* 404 */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem var(--gutter);
}

.error-page .code {
  font-family: var(--font-head);
  font-size: clamp(4rem, 18vw, 9rem);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
}

.error-page h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); }

.error-page p { color: var(--text-dim); max-width: 32rem; margin: 0 auto 1.6rem; }

.error-page .store-buttons,
.error-page .btn-row { justify-content: center; display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* ----- Scroll reveal animation --------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Respect reduced motion everywhere */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .btn:hover,
  .feature:hover { transform: none; }
}
