/* helloworker.ai: layout and visual language modelled on diabrowser.com (Refero style "Dia Browser"), with our own
   content, pictures and fonts. Dia's warm sunlight becomes the blue of our character. See ../DESIGN.md. */
@font-face {
  font-family: "Inter";
  src: url("inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("serif.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #fbfaf6;
  --card: #ffffff;
  --linen: #efefef;
  --ink: #02070a;
  --carbon: #636363;
  --slate: #888888;
  --silver: #c6c6c6;
  --line: rgba(0, 0, 0, 0.1);
  --sky-1: #7fcdf3;
  --sky-2: #0297de;
  --sky-3: #0277b6;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --window-shadow: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1)) drop-shadow(0 18px 24px rgba(0, 0, 0, 0.12)) drop-shadow(0 40px 64px rgba(0, 0, 0, 0.18));
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --max: 1200px;
  --gutter: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img,
video {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--sky-3);
  outline-offset: 3px;
  border-radius: 8px;
}
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 50;
  background: #fff;
  padding: 8px 12px;
}
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Floating nav pill */
.nav {
  position: fixed;
  top: 28px;
  left: 50%;
  z-index: 40;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 8px 6px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 0 2px rgba(0, 0, 0, 0.04);
}
.nav .mark img {
  width: 30px;
  height: 30px;
  margin-right: 6px;
  border-radius: 8px;
}
.nav a:not(.mark) {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 15px;
  color: rgba(0, 0, 0, 0.85);
  text-decoration: none;
  transition: background-color 0.2s var(--ease);
}
.nav a:not(.mark):hover,
.nav a[aria-current="page"] {
  background: var(--linen);
}

/* Hero: a stage of moving blue light, a serif line, the giant wordmark, the app on top */
.hero {
  position: relative;
  overflow: hidden;
  padding: 120px var(--gutter) 64px;
  background: var(--sky-2);
  isolation: isolate;
  color: #fff;
  text-align: center;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: -2;
  background:
    radial-gradient(28% 34% at 18% 22%, rgba(214, 235, 255, 0.85), transparent 70%),
    radial-gradient(30% 30% at 78% 18%, rgba(170, 212, 255, 0.75), transparent 70%),
    radial-gradient(36% 38% at 62% 70%, rgba(47, 102, 214, 0.75), transparent 70%),
    radial-gradient(30% 40% at 12% 82%, rgba(36, 84, 190, 0.7), transparent 70%),
    radial-gradient(22% 26% at 46% 44%, rgba(255, 255, 255, 0.35), transparent 70%);
  filter: blur(30px);
  animation: dapple 18s ease-in-out infinite alternate;
}
.hero::after {
  z-index: -1;
  opacity: 0.55;
  background:
    radial-gradient(14% 18% at 30% 40%, rgba(255, 255, 255, 0.55), transparent 70%),
    radial-gradient(12% 16% at 72% 52%, rgba(255, 255, 255, 0.45), transparent 70%),
    radial-gradient(10% 14% at 52% 18%, rgba(255, 255, 255, 0.4), transparent 70%);
  filter: blur(22px);
  animation-duration: 11s;
  animation-direction: alternate-reverse;
}
@keyframes dapple {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }
  100% {
    transform: translate3d(3%, 2%, 0) scale(1.06);
  }
}
.hero .tagline {
  margin: 0 auto;
  max-width: 18em;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 2vw + 18px, 46px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.hero .sub {
  max-width: 34em;
  margin: 16px auto 0;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}
.hero .detail {
  margin: 12px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
}
.hero .detail a {
  color: #fff;
}
.wordmark {
  position: relative;
  z-index: 0;
  margin: 18px 0 -0.32em;
  font-family: var(--serif);
  font-size: clamp(88px, 15.5vw, 240px);
  line-height: 0.85;
  letter-spacing: -0.035em;
  color: rgba(255, 255, 255, 0.96);
  white-space: nowrap;
  user-select: none;
}
.app-window {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  filter: var(--window-shadow);
  background: #fff;
}
.app-window img,
.app-window video {
  width: 100%;
  height: auto;
}

/* Buttons: white on the dark stage, black on paper, translucent pill for "watch" */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 20px;
  font: inherit;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), opacity 0.2s var(--ease);
}
.btn-white {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 8px 30px -8px rgba(0, 0, 0, 0.6);
}
.btn-white:hover {
  background: #f1f1f1;
}
.btn-glass {
  border-radius: 9999px;
  padding: 0 20px 0 14px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  backdrop-filter: blur(10px);
}
.btn-glass:hover {
  background: rgba(0, 0, 0, 0.5);
}
.btn-black {
  border-radius: 9999px;
  height: 52px;
  padding: 0 34px;
  background: var(--ink);
  color: #fff;
  font-size: 17px;
}
.btn-black:hover {
  background: #262626;
}
.btn-linen {
  border-radius: 9999px;
  background: var(--linen);
  color: var(--ink);
}
.btn-linen:hover {
  background: #e4e4e4;
}

/* Section headings: serif, light */
.title {
  margin: 0 auto;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 2.4vw + 20px, 54px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-align: center;
}
.lede {
  max-width: 36em;
  margin: 14px auto 0;
  text-align: center;
  font-size: 18px;
  line-height: 1.55;
  color: var(--carbon);
}

/* 01 02 03: sticky steps, the picture changes as you scroll */
.reads {
  position: relative;
  height: 300vh;
}
.reads-inner {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding: 90px 0 40px;
}
.reads-inner > .wrap {
  width: 100%;
}
.reads-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  gap: 48px;
  align-items: center;
  margin-top: 44px;
}
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps li {
  position: relative;
  padding: 10px 0 18px 22px;
  cursor: pointer;
}
.steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 18px;
  width: 2px;
  border-radius: 2px;
  background: var(--ink);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.steps li[aria-current="true"]::before {
  opacity: 1;
}
.steps .num {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--slate);
}
.steps h3 {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.15;
  color: var(--slate);
  transition: color 0.3s var(--ease);
}
.steps li[aria-current="true"] h3 {
  color: var(--ink);
}
.steps p {
  display: none;
  max-width: 24em;
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--carbon);
}
.steps li[aria-current="true"] p {
  display: block;
}
.shots {
  position: relative;
  aspect-ratio: 16 / 10;
}
.shots .app-window {
  position: absolute;
  inset: 0;
  max-width: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.shots .app-window.on {
  opacity: 1;
  transform: none;
}

/* Big two-column cards with a category pill */
.built {
  padding: 120px 0;
}
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
}
.card-text {
  padding: 28px 28px 20px;
}
.pill {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 9999px;
  background: var(--linen);
  font-size: 14px;
}
.card h3 {
  margin: 16px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.card p {
  margin: 10px 0 0;
  max-width: 30em;
  color: var(--carbon);
}
.card-picture {
  margin-top: auto;
  padding: 8px 28px 0;
}
.card-picture.bleed {
  padding: 8px 0 0 28px;
}
.card-picture img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: left top;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
}
.card-picture.bleed img {
  border-right: 0;
  border-radius: 12px 0 0 0;
}
.mock {
  margin: 8px 28px 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  font-size: 14px;
}
.ask-card {
  padding: 14px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.ask-card small {
  color: var(--slate);
}
.ask-card strong {
  display: block;
  margin: 2px 0 6px;
  font-weight: 600;
}
.ask-card q {
  display: block;
  margin: 0 0 12px;
  padding: 9px 11px;
  border-radius: 10px;
  background: #f3f3f3;
  color: #3a3a3a;
  quotes: none;
}
.ask-card .row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ask-card .ok {
  padding: 7px 14px;
  border-radius: 9999px;
  background: #1a1a1a;
  background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0));
  color: #fafafa;
  font-size: 13px;
  font-weight: 600;
}
.ask-card .no {
  color: #d93a32;
  font-size: 13px;
  font-weight: 600;
}
.voice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  padding: 8px 8px 8px 18px;
  border-radius: 26px;
  background: #f3f3f3;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}
.voice span {
  flex: 1;
}
.voice b {
  padding: 8px 12px;
  border-radius: 9999px;
  background: #d93a32;
  color: #fff;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.voice::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -26px;
  height: 52px;
  background: radial-gradient(closest-side, rgba(228, 108, 208, 0.55), transparent), radial-gradient(closest-side at 28% 50%, rgba(79, 139, 255, 0.6), transparent), radial-gradient(closest-side at 74% 50%, rgba(95, 211, 168, 0.5), transparent);
  filter: blur(10px);
}

/* The spectrum line, once per page */
.spectrum {
  height: 3px;
  background: linear-gradient(270deg, #fd02f5, #fa3d1d 16%, #ffb005 43%, #e1e1fe 72%, #0358f7 100%);
  background-size: 200% 100%;
  animation: marquee 6s linear infinite;
}
@keyframes marquee {
  to {
    background-position: -200% 0;
  }
}

/* Privacy: settings rows like the app's own */
.privacy {
  padding: 120px 0;
}
.toggles {
  max-width: 640px;
  margin: 40px auto 0;
  padding: 8px 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
}
.toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.toggle:last-child {
  border-bottom: 0;
}
.toggle span small {
  display: block;
  color: var(--carbon);
  font-size: 14px;
}
.switch {
  position: relative;
  flex: none;
  width: 44px;
  height: 26px;
  border-radius: 9999px;
  background: var(--ink);
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
}

/* Prices, on a lime-free editorial band (our wash is a pale blue) */
.prices-band {
  padding: 110px 0;
  background: #eaf2ff;
}
.prices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 1040px;
  margin: 44px auto 0;
}
.price {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--line);
}
.price h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--carbon);
}
.price .amount {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-size: 56px;
  line-height: 1;
}
.price .amount small {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--slate);
}
.price .per {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--carbon);
}
.price ul {
  margin: 20px 0 26px;
  padding: 0;
  list-style: none;
  font-size: 15px;
}
.price li {
  padding: 7px 0;
  border-top: 1px solid var(--line);
}
.price .btn {
  margin-top: auto;
}
.prices-note {
  margin: 26px 0 0;
  text-align: center;
  font-size: 15px;
  color: var(--carbon);
}
.prices-note a {
  color: var(--ink);
}

/* Final download with a light arc */
.final {
  position: relative;
  overflow: hidden;
  padding: 140px var(--gutter) 110px;
  text-align: center;
}
.final::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -60%;
  width: 150%;
  height: 120%;
  transform: translateX(-50%);
  border-radius: 50%;
  box-shadow: 0 -40px 90px 30px rgba(91, 151, 242, 0.45);
  pointer-events: none;
}
.final .title {
  margin-bottom: 30px;
}
.final .detail {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--carbon);
}

/* Footer */
.footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.footer .wrap {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 32px;
}
.footer .mark img {
  width: 140px;
  height: auto;
}
.footer p {
  margin: 14px 0 0;
  max-width: 260px;
  font-size: 14px;
  color: var(--carbon);
}
.footer h3 {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
}
.footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer li + li {
  margin-top: 8px;
}
.footer ul a {
  font-size: 15px;
  text-decoration: none;
}
.footer ul a:hover {
  text-decoration: underline;
}
.footer .legal-line {
  max-width: var(--max);
  margin: 44px auto 0;
  padding: 0 var(--gutter);
  font-size: 13px;
  color: var(--slate);
}

/* Download page */
.dl-hero {
  padding: 150px var(--gutter) 40px;
  text-align: center;
}
.dl-hero .detail {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--carbon);
}
.builds {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 1040px;
  margin: 40px auto 0;
}
.build {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
}
.build[data-yours] {
  border-color: var(--ink);
}
.build .yours {
  display: none;
  width: fit-content;
  margin-bottom: 12px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: #eaf2ff;
  font-size: 13px;
}
.build[data-yours] .yours {
  display: inline-block;
}
.build h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.1;
}
.build p {
  margin: 8px 0 22px;
  font-size: 14px;
  color: var(--carbon);
}
.build .btn {
  margin-top: auto;
}
.howto {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 1040px;
  margin: 44px auto 0;
}
.howto article {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
}
.howto h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
}
.howto ol {
  margin: 12px 0 0;
  padding-left: 20px;
  color: #333;
}
.howto li + li {
  margin-top: 6px;
}
.faq {
  max-width: 760px;
  margin: 40px auto 0;
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq details:first-child {
  border-top: 1px solid var(--line);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  color: var(--slate);
  font-size: 22px;
  line-height: 1;
  transition: rotate 0.2s var(--ease);
}
.faq details[open] summary::after {
  rotate: 45deg;
}
.faq details p {
  margin: 0 0 18px;
  color: var(--carbon);
}
.section {
  padding: 100px 0;
}

/* Text pages */
.text-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 150px var(--gutter) 100px;
}
.text-page h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 2.6vw + 26px, 64px);
  line-height: 1;
  letter-spacing: -0.015em;
}
.text-page h2 {
  margin: 36px 0 8px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
}
.text-page p,
.text-page li {
  color: #333;
}
.text-page a {
  color: var(--ink);
}
.note {
  margin: 20px 0 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--linen);
  font-size: 14px;
  color: var(--carbon);
}

@media (max-width: 960px) {
  .reads {
    height: auto;
  }
  .reads-inner {
    position: static;
    min-height: 0;
    padding: 90px 0;
  }
  .reads-grid,
  .cards,
  .prices,
  .builds,
  .howto {
    grid-template-columns: minmax(0, 1fr);
  }
  .steps p {
    display: block;
  }
  .steps h3 {
    color: var(--ink);
  }
  .footer .wrap {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .nav a.hide-sm {
    display: none;
  }
  .hero {
    padding-top: 104px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero::before,
  .hero::after,
  .spectrum {
    animation: none;
  }
  .shots .app-window {
    transition: none;
  }
}

/* Night: every page on black since 30 Oct 2026 (the home adds home.css on top). Same tokens, dark values. */
body.night {
  --paper: #02070a;
  --card: #0e0e0e;
  --linen: #1c1c1c;
  --ink: #f4f2ed;
  --carbon: #a19f9a;
  --slate: #8d8b86;
  --silver: #3a3a3a;
  --line: rgba(244, 242, 237, 0.14);
  --serif: var(--sans);
  -webkit-font-smoothing: antialiased;
}
body.night .title,
body.night .text-page h1,
body.night .text-page h2,
body.night .build h2,
body.night .howto h3 {
  font-weight: 600;
  letter-spacing: -0.04em;
}
/* The main action on every page in Electric Blue with Midnight text, like the app. */
body.night .btn-black,
.btn-blue { background: #0297de; color: #02070a; font-weight: 600; }
body.night .btn-black:hover,
.btn-blue:hover { background: #29a9e8; }
.btn-dark { background: var(--linen); color: var(--ink); }
.btn-dark:hover { background: #262626; }
body.night .nav {
  background: rgba(28, 28, 28, 0.72);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  backdrop-filter: blur(16px) saturate(140%);
}
body.night .nav a:not(.mark):hover,
body.night .nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.1); }
body.night .footer { background: #000; border-top: 1px solid var(--line); }
body.night .footer h3 { text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--ink); }
body.night .nav a:not(.mark) { color: var(--ink); }
body.night .build .yours { background: var(--ink); color: #000; }
body.night .text-page p,
body.night .text-page li { color: var(--carbon); }
body.night .text-page strong,
body.night .text-page b { color: var(--ink); }
body.night .howto ol { color: var(--carbon); }
