/* ======================================================================
   BetterPresenting.ai — Landing site styles
   Modern SaaS, clean, professional, mobile-responsive.
   Plain CSS, no build step.
   ====================================================================== */

/* ----------------------------------------------------------------------
   Design tokens (CSS variables)
   ---------------------------------------------------------------------- */
:root {
  /* Brand colors (configurable) */
  --color-primary: #4f46e5;        /* indigo */
  --color-primary-dark: #4338ca;
  --color-secondary: #06b6d4;      /* cyan */
  --color-bg: #ffffff;
  --color-bg-alt: #f7f8fb;
  --color-text: #111827;
  --color-text-muted: #5b6472;
  --color-border: #e5e7eb;
  --color-success: #16a34a;
  --color-error: #dc2626;

  /* Typography */
  --font-sans: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --maxw: 1120px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(17, 24, 39, 0.08);
  --shadow-md: 0 8px 24px rgba(17, 24, 39, 0.10);
  --shadow-lg: 0 20px 50px rgba(17, 24, 39, 0.14);
  --gradient: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

/* ----------------------------------------------------------------------
   Reset & base
   ---------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.no-scroll {
  overflow: hidden;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--color-text);
}

p {
  margin: 0 0 1rem;
}

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

a:hover {
  text-decoration: underline;
}

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

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

/* Visible focus for keyboard users */
:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

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

/* ----------------------------------------------------------------------
   Layout helpers
   ---------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 5rem 0;
}

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

.section__head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.section__title {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
}

.section__subtitle {
  color: var(--color-text-muted);
  font-size: 1.1rem;
}

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

/* ----------------------------------------------------------------------
   Buttons
   ---------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: inherit;
  font-weight: 600;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  text-decoration: none;
  white-space: nowrap;
}

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

.btn[hidden] {
  display: none;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--color-primary-dark);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn--ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn--sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
}

.btn--light {
  background: #fff;
  color: var(--color-primary);
}
.btn--light:hover {
  background: #f0f1ff;
}

.btn--lg {
  padding: 1rem 1.8rem;
  font-size: 1.05rem;
}

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

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ----------------------------------------------------------------------
   Header / navigation
   ---------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-text);
}
.brand:hover {
  text-decoration: none;
}

.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--gradient);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.1rem;
}

.brand__logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: contain;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav__links {
  display: flex;
  gap: 1.5rem;
}

.nav__links a {
  color: var(--color-text-muted);
  font-weight: 500;
}
.nav__links a:hover {
  color: var(--color-text);
  text-decoration: none;
}

.nav__actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.nav__actions[hidden] {
  display: none;
}

/* Right-hand cluster: collapsible menu + always-visible avatar + hamburger */
.nav__right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
}
.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
}

/* ----------------------------------------------------------------------
   Hero
   ---------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 5.5rem 0 5rem;
  background: radial-gradient(1100px 500px at 80% -10%, rgba(6, 182, 212, 0.12), transparent),
              radial-gradient(900px 400px at 0% 0%, rgba(79, 70, 229, 0.10), transparent);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero__title {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  letter-spacing: -0.02em;
}

.hero__title .accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  max-width: 36ch;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

.hero__note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Decorative score card in hero */
.hero__card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
}

.scorecard__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.scorecard__score {
  font-size: 2.4rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.scorecard__pill {
  background: rgba(22, 163, 74, 0.12);
  color: var(--color-success);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.meter {
  margin: 0.75rem 0;
}
.meter__label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}
.meter__track {
  height: 8px;
  background: var(--color-bg-alt);
  border-radius: 999px;
  overflow: hidden;
}
.meter__fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 999px;
}

/* ----------------------------------------------------------------------
   Overview / features
   ---------------------------------------------------------------------- */
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(79, 70, 229, 0.10);
  color: var(--color-primary);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.feature__title {
  font-size: 1.15rem;
}

.feature__desc {
  color: var(--color-text-muted);
  margin: 0;
}

/* Overview alternating rows */
.overview__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.overview__step .feature__icon {
  margin: 0 auto 1rem;
}

/* ----------------------------------------------------------------------
   Testimonials carousel (center-focused, peeking neighbors, autoplay)
   ---------------------------------------------------------------------- */
.testimonials__viewport {
  position: relative;
  overflow: hidden;
  padding: 0.5rem 0;
}

.testimonials__track {
  position: relative;
  height: 300px;
}

.testimonial {
  position: absolute;
  top: 50%;
  left: var(--left, 50%);
  width: var(--w, 58%);
  height: 260px;
  transform: translateY(-50%) scale(var(--scale, 1));
  opacity: var(--op, 0);
  z-index: var(--z, 1);
  pointer-events: none;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: left 0.5s ease, width 0.5s ease, transform 0.5s ease, opacity 0.5s ease, box-shadow 0.5s ease;
}

.testimonial.is-active {
  pointer-events: auto;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
}

.testimonial__quote {
  color: var(--color-text-muted);
  font-style: italic;
  display: -webkit-box;
  line-clamp: 5.5;
  -webkit-line-clamp: 5.5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding-bottom: 1.5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.testimonial__quote::-webkit-scrollbar {
  display: none;
}

.testimonial__quote::before {
  content: "\201C";
}

.testimonial__quote::after {
  content: "\201D";
}

.testimonial__author {
  margin: 0;
  font-weight: 600;
  color: var(--color-text);
}

.testimonial__author::before {
  content: "— ";
}

.testimonials__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.testimonials__btn {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-primary);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.testimonials__btn:hover:not(:disabled) {
  background: var(--color-bg-alt);
  box-shadow: var(--shadow-sm);
}

.testimonials__btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.testimonials__dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.testimonials__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--color-border);
  cursor: pointer;
  transition: width 0.15s ease, background 0.15s ease;
}

.testimonials__dot.is-active {
  width: 20px;
  background: var(--color-primary);
}

/* ----------------------------------------------------------------------
   Pricing
   ---------------------------------------------------------------------- */
.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 0 auto;
  align-items: stretch;
}

.plan {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.plan--featured {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}

.plan__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  letter-spacing: 0.03em;
}

.plan__name {
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.plan__desc {
  color: var(--color-text-muted);
  min-height: 2.8em;
}

.plan__price {
  margin: 0.5rem 0 1.25rem;
}
.plan__amount {
  font-size: 2.5rem;
  font-weight: 800;
}
.plan__interval {
  color: var(--color-text-muted);
  font-weight: 500;
}

/* Package cards (credit-based) */
.plan__price {
  margin: 0.25rem 0 0.75rem;
}
.plan__credits {
  font-weight: 600;
  margin: 0 0 0.25rem;
}
.plan__validity {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  margin: 0 0 1.5rem;
}
.plan__cta {
  margin-top: auto;
}

.plan__features {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  flex: 1;
}
.plan__feature {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  color: var(--color-text);
}
.plan__check {
  color: var(--color-success);
  font-weight: 800;
}

.plans__empty {
  text-align: center;
  color: var(--color-text-muted);
}

.plans__note {
  text-align: center;
  color: var(--color-text-muted);
  margin-top: 1.75rem;
}

/* ----------------------------------------------------------------------
   FAQ
   ---------------------------------------------------------------------- */
.faq {
  max-width: 760px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--color-border);
}

.faq__question {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  font: inherit;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 1.25rem 2rem 1.25rem 0;
  cursor: pointer;
  position: relative;
  color: var(--color-text);
}

.faq__question::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--color-primary);
  font-weight: 400;
}
.faq__question[aria-expanded="true"]::after {
  content: "−";
}

.faq__answer {
  padding: 0 0 1.25rem;
  color: var(--color-text-muted);
}

/* ----------------------------------------------------------------------
   CTA banner
   ---------------------------------------------------------------------- */
.cta {
  background: var(--gradient);
  color: #fff;
  text-align: center;
  border-radius: var(--radius);
  padding: 3.5rem 1.5rem;
}
.cta h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
}
.cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto 1.75rem;
}
.cta__buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ----------------------------------------------------------------------
   Footer
   ---------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 3rem 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.footer__grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer__links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer__links a {
  color: var(--color-text-muted);
}
.footer__links a:hover {
  color: var(--color-text);
  text-decoration: none;
}

/* ----------------------------------------------------------------------
   Registration modal & forms
   ---------------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}
.modal[hidden] {
  display: none;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.55);
  backdrop-filter: blur(2px);
}

.modal__dialog {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 440px;
  padding: 2rem;
  z-index: 1;
  max-height: 92vh;
  overflow-y: auto;
}

.modal__close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  background: none;
  border: 0;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text-muted);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
}
.modal__close:hover {
  background: var(--color-bg-alt);
  color: var(--color-text);
}

.modal__title {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.modal__plan {
  display: inline-block;
  background: rgba(79, 70, 229, 0.10);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.modal__dialog--wide {
  max-width: 600px;
}

/* ----------------------------------------------------------------------
   Receipt (Purchase History → Receipt action)
   ---------------------------------------------------------------------- */
.receipt {
  margin: 1.25rem 0 1.5rem;
}
.receipt__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}
.receipt__parties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}
.receipt__parties-label {
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}
.receipt__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.receipt__table th,
.receipt__table td {
  text-align: left;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--color-border);
}
.receipt__table th:last-child,
.receipt__table td:last-child {
  text-align: right;
  white-space: nowrap;
}
.receipt__table tfoot td {
  border-bottom: 0;
  font-weight: 700;
  padding-top: 0.75rem;
}
.receipt__note {
  color: var(--color-text-muted);
  font-size: 0.82rem;
  margin-top: 0.2rem;
}

.field {
  margin-bottom: 1rem;
}
.field__label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}
.field__label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}
.field__label-row .field__label {
  margin-bottom: 0;
}
.field__optional {
  font-weight: 400;
  color: #888;
}
.field__input {
  width: 100%;
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-text);
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.field__input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}
.field__input[aria-invalid="true"] {
  border-color: var(--color-error);
}
.field__error {
  display: block;
  color: var(--color-error);
  font-size: 0.82rem;
  margin-top: 0.3rem;
  min-height: 1em;
}
.field__hint {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin: 0 0 0.5rem;
  line-height: 1.5;
}

/* Google requires the reCAPTCHA disclosure text be shown when the badge is hidden. */
.grecaptcha-badge {
  opacity: 0;
  pointer-events: none;
}
.recaptcha-notice {
  color: var(--color-text-muted);
  font-size: 0.8rem;
  line-height: 1.5;
  margin: 0 0 1rem;
}
.recaptcha-notice a {
  color: inherit;
  text-decoration: underline;
}

.field--row {
  display: flex;
  gap: 0.75rem;
}
.field--row[hidden] {
  display: none;
}
.field--row .field {
  flex: 1;
}

.form__status {
  font-size: 0.9rem;
  margin: 0.5rem 0 1rem;
  min-height: 1.2em;
}
.form__status--error { color: var(--color-error); }
.form__status--success { color: var(--color-success); }
.form__status--pending { color: var(--color-text-muted); }

.form__fineprint {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: 1rem 0 0;
  text-align: center;
}

/* ----------------------------------------------------------------------
   Status pages (success / cancel)
   ---------------------------------------------------------------------- */
.status-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1.25rem;
}
.status-card {
  max-width: 520px;
}
.status-icon {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 1.5rem;
  font-size: 2.4rem;
  color: #fff;
}
.status-icon--success { background: var(--color-success); }
.status-icon--cancel { background: var(--color-text-muted); }

.status-card h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}
.status-card p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
}
.status-card .btn {
  margin-top: 1rem;
}
.status-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ----------------------------------------------------------------------
   Account (avatar) menu
   ---------------------------------------------------------------------- */
.user-menu {
  position: relative;
}
.user-menu[hidden] {
  display: none;
}

.user-menu__trigger {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  border-radius: 50%;
  line-height: 0;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1rem;
}

.user-menu__dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 230px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 0.4rem;
  z-index: 150;
}
.user-menu__dropdown[hidden] {
  display: none;
}

.user-menu__header {
  display: flex;
  flex-direction: column;
  padding: 0.6rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 0.35rem;
}
.user-menu__name {
  font-weight: 700;
}
.user-menu__email {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.user-menu__item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  font: inherit;
  color: var(--color-text);
  padding: 0.55rem 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.user-menu__item:hover {
  background: var(--color-bg-alt);
  text-decoration: none;
}
.user-menu__item--danger {
  color: var(--color-error);
}

/* ----------------------------------------------------------------------
   Services / About hero
   ---------------------------------------------------------------------- */
.services-hero {
  max-width: 760px;
  text-align: center;
  margin: 0 auto;
}
.services-hero__subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 1rem;
}
.services-hero__lead {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

/* ----------------------------------------------------------------------
   Upcoming events table
   ---------------------------------------------------------------------- */
.events__wrap {
  max-width: 680px;
  margin: 0 auto;
}
.events__table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.events__table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
}
.events__table tr:last-child td {
  border-bottom: 0;
}
.events__table td:first-child {
  font-weight: 600;
}
.events__table td:last-child {
  text-align: right;
  color: var(--color-text-muted);
}

/* ----------------------------------------------------------------------
   "What you'll receive" numbered steps
   ---------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.step {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.step__num {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gradient);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.9rem;
}
.step .feature__desc {
  margin: 0;
}

/* ----------------------------------------------------------------------
   Delivery notice box
   ---------------------------------------------------------------------- */
.notice {
  max-width: 720px;
  margin: 0 auto;
  background: rgba(79, 70, 229, 0.06);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  text-align: center;
}
.notice h3 {
  margin-bottom: 0.35rem;
}
.notice p {
  margin: 0;
  color: var(--color-text-muted);
}

/* ----------------------------------------------------------------------
   Suitable-for tags
   ---------------------------------------------------------------------- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.tag {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* ----------------------------------------------------------------------
   Contact form
   ---------------------------------------------------------------------- */
.contact__form {
  max-width: 640px;
  margin: 0 auto;
}
.field__req {
  color: var(--color-error);
}
.field__textarea {
  resize: vertical;
  min-height: 140px;
  font-family: inherit;
}

/* ----------------------------------------------------------------------
   Sustainability video
   ---------------------------------------------------------------------- */
.video-wrap {
  display: flex;
  justify-content: center;
}
.video-wrap video {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  background: #000;
}

/* ----------------------------------------------------------------------
   Responsive — Collapse nav into a hamburger below 1024px

   The links and the Login / Register buttons collapse into the toggle
   menu. The account (avatar) menu stays in the bar, outside the hamburger.
   ---------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav__menu.is-open {
    display: flex;
  }
  .nav__links {
    flex-direction: column;
    gap: 0;
  }
  .nav__links a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--color-border);
  }
  .nav__actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: 0.75rem;
  }
}

/* ----------------------------------------------------------------------
   Responsive — Tablet
   ---------------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__lead {
    margin-left: auto;
    margin-right: auto;
  }
  .hero__cta {
    justify-content: center;
  }
  .hero__card {
    max-width: 420px;
    margin: 0 auto;
  }
  .features__grid,
  .overview__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Packages: 2 x 2 on tablet */
  .plans {
    grid-template-columns: repeat(2, 1fr);
    max-width: 620px;
  }
}

/* ----------------------------------------------------------------------
   Responsive — Mobile
   ---------------------------------------------------------------------- */
@media (max-width: 640px) {
  .section {
    padding: 3.5rem 0;
  }

  .features__grid,
  .overview__grid {
    grid-template-columns: 1fr;
  }
  /* Packages: single column on mobile */
  .plans {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  /* Testimonials: swap the hard clamp for a scrollable region (invisible
     scrollbar) so the full quote can be reached by scrolling on touch. */
  .testimonial__quote {
    display: block;
    line-clamp: unset;
    -webkit-line-clamp: unset;
    max-height: 8.8em;
    overflow-y: auto;
  }

  .field--row {
    flex-direction: column;
    gap: 0;
  }

  .field__label-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .receipt__parties {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* ----------------------------------------------------------------------
   Page loader (User Info / Purchase History / Report Request initial load)
   ---------------------------------------------------------------------- */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(2px);
}
.page-loader[hidden] {
  display: none;
}
.page-loader__spinner {
  width: 44px;
  height: 44px;
  border: 4px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: page-loader-spin 0.8s linear infinite;
}
.page-loader__text {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 0;
}
@keyframes page-loader-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ----------------------------------------------------------------------
   Reduced motion
   ---------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
