/* ==========================================================================
   Say Local — landing site
   Design source: Claude Design project "Landing Site.dc.html"
   ========================================================================== */

:root {
  --bg: #faf9f7;
  --bg-white: #fff;
  --bg-inset: #ecedf7;
  --bg-card: #f6f5f3;
  --bg-contact: #faeede;

  --ink: #20242e;
  --ink-2: #3a3f52;
  --ink-3: #41475a;
  --ink-4: #5a6078;
  --muted: #8b91a6;
  --muted-2: #8087a0;
  --muted-3: #6a7088;

  --amber: #e0913a;
  --amber-dark: #c07d2e;
  --violet: #6d6fc0;
  --green: #2fa36b;
  --red: #d1594e;
  --blue: #4f8fd6;
  --pink: #c268a0;

  --border-card: #ececea;

  --display: 'Bricolage Grotesque', 'Instrument Sans', system-ui, sans-serif;
  --body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* horizontal page gutter — 1200px content, 40px minimum edge padding */
  --gutter: max(40px, calc((100% - 1200px) / 2));

  /* hero headline size, reused to position the overlapping phone */
  --h1-size: clamp(56px, 8.6vw, 104px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--amber-dark); text-decoration: none; }
a:hover { color: var(--amber); }

img { max-width: 100%; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 10px 0;
  font-weight: 700;
  z-index: 99;
}
.skip-link:focus { left: 0; color: #fff; }

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

.section { padding-left: var(--gutter); padding-right: var(--gutter); }

/* --------------------------------------------------------------- headings */

.title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 60px);
  line-height: 0.92;
  letter-spacing: -1.8px;
  text-transform: uppercase;
  color: var(--ink);
}

.title--sm {
  font-size: clamp(34px, 5vw, 44px);
  line-height: 0.95;
  letter-spacing: -1.2px;
}

.eyebrow {
  font-family: var(--body);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0;
}

.eyebrow--lg {
  margin-top: 14px;
  font-size: clamp(18px, 2.4vw, 22px);
  line-height: 1.3;
}

.eyebrow--sm {
  margin-top: 22px;
  font-size: 15px;
  color: #878da0;
}

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  border-radius: 14px;
}

.btn--dark {
  margin-top: 26px;
  background: var(--ink);
  color: #fff;
  font-size: 16px;
  padding: 15px 26px;
}
.btn--dark:hover { background: #2c3243; color: #fff; }

.btn--amber {
  background: var(--amber);
  color: #fff;
  font-size: 15px;
  padding: 13px 20px;
  border-radius: 12px;
}
.btn--amber:hover { background: var(--amber-dark); color: #fff; }

/* --------------------------------------------------------------- brand/nav */

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: block;
  object-fit: cover;
  flex: none;
}
.brand-mark--sm { width: 32px; height: 32px; border-radius: 9px; }

.brand-word {
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.3px;
}
.brand-word--light { font-size: 18px; color: #fff; }

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.nav__brand:hover { color: var(--ink); }

.nav__links {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 34px;
}
.nav__links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-3);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a[aria-current="page"] { color: var(--ink); }

.nav__cta {
  border: 1.5px solid var(--ink);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 999px;
  white-space: nowrap;
}
.nav__cta:hover { background: var(--ink); color: #fff; }

/* --------------------------------------------------------------- hero */

.hero {
  background: var(--bg);
  padding-top: 30px;
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.hero__title {
  margin: 34px 0 0;
  padding-right: 368px;
  font-family: var(--display);
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -2.5px;
  color: var(--ink);
}
.hero__title span { display: block; font-size: var(--h1-size); }
.hero__title-light { font-weight: 400; }
.hero__title-bold { font-weight: 700; }

.hero__row { margin-top: 32px; position: relative; }

.hero__inset {
  background: var(--bg-inset);
  border-radius: 30px;
  padding: 38px 36px;
  position: relative;
  overflow: hidden;
  min-height: 452px;
}

.hero__swoosh {
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 120%;
  height: 70%;
  opacity: 0.65;
  pointer-events: none;
}

.hero__copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 376px;
  max-width: min(540px, calc(100% - 340px));
}

.hero__lede {
  margin: 0;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}

.hero__note {
  margin-top: auto;
  padding-top: 34px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero__note-text { font-size: 14px; color: var(--ink-4); line-height: 1.35; }
.hero__note-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  color: var(--ink);
  flex: none;
}
.hero__note-arrow:hover { background: var(--ink); color: #fff; }

/* --------------------------------------------------------------- devices */

/* devices.css frames are fixed-size (428 × 868); scale them down while
   keeping the wrapper's layout box the correct scaled size. */
.phone {
  --frame-w: 428px;
  --frame-h: 868px;
  --phone-scale: 1;
  position: relative;
  width: calc(var(--frame-w) * var(--phone-scale));
  height: calc(var(--frame-h) * var(--phone-scale));
  flex: none;
}

.phone > .device {
  transform: scale(var(--phone-scale));
  transform-origin: top left;
}

/* recolour the stock frame to the Say Local dark navy + add a drop shadow */
.phone .device-frame {
  border-color: #14171f;
  box-shadow:
    inset 0 0 4px 2px #4a5266,
    inset 0 0 0 6px var(--ink),
    var(--phone-shadow, 0 34px 70px rgba(20, 24, 50, 0.28));
}
.phone .device-btns,
.phone .device-btns::after,
.phone .device-btns::before,
.phone .device-power { background: #14171f; }

.phone .device-screen { background-color: #f5f6fa; }

/* NB: --phone-scale must be set on the .phone element itself — the default
   above would otherwise shadow anything inherited from an ancestor. */
.phone--hero { --phone-scale: 0.673; }

/* The hero phone hangs above the inset card, overlapping the headline.
   1.84 = two headline lines at line-height 0.92. Declared after `.phone`
   so its `position: absolute` isn't overridden by `.phone`'s `relative`. */
.hero__phone {
  position: absolute;
  top: calc(-32px - 1.84 * var(--h1-size));
  right: 40px;
}

/* --------------------------------------------------------------- stats */

.stats-band {
  background: var(--bg);
  padding-top: 20px;
  padding-bottom: 24px;
}

.stats {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 36px 56px;
  max-width: calc(100% - 410px);
}
.stat { margin: 0; }

.stat__value {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(62px, 8vw, 84px);
  line-height: 0.85;
  letter-spacing: -2px;
  color: var(--ink);
}

.stat__label {
  margin: 14px 0 0;
  font-family: var(--body);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(19px, 2.4vw, 23px);
  line-height: 1.1;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* --------------------------------------------------------------- phrases */

/* The copy column is much shorter than the device column, so centre the two
   against each other rather than top-aligning them. The negative margin pulls
   the whole row up so the phones overlap the stats band, as in the design. */
.phrases {
  margin-top: -92px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.phrases__copy { flex: 1; min-width: 300px; }
.phrases__copy .eyebrow--lg { margin-top: 16px; max-width: 440px; }

.phone-pair {
  flex: none;
  display: flex;
  align-items: flex-start;
}

.phone-pair .phone { --phone-scale: 0.495; }

.phone-pair .phone--front { z-index: 2; }
.phone-pair .phone--back {
  z-index: 1;
  --phone-shadow: 0 34px 70px rgba(20, 24, 50, 0.2);
  /* overlap scales with the frames: -56px / -113px at the base 0.495 scale */
  margin-left: calc(-113px * var(--phone-scale));
  margin-top: calc(53px * var(--phone-scale));
}

/* --------------------------------------------------------------- features */

.features {
  background: var(--bg-white);
  padding-top: 80px;
  padding-bottom: 80px;
}

.cards {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 20px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 22px;
  padding: 28px;
}

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
}
.card__icon--amber  { background: var(--amber); }
.card__icon--violet { background: var(--violet); }
.card__icon--green  { background: var(--green); }
.card__icon--red    { background: var(--red); }
.card__icon--blue   { background: var(--blue); }
.card__icon--pink   { background: var(--pink); }

.card__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.2;
  margin: 16px 0 0;
}

.card__body {
  font-size: 15.5px;
  color: var(--ink-4);
  line-height: 1.55;
  margin: 8px 0 0;
}

/* --------------------------------------------------------------- support */

.support {
  background: var(--bg-white);
  padding-top: 16px;
  padding-bottom: 80px;
}

.faq {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 28px 40px;
}

.faq__q {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.25;
  margin: 0;
}

.faq__a {
  font-size: 15px;
  color: var(--ink-4);
  line-height: 1.55;
  margin: 6px 0 0;
}
.faq__a strong { color: var(--ink); }

.contact {
  margin-top: 32px;
  background: var(--bg-contact);
  border-radius: 18px;
  padding: 22px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.contact__copy { flex: 1; min-width: 240px; }

.contact__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
}

.contact__sub {
  margin: 4px 0 0;
  font-size: 14.5px;
  color: #8a6a3e;
}

/* ------------------------------------------------- legal page (privacy.html) */

.legal-nav { padding-top: 30px; }

.legal {
  display: block;
  background: var(--bg);
  padding-top: 56px;
  padding-bottom: 96px;
}

.legal__back {
  display: inline-block;
  margin-bottom: 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-4);
}
.legal__back:hover { color: var(--ink); }

.legal__updated {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  margin: 14px 0 0;
}

.prose {
  max-width: 760px;
  margin-top: 24px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-3);
}
.prose p { margin: 0 0 20px; }
.prose__last { margin-bottom: 0; }
.prose h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  margin: 28px 0 8px;
}

/* --------------------------------------------------------------- footer */

.site-footer {
  background: var(--ink);
  padding-top: 52px;
  padding-bottom: 52px;
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.site-footer__top .nav__brand { color: #fff; }
.site-footer__top .nav__brand:hover { color: #fff; }

.site-footer__links { display: flex; gap: 24px; }
.site-footer__links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.site-footer__links a:hover { color: #fff; }
.site-footer__links a[aria-current="page"] { color: #fff; }

.site-footer__legal {
  margin: 24px 0 0;
  font-size: 13px;
  color: var(--muted-3);
  line-height: 1.6;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .hero__title { padding-right: 320px; }
}

@media (max-width: 880px) {
  .hero__title { padding-right: 0; letter-spacing: -1.2px; }
  .hero__row { margin-top: 40px; }
  .hero__inset { min-height: 0; }
  .hero__copy { max-width: 100%; min-height: 0; }

  /* phone drops out of the overlap and sits under the copy */
  .hero__phone {
    position: static;
    margin: 28px auto 0;
  }

  .stats { max-width: 100%; }

  /* stacked: back to normal flow, no overlap, no cross-axis centring */
  .phrases {
    margin-top: 40px;
    align-items: flex-start;
    justify-content: center;
  }
  .phone-pair { margin: 32px auto 0; }
}

@media (max-width: 620px) {
  :root { --gutter: 22px; }

  /* brand + CTA share the first row, links drop to a second row */
  .nav { flex-wrap: wrap; gap: 14px 18px; }
  .nav__brand { flex: 1; }
  .nav__links {
    order: 3;
    flex: 1 1 100%;
    justify-content: flex-start;
    gap: 22px;
  }

  .hero { padding-bottom: 48px; }
  .hero__title span { font-size: clamp(40px, 13vw, 64px); }
  .hero__inset { padding: 26px 22px; }

  .phone--hero { --phone-scale: 0.62; }
  .phone-pair .phone { --phone-scale: 0.42; }

  .stats { gap: 26px 32px; }

  .features { padding-top: 60px; padding-bottom: 60px; }
  .support { padding-bottom: 60px; }
  .legal { padding-top: 40px; padding-bottom: 64px; }

  /* stack brand over links so the wordmark never wraps mid-name */
  .site-footer__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

@media (max-width: 380px) {
  .phone--hero { --phone-scale: 0.55; }
  .phone-pair .phone { --phone-scale: 0.36; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
