/* Styleme web — the app's bone-and-ink editorial voice, on paper and in the studio.
   Display: Newsreader 300–500 (the serif voice). Interface: Switzer 400–500.
   Paper #f4f2ee carries ink; studio panels are warm near-black and carry bone. */

:root {
  --paper: #f4f2ee;
  --ink: #171614;
  --ink-soft: #5f5b54;
  --ink-faint: rgba(23, 22, 20, 0.12);
  --studio: #121110;
  --studio-deep: #0c0b0a;
  --bone: #f2f0ec;
  --bone-soft: rgba(242, 240, 236, 0.64);
  --bone-faint: rgba(242, 240, 236, 0.16);
  --bronze: #a67c44;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Switzer", -apple-system, "Helvetica Neue", sans-serif;
  --radius-card: 26px;
  --radius-button: 999px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--sans);
  font-weight: 400;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

/* ── Header.
   Mustard Tree's construction, not a bar: the header itself stays transparent and a masked
   ::before carries a gradient that fades to nothing well below the nav, with a light blur
   behind it. There is no bottom edge to notice, so it never reads as a slab sitting on the
   page — which is exactly what the old 82%-opaque fill did. The scrim reaches 34px past the
   header, so `pointer-events` is off here and back on for the controls. ── */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  color: var(--bone);
  background: transparent;
  pointer-events: none;
  transition: color 0.28s ease;
}
.site-header::before {
  content: ""; position: absolute; inset: 0 0 -34px; z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(18, 17, 16, 0.62) 0%, rgba(18, 17, 16, 0.27) 56%, transparent 100%);
  backdrop-filter: blur(8px) saturate(125%);
  -webkit-backdrop-filter: blur(8px) saturate(125%);
  /* Feathering the blur itself is what removes the hard edge a plain background leaves. */
  mask-image: linear-gradient(to bottom, #000 0%, #000 38%, rgba(0, 0, 0, 0.78) 58%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 38%, rgba(0, 0, 0, 0.78) 58%, transparent 100%);
  opacity: 0;
  transition: opacity 0.28s ease, background 0.28s ease;
}
.site-header.is-scrolled::before { opacity: 1; }
/* Over the bone sections the scrim turns to paper and the type to ink. */
.site-header.over-paper { color: var(--ink); }
.site-header.over-paper::before {
  background: linear-gradient(180deg,
    rgba(244, 242, 238, 0.62) 0%, rgba(244, 242, 238, 0.27) 56%, transparent 100%);
}
/* The pill's border and fill are bone-tinted so they read on the dark hero; over paper
   they disappear into it, leaving a floating word. Restate both for the light state —
   `color: inherit` already carries the label from the header. */
.site-header.over-paper .nav-cta {
  border-color: rgba(23, 22, 20, 0.18);
  background: rgba(255, 255, 255, 0.62);
}
.site-header.over-paper .nav-cta:hover { background: rgba(255, 255, 255, 0.92); }

.site-header .wordmark,
.site-header .nav-cta { pointer-events: auto; }

.site-nav {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
}
.wordmark {
  font-family: var(--serif); font-weight: 400; font-size: 22px;
  letter-spacing: 0.01em; color: inherit; text-decoration: none;
}
.nav-cta {
  font-size: 14px; font-weight: 500; color: inherit;
  text-decoration: none; padding: 10px 18px;
  border: 1px solid var(--bone-faint); border-radius: var(--radius-button);
  background: rgba(242, 240, 236, 0.06);
  transition: background-color 0.2s ease, color 0.3s ease, border-color 0.3s ease;
}
.nav-cta:hover { background: rgba(242, 240, 236, 0.14); }

/* ── Studio panels ── */
.studio-panel {
  background: linear-gradient(180deg, var(--studio) 0%, var(--studio-deep) 100%);
  color: var(--bone);
}
.kicker {
  font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--bone-soft);
}
.studio-panel h1, .studio-panel h2 {
  font-family: var(--serif); font-weight: 350; line-height: 1.04;
  letter-spacing: -0.015em;
}
.studio-panel em { font-style: italic; font-weight: 300; }

/* Hero */
.hero { padding: 128px 24px 0; overflow: hidden; }
.hero-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  gap: 48px; align-items: end;
}
.hero-copy { padding: 48px 0 96px; }
.hero-copy h1 { font-size: clamp(44px, 6.2vw, 76px); margin: 18px 0 22px; }
.hero-copy h1 span { display: block; }
.hero-lede {
  font-size: 18px; line-height: 1.6; color: var(--bone-soft); max-width: 30em;
}
.hero-actions { display: flex; align-items: center; gap: 20px; margin-top: 34px; flex-wrap: wrap; }
.hero-note { font-size: 14px; color: var(--bone-soft); }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  height: 54px; padding: 0 28px; border-radius: var(--radius-button);
  font-family: var(--sans); font-size: 15px; font-weight: 500;
  text-decoration: none; transition: transform 0.15s ease, background-color 0.2s ease;
}
.button:active { transform: scale(0.98); }
.button--light { background: var(--bone); color: var(--ink); }
.button--light:hover { background: #ffffff; }
.button--dark { background: var(--ink); color: var(--bone); }
.button--dark:hover { background: #000; }

.hero-stage { display: flex; justify-content: center; }
/* ── The device.
   A real iPhone, built the way Mustard Tree builds it: a machined rail carrying the four
   physical buttons, a black bezel inside it, and the screenshot inside that. The metal is
   warm titanium here rather than MT's forest-tinted alloy, so it belongs to bone and bronze.
   The rail must NOT clip (`overflow` stays visible) — the buttons live outside its padding
   box and are drawn behind it, so only the part that protrudes shows. ── */
.phone {
  position: relative; z-index: 2;
  width: min(330px, 80vw);
  padding: 5px;
  border-radius: 53px;
  background: linear-gradient(112deg,
    #b9b2a6 0%, #4a453e 4%, #1c1917 18%, #100f0d 68%, #6e675c 94%, #17150f 100%);
  box-shadow:
    inset 1px 0 0 rgba(255, 250, 240, 0.36),
    inset -1px 0 0 rgba(232, 226, 214, 0.14),
    inset 0 1px 0 rgba(255, 250, 240, 0.25),
    -4px 0 14px -12px rgba(226, 214, 190, 0.42),
    4px 2px 16px -13px rgba(120, 110, 96, 0.38),
    0 18px 34px -28px rgba(0, 0, 0, 0.44),
    0 6px 14px -11px rgba(0, 0, 0, 0.28);
  transform: perspective(1200px) rotateY(-1.1deg) rotateX(0.35deg) rotate(0.6deg);
  transform-style: preserve-3d;
}
/* The hairline where the rail meets the glass. */
.phone::before {
  content: ""; position: absolute; inset: 1px;
  border: 1px solid rgba(236, 231, 219, 0.28);
  border-radius: 52px;
  box-shadow: inset 1px 0 0 rgba(255, 247, 232, 0.13), inset 0 0 0 1px rgba(0, 0, 0, 0.42);
  pointer-events: none; z-index: 4;
}
/* The contact shadow that sets the phone on the page rather than floating it. */
.phone::after {
  content: ""; position: absolute; left: 12%; right: 9%; bottom: -11px;
  height: 26px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.5); filter: blur(13px);
  transform: translateZ(-1px); pointer-events: none; z-index: -1;
}
.phone-screen {
  position: relative; width: 100%; padding: 3px;
  border: 1px solid rgba(0, 0, 0, 0.72);
  border-radius: 49px; overflow: hidden; background: #0a0a09;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 0 11px rgba(0, 0, 0, 0.42);
}
.phone-screen::before {
  content: ""; position: absolute; inset: 3px; border-radius: 45px;
  box-shadow: inset 0 0 0 1px rgba(19, 17, 13, 0.16);
  pointer-events: none; z-index: 2;
}
/* A single raking highlight across the glass — screen-blended so it lifts, never greys. */
.phone-screen::after {
  content: ""; position: absolute; inset: 3px; border-radius: 45px;
  background: linear-gradient(118deg,
    rgba(255, 250, 235, 0.095) 0%, rgba(255, 255, 255, 0.025) 19%,
    transparent 35%, transparent 78%, rgba(231, 224, 210, 0.022) 100%);
  mix-blend-mode: screen; pointer-events: none; z-index: 3;
}
.phone-screen img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 662 / 1440; object-fit: cover;
  border-radius: 45px;
}
.phone-button {
  position: absolute; display: block;
  border: 1px solid rgba(120, 114, 104, 0.42);
  background: linear-gradient(90deg, #14120f, #5c564e 48%, #221f1a);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.54);
  z-index: -1;
}
.phone-button--action { top: 17%; left: -4px; width: 4px; height: 31px; border-radius: 3px 0 0 3px; }
.phone-button--volume-up { top: 25%; left: -5px; width: 5px; height: 48px; border-radius: 4px 0 0 4px; }
.phone-button--volume-down { top: 32.5%; left: -5px; width: 5px; height: 48px; border-radius: 4px 0 0 4px; }
.phone-button--power { top: 25%; right: -5px; width: 5px; height: 72px; border-radius: 0 4px 4px 0; }
.hero-stage .phone { margin-bottom: -10%; }

/* ── Paper sections ── */
.paper-section { padding: 120px 24px; }
.section-intro { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.section-intro h2 {
  font-family: var(--serif); font-weight: 350; letter-spacing: -0.01em;
  font-size: clamp(34px, 4.6vw, 52px); line-height: 1.08;
}
.section-lede { font-size: 17px; line-height: 1.65; color: var(--ink-soft); margin-top: 16px; }

/* Two beats, side by side: what it already did, and what to do when tonight is different.
   No cards and no step numbers — the section is a claim, not a manual. */
.beats {
  max-width: 900px; margin: 0 auto; list-style: none;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 64px);
}
.beats h3 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(21px, 2.2vw, 26px);
  line-height: 1.2; letter-spacing: -0.008em; margin-bottom: 12px;
}
.beats p { font-size: 16px; line-height: 1.65; color: var(--ink-soft); }

.looks-grid {
  max-width: 1140px; margin: clamp(64px, 8vw, 104px) auto 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 32px);
}
.looks-grid figure { margin: 0; }
.looks-grid img {
  border-radius: var(--radius-card);
  box-shadow: 0 24px 70px rgba(23, 22, 20, 0.18);
}
.looks-grid figcaption {
  font-size: 13.5px; color: var(--ink-soft); margin-top: 14px; text-align: center;
}
.looks-note {
  margin-top: 34px; text-align: center;
  font-size: 14px; color: var(--ink-soft);
}

/* ── Trust ── */
/* Both sections sit on the same paper now, so the gap is the two paddings stacked —
   130 on top of 120 left a chasm. */
.trust-section { padding-top: 44px; }
.trust-list {
  max-width: 1080px; margin: 0 auto; list-style: none;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px;
}
.trust-list li { padding: 8px 4px; }
.trust-list h3 {
  font-family: var(--serif); font-weight: 400; font-size: 21px; margin-bottom: 10px;
}
.trust-list p { font-size: 15px; line-height: 1.62; color: var(--ink-soft); }

/* ── Closing ── */
.closing {
  margin: 0 16px 16px; border-radius: 34px;
  padding: 130px 24px; text-align: center;
}
.closing-copy h2 { font-size: clamp(40px, 5.6vw, 68px); margin: 16px 0 14px; }
.closing-copy h2 span { display: block; }
.closing-note { color: var(--bone-soft); margin-bottom: 30px; }

/* ── Footer ── */
.site-footer {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 24px 40px; gap: 16px; flex-wrap: wrap;
}
.site-footer a {
  color: var(--ink-soft); text-decoration: none; font-size: 14px; margin-right: 20px;
}
.site-footer a:hover { color: var(--ink); }
.site-footer small { color: var(--ink-soft); font-size: 13px; }

/* ── Small screens ── */
@media (max-width: 1180px) and (min-width: 901px) {
  .looks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 800px; }
  /* An odd figure would sit alone in a half-width column; let the third span both. */
  .looks-grid figure:nth-child(3) { grid-column: 1 / -1; max-width: 380px; margin: 0 auto; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 8px; }
  .hero-copy { padding: 24px 0 40px; text-align: center; }
  .hero-lede { margin: 0 auto; }
  .hero-actions { justify-content: center; }
  .hero-stage .phone { margin-bottom: -16%; }
  .phone { width: min(268px, calc(100% - 36px)); padding: 4px; border-radius: 43px; }
  .phone::before { border-radius: 42px; }
  .phone-screen { padding: 2px; border-radius: 40px; }
  .phone-screen::before, .phone-screen::after { inset: 2px; border-radius: 37px; }
  .phone-screen img { border-radius: 37px; }
  .phone-button--action { height: 26px; }
  .phone-button--volume-up, .phone-button--volume-down { height: 40px; }
  .phone-button--power { height: 60px; }
  .beats, .trust-list { grid-template-columns: 1fr; max-width: 560px; }
  .looks-grid { grid-template-columns: 1fr; max-width: 560px; }
  .closing { margin: 0 10px 10px; padding: 96px 20px; }
}

/* ─── The waitlist form, on the closing studio panel. ─── */
.waitlist-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; max-width: 460px; margin: 0 auto; }
.waitlist-input {
  flex: 1 1 220px; min-width: 0;
  font: inherit; font-size: 16px;
  padding: 13px 18px; border-radius: 999px;
  border: 1px solid rgba(244, 242, 238, 0.28);
  background: rgba(244, 242, 238, 0.08); color: var(--bone);
}
.waitlist-input::placeholder { color: var(--bone-soft); }
.waitlist-input:focus { outline: 2px solid var(--bone); outline-offset: 2px; }
/* The honeypot leaves the flow entirely — display:none tips off smarter bots. */
.waitlist-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.waitlist-status { color: var(--bone-soft); margin-top: 14px; min-height: 1.4em; }
.waitlist-status.is-done { color: var(--bone); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ─── The hanger.
   Inline SVG rather than the icon PNG so it takes `currentColor` — which means it turns
   from bone to ink with the header, instead of needing a second file. ─── */
.wordmark { display: inline-flex; align-items: center; gap: 9px; }
.wordmark .hanger { width: 26px; height: auto; flex: none; }
.site-footer small { display: inline-flex; align-items: center; gap: 8px; }
.site-footer .hanger { width: 20px; height: auto; flex: none; opacity: 0.8; }

/* The mark as a crest over the closing panel — centred above the kicker, sized so it reads
   as a signature rather than an icon. */
.hanger--crest {
  display: block; width: 42px; height: auto;
  margin: 0 auto 18px; color: var(--bone); opacity: 0.85;
}

/* ─── Reviews.
   Mustard Tree's construction in Styleme's palette. Deliberately built to be filled with
   REAL App Store reviews and a real rating — the whole reason MT's section persuades is
   that the names and the count can be checked against the listing it links to. ─── */
.reviews-section {
  /* Same paper as everything above it — a tinted band here just chopped the page in half. */
  position: relative; padding: 24px 24px 96px;
  color: var(--ink); text-align: center; overflow: hidden;
}
.reviews-intro h2 {
  font-family: var(--serif); font-weight: 350; letter-spacing: -0.02em;
  font-size: clamp(34px, 4.6vw, 52px); line-height: 1.05; margin: 0;
}
.review-rating { display: grid; justify-items: center; gap: 7px; margin-top: 22px; }
.review-rating span, .review-stars { color: var(--bronze); letter-spacing: 0.1em; }
.review-rating span { font-size: 19px; }
.review-rating small { color: var(--ink-soft); font-size: 13px; }
.review-grid {
  width: min(960px, 100%); margin: 52px auto 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px; text-align: left;
}
.review-card {
  min-height: 260px; padding: 32px 32px 28px;
  display: flex; flex-direction: column;
  border: 1px solid var(--ink-faint); border-radius: 26px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(248, 246, 240, 0.54));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 34px 74px -50px rgba(37, 34, 30, 0.3);
  backdrop-filter: blur(22px) saturate(120%);
  -webkit-backdrop-filter: blur(22px) saturate(120%);
}
.review-stars { font-size: 13px; }
.review-card h3 {
  font-family: var(--serif); font-weight: 400;
  margin: 18px 0 12px; font-size: 19px; letter-spacing: -0.01em;
}
.review-card blockquote { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.7; }
.review-card cite {
  display: block; margin-top: auto; padding-top: 20px;
  color: var(--ink-soft); font-size: 12px; font-style: normal;
}
/* The social-proof pill beside the wordmark. */
.nav-proof {
  display: inline-flex; align-items: center; gap: 7px;
  margin-left: 14px; padding: 5px 11px;
  border: 1px solid currentColor; border-radius: var(--radius-button);
  font-size: 12px; letter-spacing: 0.01em; opacity: 0.72;
}
.nav-proof .stars { color: var(--bronze); letter-spacing: 0.06em; }
@media (max-width: 900px) {
  .review-grid { grid-template-columns: 1fr; max-width: 560px; }
  .nav-proof { display: none; }
}
