/* The next landing page: the frame, the nav, the sections and their rhythm (dark, then paper).
   Only tokens.css values; dawn.css holds the shared components. stage.css is the hero's demo,
   tiles.css the small product pictures inside the sections. */

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

/* Nav */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-height);
  border-bottom: var(--border) solid transparent;
  transition:
    background var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out);
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg-canvas) 80%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-color: var(--line);
}
.nav .container {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.nav-links {
  display: flex;
  gap: var(--space-1);
}
.nav-links a {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-control);
  font-size: var(--size-small);
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text-strong);
}
.nav-end {
  margin-inline-start: auto;
  display: flex;
  gap: var(--space-2);
  align-items: center;
}
.menu {
  display: none;
  position: relative;
}
.menu summary {
  list-style: none;
}
.menu summary::-webkit-details-marker {
  display: none;
}
.menu-panel {
  position: fixed;
  inset: var(--nav-height) 0 auto 0;
  display: grid;
  padding: var(--space-2) var(--gutter) var(--space-6);
  background: var(--bg-canvas);
  border-bottom: var(--border) solid var(--line);
}
/* The menu opens with joining, the page's one action, then every page. */
.menu-panel .menu-join {
  margin: var(--space-4) 0 var(--space-2);
}
.nav-discord .mark {
  fill: currentColor;
  stroke: none;
}
.menu-panel a {
  padding: var(--space-4) 0;
  color: var(--text-strong);
  text-decoration: none;
  font-size: 18px;
  border-bottom: var(--border) solid var(--line);
}

/* Sections */
.head {
  max-width: 760px;
}
.head.center {
  margin-inline: auto;
  text-align: center;
}
.head h2 {
  margin-top: var(--space-5);
}
.head .lead {
  margin-top: var(--space-6);
}
.head.center .lead {
  max-width: 620px;
  margin-inline: auto;
}
.center {
  text-align: center;
}
.under {
  margin-top: var(--space-8);
}
/* Paper: the light bands between dark ones, for air and rhythm. */
.paper {
  background: var(--bg-canvas);
  color: var(--text);
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: var(--space-20);
  align-items: center;
}
.split h2 {
  margin-top: var(--space-5);
}
.split .lead {
  margin-top: var(--space-6);
}
.split.ai {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}
.split.rev {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

/* The hero */
/* Text over the sunrise's glow (the hero's and the last call's) reads in --text, not the muted
   grays, and keeps a dark halo, so it reads on the bright rim (the founder, 25 November 2026). */
.hero,
.final {
  --over-glow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 10px rgba(0, 0, 0, 0.75);
}
.hero .lead,
.final .lead {
  color: var(--text);
  text-shadow: var(--over-glow);
}
.hero {
  position: relative;
  padding-top: calc(var(--nav-height) + var(--space-20));
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
/* The sunrise hangs from the bottom of the hero's words, so its rim always lands just under the
   app icons, whatever the width: the rim sits 36.7% of the image's height above its bottom. */
.hero-top {
  position: relative;
}
.hero-sun {
  --sun-height: 1180px;
  --rim-gap: 44px;
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: calc(-1 * (var(--rim-gap) + 0.367 * var(--sun-height)));
  width: 100vw;
  height: var(--sun-height);
  translate: -50% 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(transparent, #000 16%);
  mask-image: linear-gradient(transparent, #000 16%);
}
.hero-sun img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
}
.hero-sun::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 30%;
  background: linear-gradient(transparent, var(--bg-canvas));
}
.announce {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  /* One line on wide screens; a friend's longer line wraps to two on a phone, and the pill grows. */
  min-height: 32px;
  padding: var(--space-1) var(--space-4) var(--space-1) var(--space-3);
  border: var(--border) solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  font-size: var(--size-small);
  color: var(--text);
}
.announce .dot {
  color: var(--accent);
}
.hero h1 {
  margin-top: var(--space-6);
}
/* One headline in two beats. (Its entrance: hero-in.css.) */
.hero h1 .h-in {
  display: inline-block;
}
.hero h1 .h-dot {
  color: var(--accent);
}
.hero .lead {
  max-width: 720px;
  margin: var(--space-6) auto 0;
}
/* What the beta gives you, marked as with a highlighter (Dawn's Highlight): a see-through banana
   stripe behind the words, so the light words stay readable on it. hero-in.css draws it in. */
.hero .lead .hl {
  --hl-ink: color-mix(in srgb, var(--accent) 40%, transparent);
  padding: 0 0.12em;
  border-radius: 3px;
  background: linear-gradient(
      transparent 14%,
      var(--hl-ink) 14%,
      var(--hl-ink) 94%,
      transparent 94%
    )
    no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  color: var(--text-strong);
}

/* What early builders get, in one quiet line under the ask. */
.hero .perks {
  margin: var(--space-4) auto 0;
  font-size: var(--size-small);
  font-weight: var(--weight-medium);
  color: rgba(255, 255, 255, 0.92);
  text-shadow: var(--over-glow);
}

/* The ask: a sentence box, the page's one main action. */
.ask {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: min(100%, 680px);
  margin: var(--space-10) auto 0;
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-12);
  border: var(--border) solid var(--line-strong);
  border-radius: var(--radius-window);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-overlay);
  transition:
    border-color var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}
.ask:focus-within {
  border-color: var(--accent-line);
  box-shadow: var(--shadow-overlay), var(--glow-accent);
}
.ask-icon {
  position: absolute;
  inset: 0 auto 0 var(--space-4);
  display: grid;
  place-items: center;
  color: var(--accent-text);
}
/* One line, growing to two for a long idea (ask.js); the button beside it keeps its size. */
.ask textarea {
  flex: 1;
  min-width: 0;
  padding: var(--space-3) 0;
  border: 0;
  outline: 0;
  resize: none;
  overflow: hidden;
  background: transparent;
  color: var(--text-strong);
  font: inherit;
  font-size: var(--size-lead);
  line-height: var(--leading-ui);
  letter-spacing: var(--tracking-body);
}
/* The stage's own examples type on one line and scroll, so the page below never jumps. */
.ask textarea.typing {
  white-space: pre;
}
.ask textarea::placeholder {
  color: var(--text-subtle);
}
/* The picker: nine apps to watch being built. Each icon is a customer's app icon, so it carries
   that app's own colors; the ring that fills as it builds is Dawn's yellow (a live state). */
.picker {
  margin-top: var(--space-8);
}
.picker-label {
  font-size: var(--size-small);
  font-weight: var(--weight-medium);
  color: rgba(255, 255, 255, 0.92);
  text-shadow: var(--over-glow);
}
.icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3) var(--space-4);
  margin-top: var(--space-4);
}
.appicon {
  --p: 0;
  display: grid;
  justify-items: center;
  gap: var(--space-2);
  width: 76px;
  padding: var(--space-2) 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.86);
  font: inherit;
  font-size: 13px;
  font-weight: var(--weight-semibold);
  text-shadow: var(--over-glow);
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-out);
}
.appicon .ic {
  position: relative;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 17px;
  background: var(--ic, #333);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 10px 24px -8px var(--ic-glow, rgba(0, 0, 0, 0.6)),
    0 2px 4px rgba(0, 0, 0, 0.35);
  transition:
    transform var(--duration-base) var(--ease-rise),
    box-shadow var(--duration-base) var(--ease-out);
}
/* The gloss on every icon */
.appicon .ic::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 46%);
  pointer-events: none;
}
.appicon svg {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));
}
.appicon:hover {
  color: #ffffff;
}
.appicon:hover .ic {
  transform: translateY(-3px) scale(1.04);
}
.appicon:active .ic {
  transform: scale(0.96);
}
/* The one being built: lifted, with a ring that fills as it goes */
.appicon[aria-pressed="true"] {
  color: #ffffff;
}
.appicon[aria-pressed="true"] .ic {
  transform: translateY(-3px) scale(1.06);
}
.appicon[aria-pressed="true"] .ic::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 22px;
  padding: 2px;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--line-strong) 0);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: background var(--duration-slow) var(--ease-out);
}
.appicon.built .nm::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-inline-start: 6px;
  vertical-align: 2px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent);
}
.ic-shop {
  --ic: linear-gradient(150deg, #a3b09a, #55634f);
  --ic-glow: rgba(85, 99, 79, 0.7);
}
.ic-homes {
  --ic: linear-gradient(150deg, #60a5fa, #1e3a8a);
  --ic-glow: rgba(37, 99, 235, 0.6);
}
.ic-bakery {
  --ic: linear-gradient(150deg, #f6b27a, #9a3412);
  --ic-glow: rgba(154, 52, 18, 0.65);
}
.ic-dental {
  --ic: linear-gradient(150deg, #5eead4, #0f766e);
  --ic-glow: rgba(15, 118, 110, 0.65);
}
.ic-gym {
  --ic: linear-gradient(150deg, #2b3056, #0e1020);
  --ic-glow: rgba(200, 240, 75, 0.25);
}
.ic-gym svg {
  stroke: #c8f04b;
}
.ic-course {
  --ic: linear-gradient(150deg, #c4b5fd, #6d28d9);
  --ic-glow: rgba(109, 40, 217, 0.6);
}
.ic-trips {
  --ic: linear-gradient(150deg, #fdba74, #e11d48);
  --ic-glow: rgba(225, 29, 72, 0.55);
}
.ic-game {
  --ic: linear-gradient(150deg, #5b3fd6, #1d1352);
  --ic-glow: rgba(124, 92, 255, 0.6);
}
.ic-game svg {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
}
.ic-reach {
  --ic: linear-gradient(150deg, #3a3f4b, #0b0d12);
  --ic-glow: rgba(0, 0, 0, 0.7);
}

/* Works with */
.strip {
  padding-block: var(--space-10);
  border-block: var(--border) solid var(--line);
}
.strip .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-4) var(--space-8);
}
.strip ul {
  display: flex;
  gap: var(--space-8);
  margin: 0 var(--space-8) 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--size-lead);
  font-weight: var(--weight-medium);
  color: var(--text-strong);
  letter-spacing: var(--tracking-heading);
}

/* Lists of points */
.points {
  list-style: none;
  margin: var(--space-10) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-6);
}
.points li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: var(--space-4);
  color: var(--text-muted);
}
.points li .icon {
  margin-top: 3px;
  color: var(--text-strong);
}
.points b {
  display: block;
  color: var(--text-strong);
  font-weight: var(--weight-semibold);
}

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-16);
  align-items: start;
}
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}
.plan {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--space-8);
}
.price {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}
.price strong {
  font-size: 56px;
  line-height: 1;
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-display);
  color: var(--text-strong);
}
.price span {
  color: var(--text-muted);
  font-size: var(--size-small);
}
.plan ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
  font-size: 15px;
}
.plan li {
  display: flex;
  gap: var(--space-3);
}
.plan li .icon {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--accent-text);
  flex: none;
}
.ladder {
  display: grid;
  border-top: var(--border) solid var(--line);
}
.ladder div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: var(--border) solid var(--line);
  font-size: 15px;
}
.ladder b {
  color: var(--text-strong);
  font-weight: var(--weight-medium);
  font-family: var(--font-mono);
}

/* FAQ */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: var(--space-16);
}
.faq h2 {
  margin-top: var(--space-5);
}
.faq details {
  border-bottom: var(--border) solid var(--line);
  padding: var(--space-5) 0;
}
.faq details:first-child {
  border-top: var(--border) solid var(--line);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  color: var(--text-strong);
  font-weight: var(--weight-medium);
  font-size: 18px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  color: var(--text-subtle);
  font-weight: var(--weight-regular);
}
.faq details[open] summary::after {
  content: "–";
}
.faq details p {
  margin-top: var(--space-3);
  color: var(--text-muted);
  max-width: 620px;
}

/* The last call */
.final {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  padding-top: var(--space-32);
  padding-bottom: 340px;
  border-top: var(--border) solid var(--line);
}
.final-sun {
  position: absolute;
  z-index: -1;
  inset: auto 0 0 0;
  height: 640px;
  -webkit-mask-image: linear-gradient(transparent, #000 22%);
  mask-image: linear-gradient(transparent, #000 22%);
}
.final-sun img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 70%;
}
.final .lead {
  margin: var(--space-5) auto 0;
  max-width: 560px;
}
.small-ask {
  margin-top: var(--space-8);
}

/* A real screen in a phone: Reach's page, the market's and How it works' stage, wherever it shows */
.device {
  display: block;
  padding: 7px;
  border-radius: 40px;
  background: var(--sun-night);
  border: var(--border) solid var(--line-strong);
  box-shadow: var(--shadow-window);
}
.device img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 33px;
}

/* Footer */
.footer {
  padding-block: var(--space-12);
  border-top: var(--border) solid var(--line);
  background: var(--sun-night);
}
.footer .container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-8);
  align-items: end;
}
.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  font-size: var(--size-small);
}
.footer nav a {
  color: var(--text-muted);
  text-decoration: none;
}
.footer nav a:hover {
  color: var(--text-strong);
}
.footer small {
  grid-column: 1 / -1;
  color: var(--text-subtle);
  font-size: 13px;
}
.sleep {
  display: flex;
  align-items: flex-end;
  gap: var(--space-4);
}
.sleep p {
  font-size: var(--size-small);
  color: var(--text-strong);
  text-align: end;
  line-height: 1.4;
}
.sleep p span {
  color: var(--text-subtle);
}
.sleep img {
  width: 100px;
}

/* The start dialog */
.start {
  width: min(100% - 2 * var(--gutter), 480px);
  padding: var(--space-8);
  border: var(--border) solid var(--line-strong);
  border-radius: var(--radius-window);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-overlay);
}
.start::backdrop {
  background: color-mix(in srgb, var(--sun-night) 70%, transparent);
  backdrop-filter: blur(6px);
}
.start form {
  display: grid;
  gap: var(--space-5);
}
.start .top {
  display: flex;
  justify-content: space-between;
  align-items: start;
}
.start h2 {
  margin-top: var(--space-3);
  font-size: var(--size-h3);
}

/* Reveal on scroll: once, gently. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-rise);
}
.js [data-reveal].in {
  opacity: 1;
  transform: none;
}

/* Tablet */
@media (max-width: 1080px) {
  .split,
  .split.ai,
  .split.rev,
  .pricing,
  .faq {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }
  .split.rev > :first-child {
    order: 2;
  }
}

/* Three links fit beside the buttons down to about 960px; below it the menu takes them. */
@media (max-width: 960px) {
  .nav-links {
    display: none;
  }
  .menu {
    display: block;
  }
}

/* Phone */
@media (max-width: 720px) {
  /* Taller on phones, so the glow reaches back up behind the headline */
  .hero-sun {
    --sun-height: 1400px;
  }
  .nav-links,
  .nav-end .hide-sm {
    display: none;
  }
  .menu {
    display: block;
  }
  .btn-sm {
    --btn-h: var(--target);
    min-height: var(--target);
    min-width: var(--target);
  }
  .brand {
    min-height: var(--target);
  }
  .faq summary {
    min-height: var(--target);
    align-items: center;
  }
  .hero {
    padding-top: calc(var(--nav-height) + var(--space-12));
  }
  .hero .lead {
    font-size: 17px;
  }
  .ask {
    flex-wrap: wrap;
    padding: var(--space-2);
    padding-inline-start: var(--space-10);
  }
  .ask-icon {
    inset: var(--space-2) auto auto var(--space-3);
    height: 52px;
  }
  .ask textarea {
    font-size: 17px;
  }
  .icons {
    gap: var(--space-2) var(--space-1);
  }
  .appicon {
    width: 64px;
  }
  .appicon .ic {
    width: 54px;
    height: 54px;
    border-radius: 15px;
  }
  .appicon svg {
    width: 27px;
    height: 27px;
  }
  .ask .btn {
    margin-inline-start: calc(-1 * var(--space-8));
    width: calc(100% + var(--space-8));
  }
  .strip ul {
    gap: var(--space-5);
    margin: 0;
    font-size: 17px;
  }
  .strip .container {
    flex-direction: column;
    gap: var(--space-3);
  }
  .plans {
    grid-template-columns: 1fr;
  }
  .plan {
    padding: var(--space-6);
  }
  .final {
    padding-top: var(--space-20);
    padding-bottom: 240px;
  }
  .final-sun {
    height: 440px;
  }
  .footer .container {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .footer nav {
    gap: 0 var(--space-6);
  }
  .footer nav a {
    display: inline-flex;
    align-items: center;
    min-height: var(--target);
  }
  .sleep {
    justify-content: flex-end;
  }
}
