/* fifty50 sprint microsites — shared base
 * Brand tokens lifted from fifty50.co.uk (DM Sans + Inter Display, #f40 accent,
 * rule-based layout, no cards, huge lowercase section headlines).
 */

:root {
  /* Palette (from fifty50.co.uk tokens) */
  --ink:          #333336;   /* primary text */
  --ink-strong:   #000000;   /* hero / strong emphasis */
  --muted:        #8a8a91;   /* secondary text */
  --rule:         #e6e6e6;   /* 1px dividers */
  --paper:        #ffffff;
  --tint:         #f6f6f6;
  --accent:       #ff4400;   /* THE orange — CTAs, underlines, emphasis */

  /* Dark hero palette */
  --dark-bg:      #000000;
  --dark-ink:     #ffffff;
  --dark-muted:   #8a8a91;

  /* Type — DM Sans across the board (display + body) */
  --f-display: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --f-body:    "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --max:    1200px;
  --gutter: clamp(1.25rem, 3vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: clamp(1rem, 1.1vw, 1.0625rem);
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--f-body);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

p { margin: 0 0 1rem; max-width: 62ch; }
p:last-child { margin-bottom: 0; }

/* ---- Layout primitives ---------------------------------------------- */

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

section { border-top: 1px solid var(--rule); padding: clamp(3.5rem, 7vw, 6rem) 0; }
section.no-rule { border-top: 0; }

/* ---- Nav ------------------------------------------------------------- */

.site-nav {
  position: sticky; top: 0; z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.site-nav .inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--gutter);
  max-width: var(--max); margin: 0 auto;
}
.site-nav .brand {
  font-family: var(--f-body);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.site-nav .brand em { font-style: normal; color: var(--muted); }
.site-nav .links {
  display: flex; align-items: center; gap: 1.25rem;
  font-size: .95rem;
  font-weight: 500;
}
.site-nav .links a {
  padding-bottom: 2px;
  position: relative;
}
.site-nav .links a::after {
  content: ""; position: absolute; left: 0; bottom: -1px;
  height: 2px; background: var(--accent);
  width: 12px; transition: width .2s ease;
}
.site-nav .links a:hover::after { width: 100%; }

/* ---- Buttons / links ------------------------------------------------- */
/* fifty50 style — text with small orange underline that grows on hover */

.btn {
  display: inline-flex; align-items: baseline; gap: .6rem;
  padding: 0 0 3px;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: clamp(1.1rem, 1.4vw, 1.375rem);
  color: inherit;
  position: relative;
  cursor: pointer;
  background: none; border: 0;
  letter-spacing: -0.04em;
}
.btn::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  height: 3px; background: var(--accent);
  width: 14px; transition: width .22s ease;
}
.btn:hover::after { width: 100%; }
.btn.dark::after { background: var(--accent); }

/* ---- Hero ------------------------------------------------------------ */

.hero {
  background: var(--dark-bg);
  color: var(--dark-ink);
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 7vw, 5rem);
  position: relative;
  border-top: 0;
  overflow: hidden;
}
.hero .wrap { position: relative; z-index: 2; }

.hero .eyebrow {
  font-size: .8rem;
  letter-spacing: 0.02em;
  font-weight: 500;
  color: var(--dark-muted);
  text-transform: lowercase;
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  display: flex; align-items: center; gap: .75rem;
}
.hero .eyebrow::before {
  content: ""; width: 20px; height: 1px; background: var(--dark-muted);
}

.hero h1 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 8.5vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  max-width: 16ch;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.hero h1 .accent { color: var(--accent); }

.hero .lede {
  font-size: clamp(1.1rem, 1.5vw, 1.375rem);
  color: var(--dark-muted);
  max-width: 52ch;
  letter-spacing: -0.03em;
  line-height: 1.4;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 2.5rem 3rem;
  align-items: flex-end;
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-meta .price {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.04em;
}
.hero-meta .price small {
  display: block;
  font-family: var(--f-body);
  font-weight: 400;
  font-size: .85rem;
  color: var(--dark-muted);
  letter-spacing: 0.02em;
  text-transform: lowercase;
  margin-top: .5rem;
}
.hero-meta .btn { color: var(--dark-ink); font-size: 1.25rem; }

/* Four-corner plus decorations — fifty50's signature hero move */
.hero .plus {
  position: absolute;
  width: 16px; height: 16px;
  z-index: 1;
  color: var(--accent);
}
.hero .plus::before,
.hero .plus::after {
  content: ""; position: absolute;
  background: currentColor;
}
.hero .plus::before { top: 50%; left: 0; right: 0; height: 1px; transform: translateY(-50%); }
.hero .plus::after  { left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%); }
.hero .plus.tl { top: clamp(1rem, 3vw, 2.5rem); left: clamp(1rem, 3vw, 2.5rem); }
.hero .plus.tr { top: clamp(1rem, 3vw, 2.5rem); right: clamp(1rem, 3vw, 2.5rem); }
.hero .plus.bl { bottom: clamp(1rem, 3vw, 2.5rem); left: clamp(1rem, 3vw, 2.5rem); }
.hero .plus.br { bottom: clamp(1rem, 3vw, 2.5rem); right: clamp(1rem, 3vw, 2.5rem); }

/* ---- Section heads — huge lowercase Inter Display 800 ---------------- */

.section-label {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: .85rem;
  color: var(--muted);
  text-transform: lowercase;
  letter-spacing: 0;
  margin: 0 0 1rem;
  display: flex; align-items: center; gap: .75rem;
}
.section-label::before {
  content: ""; width: 20px; height: 1px; background: var(--muted);
}

.mega {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(3rem, 10vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  text-transform: lowercase;
  color: var(--ink-strong);
  margin-bottom: 2rem;
}
.mega .accent { color: var(--accent); }

.h2 {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--ink);
}

/* ---- Row blocks (the fifty50 "service card" pattern, no cards) ------- */

.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  padding: clamp(2rem, 4vw, 2.75rem) 0;
  border-bottom: 1px solid var(--rule);
}
.row:first-of-type { border-top: 1px solid var(--rule); }
@media (min-width: 820px) {
  .row { grid-template-columns: 2.5fr 4fr 3fr; gap: 2.5rem; align-items: start; }
  .row > :nth-child(2) { border-left: 1px solid var(--rule); padding-left: 2.5rem; }
  .row > :nth-child(3) { border-left: 1px solid var(--rule); padding-left: 2rem; }
}
.row .title {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: clamp(1.75rem, 2.8vw, 2.5rem);
  letter-spacing: -0.04em;
  line-height: 1.2;
  color: var(--ink-strong);
}
.row .desc {
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  color: var(--muted);
  letter-spacing: -0.03em;
  line-height: 1.35;
}
.row .list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.row .list li {
  font-size: clamp(1rem, 1.1vw, 1.15rem);
  color: var(--ink);
  letter-spacing: -0.03em;
}

/* ---- Timeline rows (Day/Week number in display face) ----------------- */

.step {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  padding: clamp(1.75rem, 3.5vw, 2.5rem) 0;
  border-bottom: 1px solid var(--rule);
}
.step:first-of-type { border-top: 1px solid var(--rule); }
@media (min-width: 820px) {
  .step { grid-template-columns: 220px 1fr; gap: 2.5rem; align-items: start; }
}
.step .when {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 2.8vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink-strong);
  text-transform: lowercase;
}
.step .what h3 {
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  margin-bottom: .5rem;
  color: var(--ink-strong);
}
.step .what p {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  color: var(--muted);
  letter-spacing: -0.03em;
  line-height: 1.45;
  max-width: 64ch;
}

/* ---- FAQs ------------------------------------------------------------ */

details {
  border-bottom: 1px solid var(--rule);
  padding: 1.25rem 0;
}
details:first-of-type { border-top: 1px solid var(--rule); }
details summary {
  cursor: pointer; list-style: none;
  font-family: var(--f-body); font-weight: 500;
  font-size: clamp(1.15rem, 1.6vw, 1.375rem);
  letter-spacing: -0.04em;
  color: var(--ink-strong);
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+";
  font-family: var(--f-body); color: var(--accent); font-size: 1.5rem;
  font-weight: 400;
  transition: transform .15s ease;
}
details[open] summary::after { transform: rotate(45deg); }
details p {
  margin: .8rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  letter-spacing: -0.03em;
}

/* ---- Book section (dark) --------------------------------------------- */

.book {
  background: var(--dark-bg);
  color: var(--dark-ink);
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  border-top: 0;
}
.book .section-label { color: var(--dark-muted); }
.book .section-label::before { background: var(--dark-muted); }
.book .mega { color: var(--dark-ink); }
.book .lede {
  color: var(--dark-muted);
  font-size: clamp(1.1rem, 1.4vw, 1.25rem);
  letter-spacing: -0.03em;
  max-width: 48ch;
  margin-bottom: 2rem;
}
.book a.email-link { color: var(--accent); }

.calendly-embed {
  background: var(--paper);
  min-width: 320px; min-height: 720px;
  margin-top: 2rem;
}
.calendly-embed noscript p { padding: 2rem; color: var(--muted); }

/* ---- Footer ---------------------------------------------------------- */

.foot {
  background: var(--paper);
  border-top: 1px solid var(--rule);
}
.foot .inner {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(2rem, 4vw, 3rem) var(--gutter);
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .foot .inner { grid-template-columns: 1fr 1fr auto; } }
.foot p { font-size: .9rem; color: var(--muted); margin: 0; }
.foot .links a {
  display: inline-block; margin-right: 1rem;
  font-size: .9rem; color: var(--muted);
  padding-bottom: 2px;
  position: relative;
}
.foot .links a::after {
  content: ""; position: absolute; left: 0; bottom: -1px;
  height: 2px; background: var(--accent);
  width: 10px; transition: width .2s ease;
}
.foot .links a:hover::after { width: 100%; }

/* ---- Two-column intro (for "who it's for" etc.) --------------------- */

.two-col {
  display: grid; gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 820px) {
  .two-col { grid-template-columns: 1fr 1.3fr; gap: 4rem; }
}
.two-col .lede {
  font-size: clamp(1.15rem, 1.4vw, 1.3rem);
  color: var(--muted);
  letter-spacing: -0.03em;
  line-height: 1.4;
  max-width: 48ch;
}

/* ---- Modes (Shopify: new vs rescue) --------------------------------- */

.modes {
  display: grid; gap: 0;
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--rule);
}
@media (min-width: 820px) {
  .modes { grid-template-columns: 1fr 1fr; }
  .modes > div + div { border-left: 1px solid var(--rule); padding-left: 2.5rem; }
}
.modes > div {
  padding: clamp(1.5rem, 3vw, 2.5rem) 0;
}
.modes > div + div { border-top: 1px solid var(--rule); }
@media (min-width: 820px) { .modes > div + div { border-top: 0; } }
.modes h3 {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 500;
  margin-bottom: .5rem;
}
.modes .price-line {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 2vw, 1.875rem);
  color: var(--ink-strong);
  margin-top: 1.5rem;
  letter-spacing: -0.04em;
}
.modes .list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .55rem; }
.modes .list li { color: var(--ink); font-size: clamp(1rem, 1.1vw, 1.125rem); letter-spacing: -0.03em; }
.modes .list li::before { content: "— "; color: var(--accent); font-weight: 500; }

/* ---- Utilities ------------------------------------------------------ */

.tint { background: var(--tint); }
.small { font-size: .9rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
