/* =========================================================
   BerdenWeb — shared styles
   Palette: Earth (background), Warm White (headings),
   Stone (secondary text), Sand (accents + buttons, sparingly)
   ========================================================= */

:root {
  --earth: #2A231D;
  --earth-deep: #221C17;
  --earth-raised: #342B24;
  --line: #463B32;
  --warm-white: #F4EEE4;
  --stone: #B3A99C;
  --sand: #D8BF94;
  --sand-hover: #E6D2AE;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(80px, 11vw, 136px);
  --radius-lg: 18px;
  --radius-sm: 10px;

  /* Hairline rings: semi-transparent so they sit right on any earth tone */
  --ring: 0 0 0 1px rgba(244, 238, 228, 0.09);
  --ring-strong: 0 0 0 1px rgba(244, 238, 228, 0.16);

  /* Motion: strong custom curves; UI feedback stays under 300ms */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  /* Black night sky and a starfield that run through every page */
  --sky: #000000; /* the page's night sky behind the stars */
  --stars: url("assets/stars-a.svg") 0 0 / 640px 640px repeat, url("assets/stars-b.svg") 220px 140px / 1030px 1030px repeat;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent; /* we give every control its own :active state */
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--stars), var(--sky);
  color: var(--stone);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word; /* long emails or business names wrap instead of overflowing */
}

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

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--warm-white);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.4rem; line-height: 1.2; letter-spacing: -0.005em; }

p { margin: 0; max-width: 34em; }

a { color: inherit; }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--sand); color: var(--earth);
  padding: 12px 16px; z-index: 100;
}
.skip:focus { left: 16px; top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font: 600 1rem/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  touch-action: manipulation;
  user-select: none; -webkit-user-select: none;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--sand); color: var(--earth); }
.btn-primary:active { background: var(--sand-hover); }
.btn-quiet { border-color: var(--line); color: var(--warm-white); }
.btn-quiet:active { border-color: var(--stone); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--sand-hover); }
  .btn-quiet:hover { border-color: var(--stone); }
}

.text-link {
  color: var(--warm-white);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--sand);
  text-underline-offset: 6px;
  text-decoration-thickness: 1.5px;
}
@media (hover: hover) and (pointer: fine) { .text-link:hover { color: var(--sand); } }

/* ---------- Header ---------- */
/* Toolbar sits on the same backdrop as the page (the Earth runs up behind it).
   After scrolling it picks up a see-through earth tint so links stay readable over content. */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, 0);
  border-bottom: 1px solid transparent;
  transition: background-color 200ms ease, border-color 200ms ease;
}
.site-header.scrolled {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(244, 238, 228, 0.08);
}
/* The welcome section slides up under the toolbar so the photo fills the top edge */
.hero-photo { margin-top: -76px; }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 76px;
}

.brand {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px;
  text-decoration: none;
  font-family: var(--serif); font-weight: 600; font-size: 1.45rem;
  color: var(--warm-white); letter-spacing: -0.01em;
}
.brand img { width: 36px; height: 36px; }
.brand { white-space: nowrap; }
@media (max-width: 380px) {
  .brand { font-size: 1.2rem; gap: 10px; }
  .brand img { width: 32px; height: 32px; }
}

.nav { display: flex; align-items: center; gap: 32px; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none; color: var(--stone); font-weight: 500; font-size: .98rem;
  padding: 10px 0;
  transition: color 150ms ease;
}
.nav-links a[aria-current="page"] { color: var(--warm-white); }
@media (hover: hover) and (pointer: fine) { .nav-links a:hover { color: var(--warm-white); } }
.nav .btn { min-height: 44px; padding: 0 20px; font-size: .95rem; }

.menu-toggle {
  display: none;
  width: 48px; height: 48px;
  background: none; border: 1px solid var(--line); border-radius: 12px;
  color: var(--warm-white); cursor: pointer;
  align-items: center; justify-content: center;
  touch-action: manipulation;
  transition: transform 160ms var(--ease-out);
}
.menu-toggle:active { transform: scale(0.95); }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 18px; height: 1.5px; background: currentColor; position: relative;
  transition: transform 200ms var(--ease-out), background-color 120ms ease;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  /* Menu panel: enters 220ms, exits faster (160ms). Panel carries its links; no stagger. */
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 8px;
    padding: 12px max(var(--gutter), env(safe-area-inset-right, 0px)) 28px max(var(--gutter), env(safe-area-inset-left, 0px));
    background: var(--sky);
    border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out), visibility 0s linear 160ms;
  }
  .nav.open {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s;
  }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a { display: block; padding: 14px 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; min-height: 52px; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 var(--section); }
.hero-copy h1 { max-width: 11ch; }
.hero-copy p { margin-top: 24px; font-size: 1.2rem; max-width: 26em; }
.hero-copy .btn { margin-top: 36px; }

.hero-simple { text-align: left; }
.hero-simple h1 { max-width: 14ch; }

/* Home welcome: Earth photo, headline over the dark space on the left.
   The photo fades out at its bottom into the same starry earth background
   the rest of the site uses, so the welcome section flows into the page. */
.hero-photo {
  position: relative; z-index: 0; overflow: hidden;
  min-height: min(92svh, 840px);
  display: flex; align-items: center;
  padding: calc(76px + clamp(56px, 8vw, 112px)) 0 clamp(32px, 5vw, 64px);
  background: var(--stars), var(--sky); /* same black sky + stars as the rest of the site */
}
.hero-bg {
  /* The whole globe sits to the right of the text column, rising toward the toolbar */
  position: absolute; z-index: -1;
  top: calc(50% - 70px); transform: translateY(-50%); /* raised so the globe's top runs behind the toolbar */
  right: max(0px, calc((100vw - var(--wrap)) / 2 - 60px));
  width: min(54vw, 780px);
  /* The photo's sky is pure black, matching the page, so there is no visible box around the planet */
  animation: fade 900ms ease both; /* decoration: fades, never moves */
}
.hero-bg picture, .hero-bg img { display: block; width: 100%; height: auto; }
.hero-photo .hero-copy { max-width: 600px; }
.hero-center {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  margin-top: 28px;
}
.hero-photo .hero-center p { margin-top: 0; max-width: none; color: var(--warm-white); opacity: .85; }
.hero-photo .hero-center .btn { margin-top: 28px; }

/* Clear button: transparent fill, warm-white outline */
.btn-clear { background: transparent; color: var(--warm-white); border-color: rgba(244,238,228,.7); }
.btn-clear:active { background: rgba(244,238,228,.1); border-color: var(--warm-white); }
@media (hover: hover) and (pointer: fine) {
  .btn-clear:hover { background: rgba(244,238,228,.08); border-color: var(--warm-white); }
}

@media (max-width: 760px) {
  /* Phones: the full globe sits behind the headline, softened so the text stays readable */
  .hero-bg { width: 115vw; right: -38vw; top: 46%; }
  .hero-bg img { opacity: .6; }
}

/* Hero entrance: the one orchestrated moment on the site, seen once per visit.
   Lead = headline (moves most). Support = line + button (move less).
   Only transform + opacity animate. fill-mode both = no flash of the final state. */
.rise {
  animation: rise var(--dur, 560ms) var(--ease-out) var(--delay, 0ms) both;
}
.hero-copy h1.rise   { --rise: 14px; --dur: 640ms; --delay: 0ms; }
.hero-copy p.rise    { --rise: 8px;  --delay: 90ms; }
.hero-copy .btn.rise { --rise: 6px;  --delay: 160ms; }

@keyframes rise {
  from { opacity: 0; transform: translateY(var(--rise, 8px)); }
}

/* Reduced motion: collapse the choreography. Same quick fade, no movement, no delays. */
@media (prefers-reduced-motion: reduce) {
  .rise { animation: fade 200ms ease both; animation-delay: 0ms; }
}
@keyframes fade { from { opacity: 0; } }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
/* Sections sit directly on the starfield; spacing separates them instead of color bands */
.section-deep { background: transparent; }

.section-head { margin-bottom: clamp(40px, 6vw, 64px); }
.section-head p { margin-top: 16px; font-size: 1.125rem; }
.section-head-row {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}

/* ---------- Sliding rows (reviews) ---------- */
/* Native scroll-snap: trackpad two-finger swipe, touch swipe and momentum all come
   from the browser's own physics. Arrow buttons are there for mouse users. */
.carousel-nav { display: flex; gap: 10px; }
.carousel-btn {
  width: 48px; height: 48px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: rgba(244,238,228,.04); color: var(--warm-white);
  border: 1px solid rgba(244,238,228,.18);
  cursor: pointer; touch-action: manipulation;
  transition: transform 160ms var(--ease-out), opacity 150ms ease, border-color 150ms ease;
}
.carousel-btn svg { width: 20px; height: 20px; }
.carousel-btn:active { transform: scale(0.94); }
.carousel-btn:disabled { opacity: .3; cursor: default; }
.carousel-btn:disabled:active { transform: none; }
@media (hover: hover) and (pointer: fine) {
  .carousel-btn:not(:disabled):hover { border-color: rgba(244,238,228,.45); }
}

.carousel {
  --edge: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--edge);
  overscroll-behavior-x: contain;   /* a sideways swipe never triggers browser back */
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel:focus-visible { outline-offset: -2px; }
.track {
  display: flex; gap: clamp(16px, 2.2vw, 28px);
  list-style: none; margin: 0;
  padding: 4px var(--edge) 8px;
  width: max-content;
}
@media (max-width: 600px) {
  .carousel-nav { display: none; } /* phones swipe */
}
/* ---------- Services (home): collapsed by default, tap to open ---------- */
.services {
  display: grid; grid-template-columns: repeat(2, 1fr);
  column-gap: clamp(24px, 5vw, 72px); row-gap: 4px;
  align-items: start;
}
.service summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 44px 1fr 16px; gap: 18px; align-items: center;
  padding: 16px 0; min-height: 44px;
  touch-action: manipulation;
  user-select: none; -webkit-user-select: none;
}
.service summary::-webkit-details-marker { display: none; }
.service svg { width: 40px; height: 40px; }
.service h3 { font-size: 1.3rem; }
.service .chev {
  width: 10px; height: 10px; justify-self: end;
  border-right: 1.6px solid var(--sand); border-bottom: 1.6px solid var(--sand);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 200ms var(--ease-out);
}
.service[open] .chev { transform: rotate(-135deg) translateY(-3px); }
.service p { padding: 0 34px 16px 62px; max-width: none; }
.service[open] p { animation: rise 220ms var(--ease-out) both; --rise: -4px; }
@media (prefers-reduced-motion: reduce) { .service[open] p { animation: fade 150ms ease both; } }
@media (hover: hover) and (pointer: fine) {
  .service summary h3 { transition: color 150ms ease; }
  .service summary:hover h3 { color: var(--sand); }
}
.services-foot { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

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

/* ---------- About ---------- */
.about { display: grid; }
.about-centered { justify-items: center; text-align: center; }
.about-centered .about-copy { max-width: 640px; display: flex; flex-direction: column; align-items: center; }
.about-centered h2 { max-width: 16ch; }
.about-centered p { margin-inline: auto; }
.about-copy p { margin-top: 18px; font-size: 1.125rem; }
.about-copy p:first-of-type { margin-top: 22px; }
.about-points { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.about-points li { display: flex; gap: 14px; align-items: baseline; color: var(--warm-white); }
.about-points li::before {
  content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%;
  background: var(--sand); transform: translateY(-2px);
}


/* ---------- Reviews: same sliding row as the concept projects ---------- */
.section-slider .section-head { margin-bottom: 28px; }
.slide-review { width: min(400px, 82vw); display: flex; flex: none; scroll-snap-align: start; }
.review {
  margin: 0; padding: 32px 30px; width: 100%;
  background: #0C0B0A; /* solid, so stars don't show through behind the text */
  box-shadow: var(--ring); border-radius: var(--radius-lg);
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
}
.review blockquote {
  margin: 0;
  font-family: var(--serif); font-size: 1.3rem; line-height: 1.4;
  color: var(--warm-white); font-weight: 500;
}
.review figcaption { font-size: .98rem; }
.review figcaption strong { display: block; color: var(--warm-white); font-weight: 600; }
.stars { display: flex; gap: 4px; margin-bottom: 18px; }
.stars svg { width: 16px; height: 16px; }

/* ---------- Contact ---------- */
.contact {
  display: grid; grid-template-columns: .9fr 1.1fr;
  gap: clamp(40px, 7vw, 96px); align-items: start;
}
.contact-copy p { margin-top: 18px; font-size: 1.125rem; }
.contact-list { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: center; }
.contact-list svg { width: 22px; height: 22px; flex: none; }
.contact-list li > :last-child { min-width: 0; }
.contact-list a { color: var(--warm-white); text-decoration: none; transition: color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .contact-list a:hover { color: var(--sand); } }

.form {
  background: var(--earth-raised);
  box-shadow: var(--ring);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 44px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.field { display: grid; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label { color: var(--warm-white); font-weight: 500; font-size: .98rem; }
.field label .optional { color: var(--stone); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit; font-size: 1rem; /* 16px+ prevents iOS zoom */
  color: var(--warm-white);
  background: var(--earth);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  min-height: 52px;
  transition: border-color 150ms ease;
}
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23B3A99C' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
  padding-right: 44px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8A8076; }
@media (hover: hover) and (pointer: fine) {
  .field input:hover, .field select:hover, .field textarea:hover { border-color: #5A4D42; }
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--sand);
}
.form .btn { grid-column: 1 / -1; width: 100%; margin-top: 4px; }
.form-note { grid-column: 1 / -1; font-size: .92rem; text-align: center; max-width: none; }
.form-status {
  grid-column: 1 / -1; display: none;
  padding: 14px 16px; border-radius: var(--radius-sm);
  font-size: .98rem; max-width: none;
}
.form-status.ok { display: block; background: rgba(216,191,148,.12); color: var(--warm-white); border: 1px solid var(--sand); }
.form-status.err { display: block; background: rgba(220,140,120,.10); color: var(--warm-white); border: 1px solid #C98A75; }
/* Status message eases in when it appears, so the change isn't jarring */
.form-status.ok, .form-status.err {
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
  @starting-style { opacity: 0; transform: translateY(-4px); }
}
.form .btn:disabled { cursor: progress; opacity: .75; }

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

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 16ch; margin-inline: auto; }
.cta-band p { margin: 18px auto 0; font-size: 1.125rem; }
.cta-band .btn { margin-top: 32px; }

/* ---------- Pricing page ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan {
  display: flex; flex-direction: column;
  padding: 36px 32px;
  box-shadow: var(--ring);
  border-radius: var(--radius-lg);
  background: var(--sky);
}
.plan-featured { box-shadow: 0 0 0 1px var(--sand); background: var(--earth-raised); }
.plan-top { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; }
.plan-tag { color: var(--sand); font-size: .92rem; font-weight: 600; }
.plan > p { margin-top: 10px; }
.price {
  margin-top: 28px;
  font-family: var(--serif); font-weight: 600;
  font-size: 3rem; line-height: 1; color: var(--warm-white); letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.price small { font-family: var(--sans); font-size: 1rem; font-weight: 500; color: var(--stone); letter-spacing: 0; }
.price-sub { margin-top: 8px; font-size: .95rem; }
.plan ul {
  list-style: none; padding: 24px 0 0; margin: 24px 0 32px;
  border-top: 1px solid var(--line);
  display: grid; gap: 12px; flex: 1;
}
.plan li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; }
.plan li svg { width: 18px; height: 18px; margin-top: 4px; }
.plan .btn { width: 100%; }
/* Price ranges ("$1,000–$1,500") need a little less size to fit the card */
.price-range { font-size: clamp(1.9rem, 2.6vw, 2.4rem); white-space: nowrap; }
.plan-note { font-size: .92rem; margin: -12px 0 24px; }
.plans-note { margin-top: 28px; font-size: .98rem; }
.plans-2 { grid-template-columns: repeat(2, 1fr); max-width: 820px; }

/* SEO: same layout as the redesign block, with a two-column list of services */
/* SEO block: one column, with a tier per package */
.redesign.seo { grid-template-columns: 1fr; gap: 32px; }
.seo-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.seo-tier h3 { font-size: 1.3rem; }
.seo-tier > p { margin-top: 4px; font-size: .98rem; }
.seo-list {
  list-style: none; padding: 0; margin: 16px 0 0;
  display: grid; gap: 10px;
}
.seo-list li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; }
.seo-list li svg { width: 18px; height: 18px; margin-top: 4px; }
@media (max-width: 760px) { .seo-tiers { grid-template-columns: 1fr; gap: 24px; } }

/* Plain list of policy notes, sand dot markers */
.info-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; max-width: 820px; }
.info-list li { display: flex; gap: 14px; align-items: baseline; }
.info-list li::before {
  content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%;
  background: var(--sand); transform: translateY(-2px);
}

/* Tablets and phones: plans become a swipeable row (desktop keeps the side-by-side grid).
   Native scroll-snap gives touch swipe and trackpad swipe with the browser's own momentum. */
@media (max-width: 980px) {
  .plans, .plans-2 {
    --edge-l: max(var(--gutter), env(safe-area-inset-left, 0px));
    --edge-r: max(var(--gutter), env(safe-area-inset-right, 0px));
    display: flex; gap: 16px; max-width: none;
    margin-left: calc(-1 * var(--edge-l)); margin-right: calc(-1 * var(--edge-r));
    padding: 4px var(--edge-r) 8px var(--edge-l);
    overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--edge-l) var(--edge-r);
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .plans::-webkit-scrollbar { display: none; }
  .plans > .plan { flex: none; width: min(360px, 84vw); scroll-snap-align: start; }
}

.redesign {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center;
  padding: clamp(28px, 5vw, 52px);
  box-shadow: var(--ring); border-radius: var(--radius-lg);
}
.redesign p { margin-top: 14px; font-size: 1.1rem; }
.redesign-price { text-align: right; }
.redesign-price .price { margin-top: 0; }
.redesign-price .btn { margin-top: 20px; }
@media (max-width: 760px) {
  .redesign { grid-template-columns: 1fr; }
  .redesign-price { text-align: left; }
}

.addons { border-top: 1px solid var(--line); }
.addon {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.addon h3 { font-family: var(--sans); font-size: 1.1rem; font-weight: 600; letter-spacing: 0; }
.addon p { margin-top: 4px; font-size: .98rem; }
.addon-price { color: var(--warm-white); font-weight: 600; white-space: nowrap; font-size: 1.1rem; font-variant-numeric: tabular-nums; }

.faq { border-top: 1px solid var(--line); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; min-height: 44px;
  color: var(--warm-white); font-weight: 600; font-size: 1.1rem;
  touch-action: manipulation;
  user-select: none; -webkit-user-select: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 1.6px solid var(--sand); border-bottom: 1.6px solid var(--sand);
  transform: rotate(45deg) translateY(-3px); transition: transform 200ms var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { padding: 0 0 24px; }
/* Answer settles in on open (occasional action). Close is instant: the user already decided. */
.faq details[open] p { animation: rise 220ms var(--ease-out) both; --rise: -4px; }
@media (prefers-reduced-motion: reduce) { .faq details[open] p { animation: fade 150ms ease both; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; }
.footer-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.footer-links a { text-decoration: none; padding: 10px 0; display: inline-block; }
.footer-links a { transition: color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .footer-links a:hover { color: var(--warm-white); } }
.footer-owner {
  margin-top: 28px; max-width: none;
  display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: .98rem;
}
.footer-owner span { color: var(--warm-white); font-weight: 500; }
.footer-owner a { text-decoration: none; transition: color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .footer-owner a:hover { color: var(--warm-white); } }
.footer-note { margin-top: 12px; font-size: .92rem; max-width: none; }
