/* ──────────────────────────────────────────────────────────────────────
   Icebreaker landing — brand tokens mirror artifacts/icebreaker/constants/design.ts.
   Patrick Hand for everything (the app uses it, the landing page should
   match — that's the brand). Off-white #E3E4DC ground, ink #171717 strokes,
   pastel cards, Dagsson punctuation accents, asymmetric corners.
   ────────────────────────────────────────────────────────────────────── */
:root {
  --ink: #171717;
  --paper: #e3e4dc;
  --paper-2: #ecede6;
  --white: #ffffff;
  --muted: #6b6b6b;

  --mint: #77d2a5;
  --mint-tint: #f0faf5;
  --rose: #ef8298;
  --rose-tint: #fdf0f3;
  --gold: #e0c043;
  --gold-tint: #faf6e8;
  --sky: #6ac6df;
  --sky-tint: #e8f4f8;
  --peach-tint: #fdefe5;
  --lilac-tint: #f1ecf8;

  /* Dagsson punctuation */
  --d-red: #fc0001;
  --d-yellow: #ffdf00;
  --d-green: #3e9a2f;
  --d-blue: #0361e7;

  /* Asymmetric corner radii — every card looks slightly hand-drawn */
  --r-card-tl: 3px;
  --r-card-tr: 14px;
  --r-card-br: 6px;
  --r-card-bl: 10px;

  --r-btn-tl: 4px;
  --r-btn-tr: 14px;
  --r-btn-br: 8px;
  --r-btn-bl: 12px;

  --r-chip-tl: 2px;
  --r-chip-tr: 16px;
  --r-chip-br: 4px;
  --r-chip-bl: 12px;

  --shadow-card: 0 2px 10px rgba(23, 23, 23, 0.08), 0 1px 3px rgba(23, 23, 23, 0.05);
  --shadow-lifted: 0 6px 24px rgba(23, 23, 23, 0.14), 0 2px 6px rgba(23, 23, 23, 0.08);

  --border: 2.5px solid var(--ink);
  --border-heavy: 3px solid var(--ink);
}

/* ── Reset / base ─────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: "Patrick Hand", system-ui, sans-serif;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  font-weight: normal;
  line-height: 1.1;
  margin: 0;
}
h1 em {
  font-style: italic;
  color: var(--d-red);
}

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 18px;
  text-decoration: none;
  cursor: pointer;
  border: var(--border);
  border-top-left-radius: var(--r-btn-tl);
  border-top-right-radius: var(--r-btn-tr);
  border-bottom-right-radius: var(--r-btn-br);
  border-bottom-left-radius: var(--r-btn-bl);
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-card);
  transition: transform 100ms ease, box-shadow 100ms ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lifted);
}
.btn:active {
  transform: translateY(0);
}
.btn--ink {
  background: var(--ink);
  color: var(--paper);
}
.btn--big {
  padding: 14px 26px;
  font-size: 22px;
}

/* ── Sticky nav ───────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(227, 228, 220, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: var(--border);
}
.nav__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 24px;
}
.nav__icon {
  width: 32px;
  height: 32px;
  border: var(--border);
  border-top-left-radius: var(--r-chip-tl);
  border-top-right-radius: var(--r-chip-tr);
  border-bottom-right-radius: var(--r-chip-br);
  border-bottom-left-radius: var(--r-chip-bl);
  background: var(--white);
}
.nav__wordmark {
  font-size: 26px;
}
.nav__links {
  display: flex;
  gap: 22px;
  margin-left: auto;
  margin-right: 18px;
  font-size: 19px;
}
.nav__links a {
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background 120ms ease;
}
.nav__links a:hover {
  background: rgba(23, 23, 23, 0.06);
}

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px 24px 100px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero__title {
  font-size: clamp(44px, 6vw, 76px);
  letter-spacing: -0.5px;
}
.hero__sub {
  font-size: clamp(20px, 2vw, 24px);
  color: var(--muted);
  margin: 24px 0 32px;
  max-width: 540px;
  line-height: 1.45;
}
.hero__fineprint {
  margin-top: 16px;
  font-size: 16px;
  color: var(--muted);
}

/* ── Phone mockup ─────────────────────────────────────────────────── */
.hero__phone {
  display: flex;
  justify-content: center;
  align-items: center;
}
.phone {
  width: 320px;
  aspect-ratio: 320 / 660;
  background: var(--ink);
  border-radius: 50px;
  padding: 12px;
  box-shadow: var(--shadow-lifted);
  position: relative;
  transform: rotate(-2deg);
}
.phone__notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 24px;
  background: var(--ink);
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.phone__screen {
  width: 100%;
  height: 100%;
  background: var(--paper-2);
  border-radius: 38px;
  overflow: hidden;
  position: relative;
}
.phone__screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
/* Fallback if no screenshot — show the icon centered on a paper background */
.phone__screenshot:not([src]),
.phone__screenshot[src=""] {
  display: none;
}
.phone__screen::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: var(--paper-2) url("/assets/placeholderlogo.png") center / 40% no-repeat;
  position: absolute;
  inset: 0;
  z-index: 0;
}
.phone__screenshot {
  position: relative;
  z-index: 1;
}

/* ── Section headings ─────────────────────────────────────────────── */
.section__title {
  font-size: clamp(36px, 4vw, 56px);
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

/* ── What the h*ll is it — positioning statement under the hero ───── */
.what {
  max-width: 920px;
  margin: 0 auto;
  padding: 70px 24px 30px;
  text-align: center;
}
.what__lede {
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.3;
  letter-spacing: -0.2px;
  margin: 18px auto 0;
  max-width: 760px;
}
.what em {
  font-style: italic;
  color: var(--d-red);
}

/* ── Tagline strip — three-beat promise between What and Why ───────── */
.tagline {
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 24px 40px;
  text-align: center;
}
.tagline__line {
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.4;
  letter-spacing: -0.1px;
  color: var(--ink);
}
.tagline__dash {
  color: var(--d-red);
  margin: 0 6px;
}

/* ── Why ──────────────────────────────────────────────────────────── */
.why {
  max-width: 1080px;
  margin: 0 auto;
  padding: 60px 24px 40px;
}
.why__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin: 60px 0;
}
.why__row--reverse .why__copy {
  order: 2;
}
.why__row--reverse .why__card {
  order: 1;
}
.why__copy h3 {
  font-size: clamp(28px, 3vw, 38px);
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}
.why__copy p {
  font-size: 20px;
  color: var(--muted);
  line-height: 1.5;
  max-width: 460px;
}

/* ── Cards (asymmetric corners + heavy border + soft shadow) ─────── */
.card {
  border: var(--border);
  border-top-left-radius: var(--r-card-tl);
  border-top-right-radius: var(--r-card-tr);
  border-bottom-right-radius: var(--r-card-br);
  border-bottom-left-radius: var(--r-card-bl);
  padding: 24px 26px;
  box-shadow: var(--shadow-card);
}
.card--mint { background: var(--mint-tint); }
.card--rose { background: var(--rose-tint); }
.card--gold { background: var(--gold-tint); }
.card--sky { background: var(--sky-tint); }
.card__quote {
  font-size: 22px;
  line-height: 1.4;
  margin: 0 0 12px;
}
.card__attrib {
  font-size: 16px;
  color: var(--muted);
  margin: 0;
}
.why__card {
  transform: rotate(-1.5deg);
}
.why__row--reverse .why__card {
  transform: rotate(1.5deg);
}

/* ── Vinur chat ───────────────────────────────────────────────────── */
.vinur {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 24px 100px;
  margin-top: 60px;
}
.vinur .section__title {
  color: var(--paper);
}
.vinur__lede {
  text-align: center;
  font-size: 22px;
  color: rgba(227, 228, 220, 0.7);
  margin: 0 0 48px;
}
.chat {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.chat__bubble {
  padding: 14px 18px;
  font-size: 19px;
  line-height: 1.45;
  max-width: 80%;
  border: var(--border);
  border-top-left-radius: var(--r-card-tl);
  border-top-right-radius: var(--r-card-tr);
  border-bottom-right-radius: var(--r-card-br);
  border-bottom-left-radius: var(--r-card-bl);
}
.chat__bubble p {
  margin: 0;
}
.chat__bubble p + p {
  margin-top: 10px;
}
.chat__bubble--user {
  align-self: flex-end;
  background: var(--sky-tint);
  color: var(--ink);
  border-color: var(--ink);
}
.chat__bubble--vinur {
  align-self: flex-start;
  background: var(--paper);
  color: var(--ink);
}
.chat__cta {
  font-size: 16px;
  color: var(--muted);
  border-top: 1px dashed rgba(23, 23, 23, 0.2);
  padding-top: 8px;
  margin-top: 10px !important;
}

/* ── Team ─────────────────────────────────────────────────────────── */
.team {
  max-width: 1080px;
  margin: 0 auto;
  padding: 80px 24px;
}
.team__lede {
  text-align: center;
  font-size: 22px;
  color: var(--muted);
  margin: 0 auto 48px;
  max-width: 620px;
}
.team__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
}
.team__card {
  /* 3 cards per row on desktop, with the last (orphan) row centered.
     Cards don't grow — flex: 0 — so a 2-card last row stays the same width. */
  flex: 0 1 calc((100% - 56px) / 3);
  min-width: 240px;
}
.team__card {
  border: var(--border);
  border-top-left-radius: var(--r-card-tl);
  border-top-right-radius: var(--r-card-tr);
  border-bottom-right-radius: var(--r-card-br);
  border-bottom-left-radius: var(--r-card-bl);
  padding: 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.team__card:hover {
  transform: translateY(-3px) rotate(-0.5deg);
  box-shadow: var(--shadow-lifted);
}
.team__card--mint { background: var(--mint-tint); }
.team__card--rose { background: var(--rose-tint); }
.team__card--gold { background: var(--gold-tint); }
.team__card--sky  { background: var(--sky-tint); }
.team__card--peach { background: var(--peach-tint); }
.team__card--lilac { background: var(--lilac-tint); }

.team__photo {
  width: 100%;
  aspect-ratio: 1;
  border: var(--border);
  border-top-left-radius: var(--r-card-tl);
  border-top-right-radius: var(--r-card-tr);
  border-bottom-right-radius: var(--r-card-br);
  border-bottom-left-radius: var(--r-card-bl);
  overflow: hidden;
  background: var(--white);
}
.team__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team__name {
  font-size: 30px;
  margin: 6px 0 0;
}
.team__role {
  font-size: 17px;
  color: var(--muted);
  margin: 0;
  letter-spacing: 0.2px;
  text-transform: lowercase;
}
.team__bio {
  font-size: 18px;
  margin: 6px 0 0;
  line-height: 1.45;
}

/* ── Pullquote (closing-argument bumper between Team and Waitlist) ── */
.pullquote {
  padding: 90px 24px 100px;
  text-align: center;
  background: var(--paper);
}
.pullquote > p:first-child {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.4px;
  margin: 0 auto;
  max-width: 920px;
}
.pullquote em {
  font-style: italic;
  color: var(--d-red);
}
.pullquote__sub {
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--muted);
  margin: 22px auto 0;
  max-width: 620px;
}

/* ── Waitlist ─────────────────────────────────────────────────────── */
.waitlist {
  background: var(--gold-tint);
  border-top: var(--border);
  border-bottom: var(--border);
  padding: 80px 24px;
}
.waitlist__inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.waitlist__lede {
  font-size: 21px;
  color: var(--muted);
  margin: 0 auto 36px;
  max-width: 520px;
}
.waitlist__form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.waitlist__input {
  flex: 1 1 280px;
  padding: 14px 18px;
  font-family: inherit;
  font-size: 20px;
  border: var(--border);
  border-top-left-radius: var(--r-btn-tl);
  border-top-right-radius: var(--r-btn-tr);
  border-bottom-right-radius: var(--r-btn-br);
  border-bottom-left-radius: var(--r-btn-bl);
  background: var(--white);
  color: var(--ink);
}
.waitlist__input:focus {
  outline: 3px solid var(--d-yellow);
  outline-offset: 2px;
}
.waitlist__honeypot {
  position: absolute;
  left: -9999px;
  visibility: hidden;
}
.waitlist__success {
  margin-top: 24px;
  font-size: 20px;
  color: var(--d-green);
}

/* ── Footer ───────────────────────────────────────────────────────── */
.foot {
  background: var(--ink);
  color: var(--paper);
  padding: 56px 24px 28px;
}
.foot__inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}
.foot__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  margin: 0 0 8px;
}
.foot__icon {
  width: 32px;
  height: 32px;
  border: 2.5px solid var(--paper);
  border-radius: 8px;
  background: var(--paper);
}
.foot__line {
  color: rgba(227, 228, 220, 0.7);
  margin: 0;
}
.foot__title {
  font-size: 18px;
  color: rgba(227, 228, 220, 0.7);
  margin: 0 0 8px;
  text-transform: lowercase;
  letter-spacing: 0.5px;
}
.foot__col p {
  margin: 0 0 6px;
}
.foot__col a {
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px dotted rgba(227, 228, 220, 0.4);
}
.foot__col a:hover {
  border-bottom-color: var(--paper);
}
.foot__legal {
  max-width: 1080px;
  margin: 36px auto 0;
  font-size: 15px;
  color: rgba(227, 228, 220, 0.5);
  text-align: center;
}

/* ── Mobile ───────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .nav__links {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 24px 64px;
    text-align: center;
  }
  .hero__sub {
    margin-left: auto;
    margin-right: auto;
  }
  .why__row,
  .why__row--reverse {
    grid-template-columns: 1fr;
    gap: 28px;
    margin: 40px 0;
  }
  .why__row--reverse .why__copy {
    order: 0;
  }
  .why__row--reverse .why__card {
    order: 0;
  }
  .why__copy p {
    max-width: none;
  }
  .team__grid {
    grid-template-columns: 1fr;
  }
  .foot__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .phone {
    width: 280px;
  }
}
