/* =========================================================
   CoinSafe styles.css

   Mobile-first: the base styles are for small screens.
   Media queries with (min-width: ...) add layout for
   bigger screens.
   ========================================================= */


/* ---------------------------------------------------------
   1. Design tokens (CSS variables)
   Change a value here and it updates everywhere.
   --------------------------------------------------------- */
:root {
  /* Brand colors that never change between light/dark mode */
  --color-brand: #15803d;          /* logo, icon badges, user chat bubbles */
  --color-icon-muted: #64748b;     /* "coming soon" icons */

  /* Light mode (default) */
  --color-primary: #15803d;        /* buttons, links, accents */
  --color-primary-hover: #166534;
  --color-on-primary: #ffffff;     /* text placed on top of --color-primary */
  --color-primary-soft: #dcfce7;   /* light green backgrounds */
  --color-bg: #ffffff;
  --color-surface: #f4f7f5;        /* alternate sections */
  --color-surface-raised: #ffffff; /* cards */
  --color-text: #0f1f17;
  --color-muted: #4b5a52;
  --color-border: #dfe7e2;
  --color-input-border: #7c8b83;
  --color-error: #b91c1c;
  --chat-bg: #e8efea;

  --shadow-sm: 0 1px 2px rgb(15 31 23 / 0.06);
  --shadow: 0 8px 24px rgb(15 31 23 / 0.08);
  --shadow-lg: 0 24px 48px -12px rgb(15 31 23 / 0.22);

  /* Spacing scale (1rem = 16px) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 6rem;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-full: 999px;

  --container: 1120px;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --transition: 200ms ease;
}

/* Dark mode: follows the user's operating system setting.
   We only redefine the variables, and every rule that uses them
   updates automatically. */
@media (prefers-color-scheme: dark) {
  :root {
    --color-primary: #4ade80;
    --color-primary-hover: #86efac;
    --color-on-primary: #052e16;
    --color-primary-soft: #133524;
    --color-bg: #0b1310;
    --color-surface: #111c17;
    --color-surface-raised: #16241e;
    --color-text: #e8f0eb;
    --color-muted: #a6b8ae;
    --color-border: #24352d;
    --color-input-border: #5f7268;
    --color-error: #f87171;
    --chat-bg: #0e1814;

    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.3);
    --shadow: 0 8px 24px rgb(0 0 0 / 0.35);
    --shadow-lg: 0 24px 48px -12px rgb(0 0 0 / 0.6);
  }
}


/* ---------------------------------------------------------
   2. Reset & base
   --------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box; /* padding/border are included in width */
}

* {
  margin: 0;
}

/* Smooth scrolling for menu links: only if the user is OK with motion */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--color-primary);
}

a:hover {
  color: var(--color-primary-hover);
}

button,
input {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

/* A clear focus ring, shown only when navigating with the keyboard */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

/* Stops the sticky header from covering section titles after a menu click */
[id] {
  scroll-margin-top: 80px;
}


/* ---------------------------------------------------------
   3. Reusable pieces (utilities & components)
   --------------------------------------------------------- */

/* Centers content and keeps a 1rem gap from the screen edges */
.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* Hidden on screen, but still read by screen readers */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--color-brand);
  color: #fff;
  font-weight: 600;
}

.skip-link:focus {
  top: var(--space-4);
  color: #fff;
}

/* Sections */
.section {
  padding-block: var(--space-8);
}

.section--alt {
  background: var(--color-surface);
}

.section-header {
  max-width: 640px;
  margin: 0 auto var(--space-7);
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: var(--space-2);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
}

/* clamp(min, preferred, max): font grows with the screen, within limits */
.section-title {
  font-size: clamp(1.75rem, 1.2rem + 2.5vw, 2.5rem);
}

.section-subtitle {
  margin-top: var(--space-3);
  font-size: 1.0625rem;
  color: var(--color-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px; /* big enough to tap with a thumb */
  padding: var(--space-3) var(--space-5);
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition),
              color var(--transition), transform var(--transition);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
}

.btn--primary:hover {
  background: var(--color-primary-hover);
  color: var(--color-on-primary);
}

.btn--secondary {
  background: transparent;
  border-color: var(--color-input-border);
  color: var(--color-text);
}

.btn--secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn--lg {
  min-height: 56px;
  padding-inline: var(--space-6);
  font-size: 1.0625rem;
}

.btn--block {
  width: 100%;
}

/* Green square that holds a white icon */
.icon-badge {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--color-brand);
}

.icon-badge img {
  width: 24px;
  height: 24px;
}

.icon-badge--lg {
  width: 56px;
  height: 56px;
}

.icon-badge--lg img {
  width: 28px;
  height: 28px;
}

/* Cards */
.card {
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface-raised);
  box-shadow: var(--shadow-sm);
}

.card h3 {
  font-size: 1.1875rem;
}

.card p {
  margin-top: var(--space-2);
  color: var(--color-muted);
}


/* ---------------------------------------------------------
   4. Header
   --------------------------------------------------------- */
.site-header {
  position: sticky; /* stays at the top while scrolling */
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg); /* fallback for older browsers */
  background: color-mix(in srgb, var(--color-bg) 90%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  min-height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
  text-decoration: none;
}

.logo:hover {
  color: var(--color-text);
}

/* The logo image is a round badge on a black square:
   border-radius: 50% trims the black corners */
.logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.logo-accent {
  color: var(--color-primary);
}

/* Hamburger: hidden unless JavaScript is running (class "js" on <html>) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
}

.js .nav-toggle {
  display: inline-flex;
}

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--color-text);
  transition: transform var(--transition), opacity var(--transition);
}

/* When open, the 3 bars turn into an "X" */
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Without JS the links simply wrap below the logo */
.site-nav {
  width: 100%;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  padding-bottom: var(--space-2);
}

/* With JS (mobile): the menu becomes a dropdown, hidden until opened */
.js .site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: var(--space-3) var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
  box-shadow: var(--shadow);
}

.js .site-nav.is-open {
  display: block;
}

.js .nav-list {
  flex-direction: column;
  padding: 0;
}

.nav-link {
  display: block;
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
}

.nav-link:hover {
  background: var(--color-surface);
  color: var(--color-primary);
}

.nav-cta {
  margin-top: var(--space-2);
}

.nav-cta .btn {
  width: 100%;
}

/* Desktop: menu always visible, in a row */
@media (min-width: 900px) {
  .header-inner {
    flex-wrap: nowrap;
  }

  .js .nav-toggle {
    display: none;
  }

  .site-nav,
  .js .site-nav {
    display: block;
    position: static;
    width: auto;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
  }

  .nav-list,
  .js .nav-list {
    flex-direction: row;
    align-items: center;
    padding: 0;
  }

  .nav-link {
    padding: var(--space-2) var(--space-3);
  }

  .nav-cta {
    margin: 0 0 0 var(--space-3);
  }

  .nav-cta .btn {
    width: auto;
    min-height: 44px;
  }
}


/* ---------------------------------------------------------
   5. Hero
   --------------------------------------------------------- */
.hero {
  overflow: hidden;
  padding-block: var(--space-8) var(--space-9);
  /* soft green glow behind the content */
  background:
    radial-gradient(ellipse 80% 60% at 75% 0%, var(--color-primary-soft), transparent 70%),
    var(--color-bg);
}

.hero-inner {
  display: grid;
  align-items: center;
  gap: var(--space-7);
}

.hero-title {
  font-size: clamp(2.25rem, 1.4rem + 4.2vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.text-accent {
  color: var(--color-primary);
}

.hero-subtitle {
  max-width: 36rem;
  margin-top: var(--space-5);
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  color: var(--color-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.hero-actions .btn {
  flex: 1 1 auto; /* full-width buttons on small screens */
}

.hero-note {
  margin-top: var(--space-4);
  font-size: 0.9375rem;
  color: var(--color-muted);
}

/* The "daily summary" preview card */
.summary-card {
  max-width: 360px;
  margin-inline: auto;
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface-raised);
  box-shadow: var(--shadow-lg);
  transform: rotate(2deg);
}

.summary-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-muted);
}

.summary-card__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-primary-soft);
}

.summary-card__label {
  margin-top: var(--space-5);
  font-size: 0.875rem;
  color: var(--color-muted);
}

.summary-card__value {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.progress {
  height: 10px;
  margin-top: var(--space-3);
  overflow: hidden;
  border-radius: var(--radius-full);
  background: var(--color-border);
}

.progress__bar {
  width: var(--value, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--color-primary);
}

.summary-card__meta {
  margin-top: var(--space-2);
  font-size: 0.875rem;
  color: var(--color-muted);
}

.summary-card__list {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  font-size: 0.9375rem;
}

.summary-card__list li {
  display: flex;
  justify-content: space-between;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .hero-actions .btn {
    flex: 0 0 auto;
  }
}


/* ---------------------------------------------------------
   6. How it works
   --------------------------------------------------------- */
.steps {
  display: grid;
  gap: var(--space-5);
}

.step__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
}

.step__number {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  background: var(--color-primary-soft);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-primary);
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* ---------------------------------------------------------
   7. Demo: phone mockup
   --------------------------------------------------------- */
.demo-inner {
  display: grid;
  align-items: center;
  gap: var(--space-7);
}

.checklist {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.checklist li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 500;
}

/* The green check circle is a pseudo-element using check.svg */
.checklist li::before {
  content: "";
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-brand) url("assets/icons/check.svg") center / 14px no-repeat;
}

.phone {
  position: relative;
  width: min(100%, 340px);
  margin-inline: auto;
  padding: 10px;
  border-radius: 44px;
  background: #0d1512;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #26332d;
}

/* The camera "notch" */
.phone::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  z-index: 1;
  width: 90px;
  height: 24px;
  border-radius: var(--radius-full);
  background: #0d1512;
  transform: translateX(-50%);
}

.phone__screen {
  display: flex;
  flex-direction: column;
  min-height: 580px;
  overflow: hidden;
  border-radius: 34px;
  background: var(--chat-bg);
}

.chat-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 2.75rem var(--space-4) var(--space-3);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface-raised);
}

.chat-header__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.chat-header__name {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
}

.chat-header__status {
  font-size: 0.75rem;
  color: var(--color-muted);
}

.chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-3);
}

.msg {
  max-width: 85%;
  padding: var(--space-2) var(--space-3);
  border-radius: 16px;
  font-size: 0.875rem;
  line-height: 1.45;
  box-shadow: var(--shadow-sm);
}

/* align-self pushes each bubble left (bot) or right (user) */
.msg--user {
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  background: var(--color-brand);
  color: #fff;
}

.msg--bot {
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  background: var(--color-surface-raised);
}

.msg__time {
  display: block;
  margin-top: 2px;
  font-size: 0.6875rem;
  text-align: right;
  color: var(--color-muted);
}

.msg--user .msg__time {
  color: #dcfce7;
}

.chat-input {
  display: flex;
  align-items: center;
  margin: var(--space-3);
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-surface-raised);
  font-size: 0.875rem;
  color: var(--color-muted);
}

.chat-input__send {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--color-brand);
}

@media (min-width: 900px) {
  .demo-inner {
    grid-template-columns: 1fr 1fr;
  }
}


/* ---------------------------------------------------------
   8. Choose your app
   --------------------------------------------------------- */
.apps-grid {
  display: grid;
  gap: var(--space-5);
}

.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface-raised);
}

.app-card h3 {
  font-size: 1.25rem;
}

.app-card p {
  flex-grow: 1; /* pushes the button to the bottom so all cards line up */
  color: var(--color-muted);
}

.app-card .btn {
  margin-top: var(--space-3);
}

.app-card--active {
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow);
}

/* "Faded" look for coming-soon cards. We don't use opacity on the
   whole card, because that would make the text hard to read. */
.app-card--soon {
  border-style: dashed;
  background: var(--color-surface);
}

.app-card--soon .icon-badge {
  background: var(--color-icon-muted);
}

.app-card--soon h3 {
  color: var(--color-muted);
}

.badge {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  padding: var(--space-1) 0.625rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge--live {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.badge--soon {
  background: var(--color-border);
  color: var(--color-muted);
}

@media (min-width: 640px) {
  .apps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .apps-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}


/* ---------------------------------------------------------
   9. Waitlist dialog & form
   --------------------------------------------------------- */
.dialog {
  width: min(100% - 2rem, 440px);
  max-height: calc(100% - 2rem);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--color-surface-raised);
  color: var(--color-text);
  box-shadow: var(--shadow-lg);
}

.dialog::backdrop {
  background: rgb(5 20 13 / 0.6);
}

.dialog__content {
  position: relative;
  padding: var(--space-6);
}

.dialog__close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
}

.dialog__close:hover {
  background: var(--color-surface);
  color: var(--color-text);
}

.dialog h2 {
  padding-right: var(--space-7);
  font-size: 1.5rem;
}

.dialog__text {
  margin-top: var(--space-2);
  color: var(--color-muted);
}

.waitlist-form {
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-5);
}

.field__label {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: 600;
}

.input {
  width: 100%;
  min-height: 48px;
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--color-input-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
}

.input::placeholder {
  color: var(--color-muted);
}

.input:focus-visible {
  border-color: var(--color-primary);
  outline-offset: 1px;
}

/* JS sets aria-invalid="true" when the value is wrong */
.input[aria-invalid="true"] {
  border-color: var(--color-error);
}

.fieldset {
  padding: 0;
  border: 0;
}

.checkbox-group {
  display: grid;
  gap: var(--space-2);
}

.checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 44px;
  padding: 0 var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* :has() lets the label react to its checkbox being checked */
.checkbox:has(input:checked) {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
}

.checkbox input {
  width: 20px;
  height: 20px;
  accent-color: var(--color-brand);
}

.field__error {
  margin-top: var(--space-2);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-error);
}

.field__error:empty {
  margin: 0;
}

.form-error {
  margin-top: calc(var(--space-3) * -1);
  text-align: center;
}

.form-note {
  font-size: 0.8125rem;
  text-align: center;
  color: var(--color-muted);
}

.dialog__success {
  padding-top: var(--space-4);
  text-align: center;
}

.dialog__success:focus {
  outline: none;
}

.dialog__success h2 {
  padding-right: 0;
}

.dialog__success .btn {
  margin-top: var(--space-5);
}

.success-icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: var(--space-4);
  border-radius: 50%;
  background: var(--color-brand);
}


/* ---------------------------------------------------------
   10. Features
   --------------------------------------------------------- */
.features-grid {
  display: grid;
  gap: var(--space-5);
}

.feature-card .icon-badge {
  margin-bottom: var(--space-5);
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}


/* ---------------------------------------------------------
   11. FAQ accordion
   --------------------------------------------------------- */
.faq-list {
  display: grid;
  gap: var(--space-3);
  max-width: 760px;
  margin-inline: auto;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface-raised);
}

.faq-item[open] {
  border-color: var(--color-primary);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5);
  border-radius: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  list-style: none; /* removes the default triangle */
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none; /* removes the triangle in Safari */
}

/* Our own "+" icon, which rotates into an "×" when open */
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1;
  color: var(--color-primary);
  transition: transform var(--transition);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 var(--space-5) var(--space-5);
  color: var(--color-muted);
}


/* ---------------------------------------------------------
   12. Footer
   --------------------------------------------------------- */
.site-footer {
  padding-block: var(--space-7);
  border-top: 1px solid var(--color-border);
  font-size: 0.9375rem;
}

.footer-inner {
  display: grid;
  gap: var(--space-6);
}

.footer-tagline {
  margin-top: var(--space-2);
  color: var(--color-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
}

.footer-links a {
  display: inline-block;
  padding-block: var(--space-1);
  color: var(--color-text);
  text-underline-offset: 3px;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  display: grid;
  gap: var(--space-2);
  font-size: 0.875rem;
  color: var(--color-muted);
}

.footer-inner .footer-bottom {
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .footer-inner .footer-bottom {
    grid-column: 1 / -1; /* spans both columns */
  }
}


/* ---------------------------------------------------------
   13. Legal pages (privacy.html, terms.html)
   --------------------------------------------------------- */
.legal {
  max-width: 720px;
  padding-block: var(--space-8);
}

.legal h1 {
  font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
}

.legal h2 {
  margin-top: var(--space-6);
  font-size: 1.375rem;
}

.legal p {
  margin-top: var(--space-3);
  color: var(--color-muted);
}

.legal__updated {
  font-size: 0.875rem;
}

.notice {
  margin-block: var(--space-5);
  padding: var(--space-4) var(--space-5);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-sm);
  background: var(--color-primary-soft);
}


/* ---------------------------------------------------------
   14. Scroll animations
   Elements with class "reveal" start invisible and slide in
   when script.js adds "is-visible". The ".js" prefix means:
   only hide them if JavaScript is running to show them again.
   --------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Cards in a group appear one after another */
.reveal-group > .reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal-group > .reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal-group > .reveal:nth-child(4) { transition-delay: 0.3s; }

/* Chat bubbles pop in one by one, like a real conversation */
.js .phone .msg {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.js .phone.is-visible .msg {
  opacity: 1;
  transform: none;
}

.js .phone.is-visible .msg:nth-child(1) { transition-delay: 0.4s; }
.js .phone.is-visible .msg:nth-child(2) { transition-delay: 1s; }
.js .phone.is-visible .msg:nth-child(3) { transition-delay: 1.6s; }
.js .phone.is-visible .msg:nth-child(4) { transition-delay: 2.2s; }
.js .phone.is-visible .msg:nth-child(5) { transition-delay: 2.8s; }

/* Respect users who asked their system for less motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .js .reveal,
  .js .phone .msg {
    opacity: 1;
    transform: none;
  }
}


/* ---------------------------------------------------------
   15. Payment status pages (success.html, canceled.html)
   --------------------------------------------------------- */
.status-page {
  padding-block: var(--space-8);
}

.status-card {
  max-width: 480px;
  margin-inline: auto;
  padding: var(--space-7) var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface-raised);
  box-shadow: var(--shadow);
  text-align: center;
}

.status-card h1 {
  font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.25rem);
}

.status-card__text {
  margin-top: var(--space-3);
  font-size: 1.0625rem;
  color: var(--color-muted);
}

.status-card > .btn {
  margin-top: var(--space-6);
}

.status-card__help {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
  font-size: 0.9375rem;
  color: var(--color-muted);
}

.status-card__help strong {
  color: var(--color-text);
  overflow-wrap: anywhere; /* lets the long bot name wrap on small phones */
}

.status-card__help .btn {
  margin-top: var(--space-4);
}

code {
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: var(--color-surface);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  color: var(--color-text);
}
