/* GENERATED by tools/build-site.cjs: self-hosted faces, then design/styles.css with its dark blocks removed (the site is light only), then the wiring. Edit the design, not this file. */
@font-face { font-family: "Fraunces"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/Fraunces_600SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/Nunito_400Regular.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/Nunito_600SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/Nunito_700Bold.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/DMSans_400Regular.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/DMSans_500Medium.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/DMSans_600SemiBold.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/DMSans_700Bold.woff2") format("woff2"); }
:root { color-scheme: only light; }

/* rarewell marketing site
   Built from the Rarewell design system (tokens.json). Mobile first; one breakpoint at 960px.
   Light is brand canon. Dark values are the system's *derived* theme and follow the visitor's OS setting. */

/* ---------- tokens ---------- */
:root {
  /* colour: light */
  --primary: #4a7c59;
  --primary-pressed: #5c9470;
  --on-primary: #ffffff;
  --background: #f8f8f6;
  --card: #ffffff;
  --divider: #e8e8e4;
  --text-primary: #1a1a1a;
  --text-secondary: #6b6b6b;
  --bezel: #1a1a1a;
  --bezel-edge: #1a1a1a;
  /* mascot only (never UI): #7eaf4d slugBack, #7fc392 slugBelly — they live in the Wellie PNGs */

  /* type families: one job each */
  --font-display: "Fraunces", Georgia, serif;                               /* wordmark, H1, H2 */
  --font-editorial: "Nunito", "Trebuchet MS", system-ui, sans-serif;       /* marketing body */
  --font-ui: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;  /* small UI text */

  /* spacing + radius */
  --screen-padding: 24px;
  --section-gap: 24px;
  --button-height: 56px;
  --radius-button: 28px;
  --radius-card: 12px;
  --radius-panel: 28px;
  --content: 1120px;
}


/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text-primary);
  font-family: var(--font-editorial);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--primary); }
a:hover { color: var(--primary-pressed); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

h1, h2 { font-family: var(--font-display); font-weight: 600; color: var(--text-primary); }
h1 { font-size: 42px; line-height: 1.1; letter-spacing: -0.01em; }
h2 { font-size: 28px; line-height: 1.2; }
.h3 { font-size: 24px; }
.lead { font-size: 18px; font-weight: 600; line-height: 1.45; color: var(--text-secondary); }
.caption { font-family: var(--font-ui); font-size: 14px; font-weight: 600; color: var(--primary); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; font-family: var(--font-ui); }
.skip:focus { left: 8px; z-index: 20; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  height: var(--button-height); padding: 0 32px;
  border-radius: var(--radius-button);
  background: var(--primary); color: var(--on-primary);
  font-family: var(--font-ui); font-size: 16px; font-weight: 700; text-decoration: none;
}
.button:hover { background: var(--primary-pressed); color: var(--on-primary); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--background);
  border-bottom: 1px solid var(--divider);
}
.site-header__inner {
  height: 64px; max-width: calc(var(--content) + 2 * var(--screen-padding)); margin: 0 auto;
  padding: 0 var(--screen-padding);
  display: flex; align-items: center; justify-content: space-between;
}
.wordmark { font-family: var(--font-display); font-weight: 600; font-size: 24px; letter-spacing: -0.01em; color: var(--primary); text-decoration: none; }
.nav, .site-footer nav { display: flex; align-items: center; gap: 10px; font-family: var(--font-ui); font-size: 14px; font-weight: 500; }
.nav a { color: var(--text-primary); text-decoration: none; padding: 12px 0; }
.nav a:hover { color: var(--primary); }
.nav span, .site-footer nav span { color: var(--text-secondary); }

/* ---------- phone frame + screenshot placeholder ---------- */
.phone {
  --w: 236px;
  width: calc(var(--w) + 18px); flex-shrink: 0;
  padding: 8px; border-radius: calc(var(--w) * 0.13 + 9px);
  background: var(--bezel); border: 1px solid var(--bezel-edge);
}
.phone--hero  { --w: 270px; }
.phone--pair  { --w: 130px; padding: 6px; width: calc(var(--w) + 14px); }
.phone--small { --w: 180px; }
.phone__screen {
  width: var(--w); aspect-ratio: 390 / 844;
  border-radius: calc(var(--w) * 0.13);
  background: var(--card); overflow: hidden;
  display: flex; flex-direction: column; gap: 8px;
  padding: 26px 14px 14px;
  font-family: var(--font-ui);
}
.phone__screen > img { margin: -26px -14px -14px; width: calc(100% + 28px); max-width: none; height: calc(100% + 40px); object-fit: cover; }
.phone__label { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; color: var(--text-secondary); }
.phone__name  { font-size: 15px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.phone__placeholder {
  flex-grow: 1; display: flex; align-items: center; justify-content: center;
  border: 1.5px dashed var(--divider); border-radius: var(--radius-card);
  background: var(--background); font-size: 13px; color: var(--text-secondary);
}
.phone--pair .phone__screen { padding: 18px 10px 10px; gap: 6px; }
.phone--pair .phone__label { font-size: 10px; }
.phone--pair .phone__name { font-size: 12px; }
.phone--pair .phone__placeholder { font-size: 11px; border-radius: 10px; }

/* ---------- hero ---------- */
.hero {
  max-width: calc(var(--content) + 2 * var(--screen-padding)); margin: 0 auto;
  padding: 40px var(--screen-padding) 64px;
  display: flex; flex-direction: column; align-items: center; gap: 40px;
}
.hero__text { width: 100%; display: flex; flex-direction: column; gap: 20px; }
.hero__wellie { display: flex; align-items: flex-end; gap: 12px; }
.hero__wellie-img { width: 132px; }
.hero__wellie .caption { padding-bottom: 22px; }
.badges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-top: 4px; }
.badge {
  height: 56px; padding: 0 16px; display: flex; align-items: center; gap: 12px;
  border-radius: var(--radius-button); border: 1.5px solid var(--divider);
  background: var(--card); color: var(--primary); cursor: default; text-align: left;
}
.badge span { display: flex; flex-direction: column; gap: 1px; font-family: var(--font-ui); color: var(--text-primary); }
.badge small { font-size: 11px; font-weight: 500; letter-spacing: 0.04em; color: var(--text-secondary); }
.badge strong { font-size: 16px; font-weight: 700; }

/* the fourth nav link only where the header has room for it */
.nav .nav__wide { display: none; }
@media (min-width: 560px) { .nav .nav__wide { display: inline; } }

/* ---------- features ---------- */
.features-note {
  max-width: calc(var(--content) + 2 * var(--screen-padding)); margin: 0 auto;
  padding: 0 var(--screen-padding) 24px;
  font-family: var(--font-ui); font-size: 14px; color: var(--text-secondary);
}
.feature {
  max-width: calc(var(--content) + 2 * var(--screen-padding)); margin: 0 auto;
  padding: 56px var(--screen-padding);
  display: flex; flex-direction: column; gap: 32px;
  border-top: 1px solid var(--divider);
}
.feature__text { display: flex; flex-direction: column; gap: 16px; }
.feature__wellie { width: 72px; }
.feature__media {
  order: 2;
  display: flex; justify-content: center; align-items: center; gap: 16px;
  padding: 28px 16px;
  background: var(--card); border: 1px solid var(--divider); border-radius: var(--radius-panel);
}
.quote {
  font-size: 16px; font-weight: 600; line-height: 1.5;
  background: var(--card); border: 1px solid var(--divider); border-radius: var(--radius-card);
  padding: 14px 18px;
}

.feature-small { max-width: calc(var(--content) + 2 * var(--screen-padding)); margin: 0 auto; padding: 24px var(--screen-padding) 56px; }
.feature-small__card {
  display: flex; flex-direction: column; align-items: center; gap: 28px;
  padding: 28px 24px;
  background: var(--card); border: 1px solid var(--divider); border-radius: var(--radius-panel);
}
.feature-small .feature__text { gap: 12px; }

/* ---------- divider ---------- */
.divider { display: flex; align-items: center; gap: 24px; padding: 20px var(--screen-padding); max-width: calc(var(--content) + 2 * var(--screen-padding)); margin: 0 auto; }
.divider::before, .divider::after { content: ""; flex-grow: 1; height: 1px; background: var(--divider); }
.divider__wellie { width: 120px; }

/* ---------- pricing ---------- */
.pricing { max-width: calc(var(--content) + 2 * var(--screen-padding)); margin: 0 auto; padding: 56px var(--screen-padding) 64px; display: flex; flex-direction: column; gap: 20px; }
.pricing__row { display: flex; flex-direction: column; align-items: center; }
.pricing__wellie { width: 112px; }
.pricing__card {
  width: 100%; max-width: 580px;
  display: flex; flex-direction: column; gap: 22px;
  padding: 24px;
  background: var(--card); border: 1px solid var(--divider); border-radius: var(--radius-panel);
}
.prices { display: flex; flex-direction: column; gap: 12px; }
.price { flex: 1 1 0; padding: 18px 20px; border-radius: var(--radius-card); background: var(--background); }
.price__amount { font-size: 30px; font-weight: 700; line-height: 1.15; }
.price__per { font-family: var(--font-ui); font-size: 14px; color: var(--text-secondary); }
.pricing__card strong { font-weight: 700; }
.pricing__card a { font-weight: 700; }
.terms {
  margin: 0; padding: 20px 0 0; list-style: none; border-top: 1px solid var(--divider);
  display: flex; flex-direction: column; gap: 10px;
  font-family: var(--font-ui); font-size: 14px; line-height: 1.45; color: var(--text-secondary);
}
.terms li { display: flex; gap: 10px; }
.terms li::before { content: ""; width: 6px; height: 6px; margin-top: 7px; border-radius: 3px; background: var(--primary); flex-shrink: 0; }

/* ---------- who we are ---------- */
.who { background: var(--card); border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.who__inner {
  max-width: calc(var(--content) + 2 * var(--screen-padding)); margin: 0 auto;
  padding: 56px var(--screen-padding);
  display: flex; flex-direction: column; gap: 20px;
}
.who__inner > div { display: flex; flex-direction: column; gap: 16px; }
.who__wellie { width: 104px; }
.legal { font-family: var(--font-ui); font-size: 13px; color: var(--text-secondary); }

/* ---------- contact + footer ---------- */
.contact {
  max-width: calc(var(--content) + 2 * var(--screen-padding)); margin: 0 auto;
  padding: 64px var(--screen-padding);
  display: flex; flex-direction: column; gap: 28px;
}
.contact .lead { color: var(--text-primary); }
.site-footer {
  max-width: calc(var(--content) + 2 * var(--screen-padding)); margin: 0 auto;
  padding: 28px var(--screen-padding) 40px;
  display: flex; flex-direction: column; gap: 8px;
  border-top: 1px solid var(--divider);
  font-family: var(--font-ui); font-size: 13px; color: var(--text-secondary);
}
.site-footer nav { font-size: 13px; font-weight: 400; gap: 12px; }
.site-footer a { color: var(--text-secondary); text-decoration: none; padding: 12px 0; }
.site-footer a:hover { color: var(--primary); }

/* ---------- desktop ---------- */
@media (min-width: 960px) {
  :root { --screen-padding: 80px; }
  h1 { font-size: 56px; }
  h2 { font-size: 34px; }
  .h3 { font-size: 28px; }
  .lead { font-size: 20px; }

  .site-header__inner { height: 76px; }
  .wordmark { font-size: 28px; }
  .nav { gap: 14px; font-size: 15px; }

  .hero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 96px; padding-top: 64px; padding-bottom: 88px; min-height: 760px; }
  .hero__text { gap: 24px; }
  .hero__text .lead { max-width: 440px; }
  .hero__wellie-img { width: 184px; }
  .hero__wellie .caption { padding-bottom: 30px; }
  .hero__media { display: flex; justify-content: center; }
  .phone--hero { --w: 300px; padding: 10px; width: calc(var(--w) + 22px); }
  .badges { display: flex; padding-top: 8px; }
  .badge { padding: 0 20px 0 16px; }

  .feature {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 96px; align-items: center;
    min-height: 780px; border-top: 0;
  }
  .feature__media { order: 0; padding: 40px; gap: 24px; }
  .feature--flip .feature__media { order: 2; }
  .feature__text { max-width: 480px; }
  .feature__wellie { width: 96px; }
  .phone { --w: 262px; padding: 10px; width: calc(var(--w) + 22px); }
  .phone--pair { --w: 200px; padding: 8px; width: calc(var(--w) + 18px); }
  .feature__media:has(.phone--pair) { padding: 40px 24px; }
  .phone--pair .phone__screen { padding: 24px 14px 14px; gap: 8px; }
  .phone--pair .phone__label { font-size: 11px; }
  .phone--pair .phone__name { font-size: 15px; }
  .phone--pair .phone__placeholder { font-size: 13px; }

  .feature-small { padding-top: 40px; padding-bottom: 80px; }
  .feature-small__card { flex-direction: row; justify-content: space-between; gap: 64px; padding: 0 72px; height: 440px; overflow: hidden; }
  .feature-small .feature__text { max-width: 520px; }
  .phone--small { --w: 170px; padding: 8px; width: calc(var(--w) + 18px); }

  .divider__wellie { width: 160px; }

  .pricing { padding: 72px var(--screen-padding); align-items: center; gap: 40px; text-align: left; }
  .pricing h2 { text-align: center; }
  .pricing__row { flex-direction: row; align-items: flex-end; gap: 24px; margin-left: -168px; }
  .pricing__wellie { width: 144px; margin-bottom: 8px; }
  .pricing__card { padding: 40px; }
  .prices { flex-direction: row; }
  .price__amount { font-size: 36px; }

  .who__inner { flex-direction: row; align-items: center; justify-content: center; gap: 64px; padding: 72px var(--screen-padding); }
  .who__inner > div { max-width: 500px; }
  .who__wellie { width: 200px; }

  .contact { align-items: center; text-align: center; padding: 80px var(--screen-padding); }
  .contact .lead { max-width: 560px; }

  .site-footer { flex-direction: row; align-items: center; justify-content: space-between; height: 96px; padding: 0 var(--screen-padding); }
}

/* ---------- wiring (not in the design export) ----------
   The export styles a PLACEHOLDER inside each phone and undoes its padding for an image with fixed
   negative margins, which only match the largest frame: in a paired phone they clip the status bar.
   A screen that holds a real image has no padding to undo. The legal pages share this sheet. */
.phone .phone__screen:has(> img) { padding: 0; } /* two classes, to outrank .phone--pair .phone__screen */
.phone__screen > img { margin: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }

.legal-page { max-width: calc(720px + 2 * var(--screen-padding)); margin: 0 auto; padding: 40px var(--screen-padding) 72px; }
.legal h1 { font-size: 34px; line-height: 1.15; margin-bottom: 16px; }
.legal h2 { font-size: 24px; margin: 40px 0 12px; }
.legal h3 { font-family: var(--font-editorial); font-size: 18px; font-weight: 700; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--text-secondary); }
.legal p { margin-bottom: 14px; }
.legal strong { color: var(--text-primary); font-weight: 700; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal hr { border: 0; border-top: 1px solid var(--divider); margin: 28px 0; }
.legal blockquote { margin: 0 0 14px; padding: 2px 0 2px 16px; border-left: 3px solid var(--divider); }
.legal code { font-size: .92em; background: var(--card); border: 1px solid var(--divider); padding: 1px 5px; border-radius: 5px; }
@media (min-width: 960px) { .legal h1 { font-size: 44px; } .legal h2 { font-size: 28px; } }
