/*
 * Ember's landing site.
 *
 * Tokens are copied from docs/design.md (the YAML front matter is the source
 * of truth). If a colour or radius changes there, change it here too.
 */

@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('/fonts/playfair-display.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #f3863a;
  --primary-soft: #f79a55;
  --primary-deep: #e8722b;
  --primary-tint: #fdf0e6;
  --accent-text: #b75a17;
  --ink: #101010;
  --ink-pressed: #262626;
  --on-ink: #ffffff;
  --text: #141414;
  --text-secondary: #5c5048;
  --text-muted: #6e655e;
  --surface: #ffffff;
  --background: #fef7f0;
  --outline: #8a7f76;
  --outline-subtle: #e8e2dc;
  --disabled: #e8e2dc;
  --on-disabled: #6b5f56;
  --wash-apricot: #f6c9a0;
  --wash-peach: #fbe4cb;
  --wash-blush: #fdeedd;
  --lilac: #b072d8;
  --wash-lilac-3: #f3def5;
  --success: #2e7d4f;
  --error: #b3261e;
  --error-container: #fdecea;

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 21px;
  --r-xxl: 24px;
  --r-full: 9999px;

  --gutter: 22px;
  --measure: 34rem;
  --shadow-warm: 0 18px 40px -18px rgba(183, 90, 23, 0.35);
}

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

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--on-ink);
  border-radius: var(--r-full);
  z-index: 10;
}

.skip:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

/* ---------- The wash ---------- */

/* Starts warm at the top and burns out to pure white, as every app screen does. */
.wash {
  background: linear-gradient(
    180deg,
    var(--wash-apricot) 0%,
    var(--wash-peach) 38%,
    var(--wash-blush) 64%,
    #ffffff 100%
  );
}

/* ---------- Header ---------- */

.site-header {
  padding: 18px 0;
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.125rem;
  min-height: 44px;
}

.brand img {
  width: 36px;
  height: 36px;
}

.header-pill {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

/* ---------- Type ---------- */

.kicker {
  margin: 0 0 16px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-text);
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
}

h1 {
  font-size: clamp(2.5rem, 9vw, 4.25rem);
  line-height: 1.04;
}

h2 {
  font-size: clamp(2rem, 6.5vw, 3rem);
  line-height: 1.08;
}

h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.3;
}

.lede {
  margin: 18px 0 0;
  font-size: 1.1875rem;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: var(--measure);
}

.section {
  padding: 72px 0;
}

.flush-top {
  padding-top: 0 !important;
}

.gap-top {
  margin-top: 24px;
}

.kicker-lilac {
  color: #4a2a63;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 36px;
}

.section-head p {
  color: var(--text-secondary);
  margin: 14px 0 0;
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding-bottom: 56px;
}

.hero-copy {
  min-width: 0;
}

.hero .wrap {
  position: relative;
  display: grid;
  gap: 40px;
  padding-top: 28px;
}

/* The two suns from the app icon, drawn in CSS as decoration. */
.suns {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sun {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 55%,
    var(--primary) 0%,
    var(--primary-soft) 38%,
    rgba(253, 238, 221, 0.95) 78%,
    rgba(255, 247, 240, 0.9) 100%
  );
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7), 0 30px 60px -30px rgba(232, 114, 43, 0.6);
  opacity: 0.55;
}

.sun-big {
  width: 340px;
  height: 340px;
  right: -150px;
  top: -60px;
}

.sun-small {
  width: 150px;
  height: 150px;
  right: 40px;
  top: 210px;
  opacity: 0.45;
}

/* ---------- Waitlist ---------- */

.waitlist {
  margin-top: 30px;
  max-width: 30rem;
}

.btn {
  appearance: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

/* The app's primary button: an ink pill, label left, orange circle right. */
.btn-ink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 64px;
  padding: 9px 9px 9px 26px;
  border-radius: var(--r-full);
  background: var(--ink);
  color: var(--on-ink);
  font-size: 1.0625rem;
  font-weight: 600;
  text-align: left;
  box-shadow: var(--shadow-warm);
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.btn-ink:hover {
  background: var(--ink-pressed);
}

.btn-ink:active {
  transform: scale(0.99);
}

.btn-ink .dot {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--primary-soft), var(--primary-deep));
}

.btn-ink .dot svg {
  width: 20px;
  height: 20px;
}

.btn-ink[aria-disabled='true'] {
  background: var(--surface);
  color: var(--text);
  box-shadow: none;
  border: 1px solid var(--outline-subtle);
  cursor: default;
}

.btn-ink[aria-disabled='true'] .dot {
  background: var(--success);
}

.hint {
  margin: 12px 4px 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.link-btn {
  background: none;
  border: 0;
  padding: 10px 4px;
  min-height: 44px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.email-step {
  margin-top: 18px;
  padding: 22px;
  border-radius: var(--r-xxl);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-warm);
}

.email-step h2 {
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
}

.email-step > p {
  margin: 6px 0 16px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.field {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.field input[type='email'] {
  flex: 1 1 14rem;
  min-width: 0;
  min-height: 52px;
  padding: 0 20px;
  border-radius: var(--r-full);
  border: 1px solid var(--outline);
  background: var(--surface);
  font: inherit;
  font-size: 1rem;
  color: var(--text);
}

.field input[type='email']::placeholder {
  color: var(--text-muted);
}

.btn-flat {
  flex: 1 0 auto;
  min-height: 52px;
  padding: 0 24px;
  border-radius: var(--r-full);
  background: var(--ink);
  color: var(--on-ink);
  font-weight: 600;
  font-size: 1rem;
}

.btn-flat:hover {
  background: var(--ink-pressed);
}

.btn-flat[disabled] {
  background: var(--disabled);
  color: var(--on-disabled);
  cursor: progress;
}

/* Kept off-screen rather than display:none, so simple bots still fill it in. */
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.small {
  margin: 14px 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.status {
  margin: 14px 0 0;
  font-size: 0.9375rem;
  font-weight: 600;
}

.status:empty {
  display: none;
}

.status.is-error {
  color: var(--error);
}

.status.is-done {
  color: var(--success);
}

/* Without JavaScript the interest button can't count anything, so hide it and
   show the email form on its own. */
.no-js .needs-js {
  display: none !important;
}

/* With JavaScript, the email step waits until she asks for it. */
.js .email-step.is-collapsed {
  display: none;
}

/* ---------- Is / isn't ---------- */

.is-isnt {
  display: grid;
  gap: 32px;
}

.is-isnt ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  font-size: 1.25rem;
  line-height: 1.35;
}

.is-isnt .isnt li {
  color: var(--text-secondary);
}

.is-isnt .isnt li::before {
  content: '— ';
  color: var(--outline);
}

/* ---------- Value cards ---------- */

.cards {
  display: grid;
  gap: 16px;
}

.card {
  padding: 26px 22px;
  border-radius: var(--r-xxl);
  background: var(--surface);
  border: 1px solid var(--outline-subtle);
}

.card p {
  margin: 0;
  color: var(--text-secondary);
}

.card .num {
  display: block;
  font-family: var(--serif);
  font-size: 2.25rem;
  line-height: 1;
  font-weight: 600;
  color: var(--accent-text);
  margin-bottom: 18px;
}

.card-warm {
  background: linear-gradient(160deg, #fdebdd 0%, #ffffff 80%);
  border-color: #fbd3b2;
}

.card-lilac {
  background: linear-gradient(160deg, #f7f1fc 0%, #ffffff 80%);
  border-color: #ebddf7;
}

.card-rose {
  background: linear-gradient(160deg, #fdf0ec 0%, #ffffff 80%);
  border-color: #f9dcd6;
}

/* ---------- Screens ---------- */

.screens {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 44rem;
}

.screens figure {
  margin: 0;
}

.screens img {
  border-radius: 28px;
  box-shadow: var(--shadow-warm);
  border: 1px solid var(--outline-subtle);
}

.screens figcaption {
  margin-top: 12px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* ---------- Privacy ---------- */

.privacy-block {
  border-radius: var(--r-xxl);
  padding: 40px 24px;
  background: linear-gradient(180deg, var(--wash-lilac-3) 0%, #ffffff 100%);
}

.checks {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
  max-width: 40rem;
}

.checks li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
}

.checks svg {
  width: 24px;
  height: 24px;
  margin-top: 2px;
}

.checks p {
  margin: 0;
}

.checks strong {
  display: block;
}

.checks span {
  color: var(--text-secondary);
}

/* ---------- Founder note ---------- */

.note {
  max-width: 40rem;
}

.note blockquote {
  margin: 24px 0 0;
  font-family: var(--serif);
  font-size: clamp(1.375rem, 4.4vw, 1.75rem);
  line-height: 1.4;
  font-weight: 500;
  color: var(--ink);
}

.note blockquote p {
  margin: 0 0 18px;
}

.note .sign {
  font-weight: 600;
  color: var(--text-secondary);
}

/* ---------- Closing CTA ---------- */

.closing {
  background: linear-gradient(0deg, var(--wash-peach) 0%, #ffffff 100%);
}

.closing .btn-ink {
  max-width: 30rem;
  margin-top: 28px;
}

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

.site-footer {
  padding: 40px 0 56px;
  border-top: 1px solid var(--outline-subtle);
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.site-footer nav ul {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.site-footer nav a {
  display: inline-block;
  padding: 10px 0;
  color: var(--text);
  font-weight: 600;
}

.site-footer p {
  margin: 6px 0;
}

/* ---------- Plain pages (privacy, support, confirmed) ---------- */

.page {
  padding: 24px 0 72px;
}

.page .wrap {
  max-width: 44rem;
}

.page h1 {
  font-size: clamp(2.25rem, 8vw, 3.25rem);
}

.page h2 {
  font-size: clamp(1.5rem, 5vw, 1.875rem);
  margin: 44px 0 12px;
}

.page h3 {
  margin-top: 24px;
}

.page p,
.page li {
  color: var(--text-secondary);
}

.page strong {
  color: var(--text);
}

.page ul {
  padding-left: 1.2em;
}

.page li {
  margin: 6px 0;
}

.meta {
  margin-top: 14px;
  font-size: 0.9375rem;
}

.todo {
  background: #fff3cd;
  color: #5c4500;
  padding: 1px 6px;
  border-radius: 6px;
  font-weight: 600;
}

.table-wrap {
  overflow-x: auto;
  margin: 16px 0;
}

.page table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9375rem;
}

.page th,
.page td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--outline-subtle);
}

.page th {
  color: var(--text);
}

.panel {
  margin-top: 28px;
  padding: 24px;
  border-radius: var(--r-xxl);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-warm);
}

.panel p {
  margin: 0;
}

.panel .btn-ink {
  margin-top: 20px;
  max-width: 22rem;
}

/* ---------- Wider screens ---------- */

@media (min-width: 720px) {
  :root {
    --gutter: 32px;
  }

  .section {
    padding: 96px 0;
  }

  .hero .wrap {
    padding-top: 56px;
  }

  .sun-big {
    width: 460px;
    height: 460px;
    right: -60px;
    top: 40px;
  }

  .sun-small {
    width: 200px;
    height: 200px;
    right: 260px;
    top: 380px;
  }

  .is-isnt {
    grid-template-columns: 1fr 1fr;
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .screens {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: none;
    gap: 22px;
  }

  .privacy-block {
    padding: 56px 48px;
  }
}

@media (min-width: 1000px) {
  .hero-copy {
    max-width: 40rem;
  }
}
