/* Website Growth Labs — flagship landing (v2) */

@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-roman.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f3f0e7;
  --paper-2: #ebe6d8;
  --stage: #dfe3d6;
  --ink: #14231d;
  --ink-2: #4a564f;
  --line: rgba(20, 35, 29, 0.16);
  --green: #176b52;
  --green-deep: #0f3a2d;
  --amber: #d98d4b;
  --focus: #176b52;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --max: 1200px;
  --pad: clamp(20px, 4vw, 40px);
  --section: clamp(88px, 11vw, 152px);
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
p { text-wrap: pretty; }
.nw { white-space: nowrap; }
@media (max-width: 599px) { .nw { display: block; white-space: normal; } }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }

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

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  padding: 12px 18px; background: var(--ink); color: var(--paper);
  font-weight: 600; text-decoration: none; border-radius: 8px;
}
.skip:focus { top: 12px; }

.wrap { width: min(var(--max), 100% - 2 * var(--pad)); margin-inline: auto; }

/* Type primitives */
.label {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--green);
}
.label-light { color: var(--amber); }

h1, h2, h3 { font-family: var(--serif); font-weight: 380; text-wrap: balance; }
h2 {
  font-size: clamp(36px, 4.5vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.026em;
  font-variation-settings: "opsz" 72;
}
.label + h2 { margin-top: 20px; }
.section-lead { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px;
  border-radius: 999px;
  background: var(--green); color: #fff;
  font-family: var(--sans); font-size: 16.5px; font-weight: 600; line-height: 1;
  text-decoration: none; white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--green-deep); }
.btn:active { transform: translateY(1px); }
.btn .arrow { font-size: 18px; transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-small { min-height: 44px; padding: 0 20px; font-size: 15px; }

.link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 600; color: var(--ink);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px;
  text-decoration-color: rgba(20, 35, 29, 0.35);
}
.link:hover { text-decoration-color: var(--ink); }

/* Masthead */
.masthead { padding-block: 18px; }
.masthead-inner { display: flex; align-items: center; gap: 32px; }
.brand {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px;
  font-weight: 600; font-size: 17px; letter-spacing: -0.01em; text-decoration: none;
}
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none;
}
.nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding-top: clamp(28px, 5vw, 64px); padding-bottom: clamp(56px, 6.5vw, 96px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5.6fr) minmax(0, 6.4fr);
  gap: clamp(32px, 4.5vw, 64px);
  align-items: center;
}
.hero-copy { padding-bottom: 36px; }
h1 {
  margin-top: 22px;
  font-size: clamp(50px, 5.8vw, 86px);
  font-weight: 340;
  line-height: 0.98;
  letter-spacing: -0.032em;
  font-variation-settings: "opsz" 72;
}
h1 em { font-style: italic; font-weight: 340; color: var(--green); }
.lead { margin-top: 28px; max-width: 31em; font-size: clamp(17.5px, 1.45vw, 19.5px); line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 36px; }

/* Showcase: an example site on a laptop-width browser and a phone */
.showcase {
  margin-right: calc((min(var(--max), 100vw - 2 * var(--pad)) - 100vw) / 2);
}
.stage {
  position: relative;
  height: clamp(460px, 42vw, 600px);
  background: var(--stage);
  border-radius: 28px 0 0 28px;
}
.stage-clip { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.browser {
  position: absolute; top: 9%; left: 150px;
  width: min(760px, 96%);
  border-radius: 12px; overflow: hidden;
  background: #fbfaf6;
  box-shadow: 0 1px 0 rgba(20, 35, 29, 0.06), 0 2px 6px rgba(20, 35, 29, 0.06), 0 36px 70px -28px rgba(20, 35, 29, 0.42);
}
.browser-bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 36px; padding: 0 14px;
  background: #f1eee6; border-bottom: 1px solid rgba(20, 35, 29, 0.08);
}
.dots { display: flex; gap: 7px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #d3cec1; }
.url {
  padding: 4px 16px; border-radius: 7px; background: #fbfaf6;
  font-size: 12px; font-weight: 500; letter-spacing: 0.01em; color: #6a716c;
}
.phone {
  position: absolute; left: -34px; bottom: -48px;
  width: clamp(170px, 15.5vw, 212px);
  padding: 8px; border-radius: 38px;
  background: #18211d;
  box-shadow: inset 0 0 0 1.5px #3a443f, 0 40px 60px -24px rgba(20, 35, 29, 0.55);
}
.phone-screen {
  position: relative; overflow: hidden; border-radius: 30px;
  padding-top: 24px; background: #f5f0e6;
}
.phone-screen::before {
  content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 34%; height: 12px; border-radius: 999px; background: #18211d;
}
.showcase figcaption {
  margin-top: 70px; padding-left: 150px;
  font-size: 14px; color: var(--ink-2);
}

/* Outcomes */
.outcomes { padding-block: var(--section); border-top: 1px solid var(--line); }
.section-head {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px 64px; align-items: end;
}
.section-head h2 { max-width: 13em; }
.section-head .section-lead { max-width: 28em; padding-bottom: 6px; }

.moments {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px clamp(28px, 4vw, 56px);
  margin-top: clamp(56px, 7vw, 96px);
}
.moments li { padding-top: 26px; border-top: 2px solid var(--ink); }
.moment-when { font-size: 13px; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--green); }
.moments h3 {
  margin-top: 18px;
  font-size: clamp(30px, 2.8vw, 40px); line-height: 1.04; letter-spacing: -0.02em;
  font-variation-settings: "opsz" 60;
}
.moments p:last-child { margin-top: 16px; color: var(--ink-2); max-width: 30em; text-wrap: pretty; }

.daily {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 24px 56px;
  margin-top: clamp(64px, 8vw, 112px); padding-top: 28px;
  border-top: 1px solid var(--line);
}
.daily-title { font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.2; }
.daily ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px clamp(24px, 3.5vw, 48px); }
.daily li { font-size: 16px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.daily strong { display: block; margin-bottom: 6px; font-family: var(--serif); font-size: 23px; font-weight: 400; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); }

/* How it works */
.how {
  --focus: var(--amber);
  padding-block: var(--section);
  background: var(--green-deep);
  color: var(--paper);
}
.how-head h2 { max-width: 15em; }
.steps {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px clamp(28px, 4vw, 56px);
  margin-top: clamp(56px, 7vw, 88px);
}
.steps li { position: relative; padding-top: 30px; border-top: 1px solid rgba(243, 240, 231, 0.3); }
.steps li::before {
  content: ""; position: absolute; top: -5px; left: 0;
  width: 9px; height: 9px; border-radius: 50%; background: var(--amber);
}
.step-num { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; color: var(--amber); font-variant-numeric: tabular-nums; }
.steps h3 { margin-top: 14px; font-size: clamp(26px, 2.3vw, 32px); line-height: 1.1; letter-spacing: -0.015em; }
.steps p { margin-top: 14px; color: rgba(243, 240, 231, 0.78); max-width: 30em; text-wrap: pretty; }

.how-foot {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 40px 64px; align-items: end;
  margin-top: clamp(64px, 8vw, 104px); padding-top: 40px;
  border-top: 1px solid rgba(243, 240, 231, 0.3);
}
.requests ul { margin-top: 20px; }
.requests li {
  font-family: var(--serif); font-style: italic; font-weight: 340;
  font-size: clamp(26px, 2.6vw, 36px); line-height: 1.25; letter-spacing: -0.01em;
}
.requests li + li { margin-top: 4px; }
.boundary { max-width: 30em; font-size: 16px; color: rgba(243, 240, 231, 0.78); padding-bottom: 6px; }

/* Fit */
.fit { padding-block: var(--section); }
.fit-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px clamp(40px, 7vw, 104px);
  align-items: start;
}
.fit-head h2 { font-size: clamp(34px, 3.8vw, 52px); }
.fit-head .section-lead { margin-top: 24px; max-width: 26em; }
.fit-list { border-bottom: 1px solid var(--line); }
.fit-list li { padding: 28px 0 30px; border-top: 1px solid var(--line); }
.fit-list li:first-child { border-top: 2px solid var(--ink); }
.fit-list strong {
  display: block;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(25px, 2.3vw, 31px); line-height: 1.15; letter-spacing: -0.012em;
}
.fit-list span { display: block; margin-top: 8px; color: var(--ink-2); max-width: 34em; }

/* Closing */
.closing { padding-block: var(--section); background: var(--paper-2); }
.closing-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 40px 64px; align-items: end;
}
.closing h2 { font-size: clamp(42px, 5.6vw, 80px); line-height: 1; letter-spacing: -0.03em; font-weight: 340; max-width: 11em; }
.closing-body p:first-child { color: var(--ink-2); font-size: 18px; max-width: 26em; }
.closing-body .btn { margin-top: 28px; }
.closing-email { margin-top: 14px; font-size: 15px; }
.closing-email a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--ink-2); text-underline-offset: 5px; text-decoration-color: rgba(20, 35, 29, 0.3);
}

/* Footer */
.footer { padding-block: 28px; font-size: 14px; color: var(--ink-2); border-top: 1px solid var(--line); background: var(--paper-2); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand-footer { font-size: 15px; color: var(--ink); min-height: 0; }
.brand-footer img { width: 24px; height: 24px; border-radius: 6px; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .nav { display: none; }
  .masthead-inner { justify-content: space-between; }
  .browser { left: 120px; }
  .showcase figcaption { padding-left: 120px; }
}

@media (max-width: 899px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 0; }
  h1 { font-size: clamp(48px, 9vw, 76px); }
  .showcase { margin-right: calc((min(var(--max), 100vw - 2 * var(--pad)) - 100vw) / 2); margin-top: 8px; }
  .stage { height: clamp(380px, 62vw, 520px); }
  .browser { left: 31%; width: 86%; top: 11%; }
  .phone { left: 7%; bottom: -40px; width: clamp(160px, 25vw, 212px); }
  .showcase figcaption { padding-left: 31%; margin-top: 60px; }

  .section-head, .how-foot, .closing-grid, .fit-grid, .daily { grid-template-columns: 1fr; }
  .moments, .steps { grid-template-columns: 1fr; gap: 40px; }
  .moments p:last-child, .steps p { max-width: 34em; }
  .daily ul { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 599px) {
  body { font-size: 16.5px; }
  .masthead { padding-block: 12px; }
  .brand { font-size: 16px; gap: 10px; }
  .brand img { width: 32px; height: 32px; }
  .btn-small { padding: 0 16px; }

  .hero { padding-top: 24px; }
  .label { font-size: 12px; letter-spacing: 0.12em; }
  h1 { margin-top: 16px; font-size: clamp(44px, 12.6vw, 54px); line-height: 1; }
  .lead { margin-top: 20px; font-size: 17px; }
  .actions { margin-top: 28px; gap: 8px 22px; }

  /* On a phone the example shrinks to its own phone layout, cropped by the panel */
  .showcase { margin-inline: calc(-1 * var(--pad)); margin-top: 16px; }
  .stage { height: 400px; border-radius: 0; overflow: hidden; }
  .browser { display: none; }
  .phone { left: 50%; bottom: auto; top: 40px; transform: translateX(-50%); width: 232px; }
  .showcase figcaption { margin-top: 14px; padding-inline: var(--pad); font-size: 13.5px; }

  .moments h3 { font-size: 31px; }
  .daily { margin-top: 64px; }
  .requests li { font-size: 25px; }
  .closing h2 { font-size: clamp(40px, 11.5vw, 50px); }
  .closing-body .btn { width: 100%; }
  .footer-inner { font-size: 13.5px; }
}
