/* ---------- Fonts (self-hosted, SIL OFL 1.1 — see /licenses) ---------- */
@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/fonts/montserrat-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/fonts/montserrat-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/fonts/montserrat-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --cream: #F6F2EC;
  --ink: #2B2724;
  --taupe: #EAE3DC;
  --dark: #2A2623;
  --sky-from: #8FAAC6;
  --sky-to: #F3C9A8;
  --muted: #6B625B;
  --line: rgba(43, 39, 36, 0.14);
  --on-dark: #F6F2EC;
  --on-dark-muted: rgba(246, 242, 236, 0.68);
  --line-dark: rgba(246, 242, 236, 0.16);

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --label: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --gutter: 20px;
  --max: 1120px;
  --section: clamp(88px, 14vw, 168px);
  --radius: 22px;
  --header: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
/* Short copy wraps into even lines, so no line ends up with a lone word or two. */
.lead, .widget-row p, .gallery-row p, .problem__question, .plan__note { text-wrap: balance; }
.nowrap { white-space: nowrap; }
/* Sentence-by-sentence line breaks, once there's room for them. */
@media (min-width: 680px) and (max-width: 959px), (min-width: 1024px) { .line { display: block; } }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

@media (min-width: 760px) { :root { --gutter: 40px; } }
@media (min-width: 1200px) { :root { --gutter: 56px; } }
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--cream); padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }

.label {
  font: 500 0.6875rem/1.4 var(--label);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.lead { font-size: clamp(1.0625rem, 2.2vw, 1.1875rem); color: var(--muted); max-width: 34em; }
.section { padding: var(--section) 0; }
.section-head { max-width: 40rem; margin-bottom: clamp(48px, 8vw, 88px); }
.section-head h2 { font-size: clamp(2.25rem, 6.4vw, 3.75rem); margin-bottom: 24px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .lead { margin: 0 auto; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 26px;
  border-radius: 999px;
  background: var(--ink); color: var(--cream);
  font: 500 0.6875rem/1 var(--label); letter-spacing: 0.24em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  transition: opacity 0.2s ease;
}
.button:hover { opacity: 0.85; }
.button--small { padding: 11px 18px; }

/* Placeholder for the official Google Play badge (set playBadgeImage in site.json). */
.play-button {
  display: inline-flex; align-items: center;
  height: 56px; padding: 0 26px;
  border-radius: 14px;
  background: #111; color: #fff; text-decoration: none;
  transition: opacity 0.2s ease;
}
.play-button:hover { opacity: 0.85; }
.play-button span { display: flex; flex-direction: column; font: 500 1.125rem/1.1 var(--sans); }
.play-button small { font: 500 0.5625rem/1.3 var(--label); letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.8; }
.play-badge img { height: 56px; width: auto; }

.soon {
  display: inline-flex; align-items: center; height: 56px; padding: 0 22px;
  border: 1px solid var(--line); border-radius: 14px;
  font: 500 0.625rem/1.4 var(--label); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
}
.store-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
/* Keeps the two side by side on phones instead of stacking at different widths. */
@media (max-width: 480px) {
  .play-button { padding: 0 20px; }
  .soon { padding: 0 14px; letter-spacing: 0.14em; }
}

/* ---------- Device frame ---------- */
/* Screenshots of any ratio fill the screen with object-fit: cover, so the layout never shifts. */
.device {
  margin: 0;
  width: min(300px, 72vw);
  padding: 9px;
  border-radius: 46px;
  background: #1F1C1A;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 40px 80px -30px rgba(42, 38, 35, 0.45),
    0 18px 36px -18px rgba(42, 38, 35, 0.3);
}
.device__screen {
  position: relative;
  aspect-ratio: 480 / 966;
  border-radius: 37px;
  overflow: hidden;
  background: var(--taupe);
}
.device__screen > img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.device__placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: #E2DAD1;
  color: var(--muted);
  font: 500 0.625rem/1.5 var(--label); letter-spacing: 0.24em; text-transform: uppercase; text-align: center;
  padding: 24px;
}
.device__placeholder img { width: 40px; opacity: 0.35; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 242, 236, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
}
.site-header__inner { display: flex; align-items: center; gap: 24px; height: var(--header); }
.site-header__logo img { height: 38px; width: auto; }
.site-header__nav { display: none; margin-left: auto; gap: 32px; }
.site-header__nav a {
  font: 500 0.6875rem/1 var(--label); letter-spacing: 0.24em; text-transform: uppercase;
  text-decoration: none; color: var(--muted); transition: color 0.2s ease;
}
.site-header__nav a:hover { color: var(--ink); }
.site-header .button { margin-left: auto; }
@media (min-width: 880px) {
  :root { --header: 84px; }
  .site-header__nav { display: flex; }
  .site-header .button { margin-left: 8px; }
  .site-header__logo img { height: 46px; }
}
@media (max-width: 380px) {
  .site-header__logo img { height: 32px; }
}

/* ---------- Hero ---------- */
.hero { background: var(--cream); }
.hero__inner {
  display: grid; gap: 48px; justify-items: center; text-align: center;
  padding-top: clamp(40px, 8vw, 72px); padding-bottom: clamp(64px, 10vw, 96px);
}
.hero h1 { font-size: clamp(3.25rem, 12vw, 6rem); margin-bottom: 24px; }
.hero h1 em { font-style: italic; }
.hero .label { margin-bottom: 24px; }
.hero .lead { margin: 0 auto 36px; max-width: 30em; }
.hero .store-row { justify-content: center; }
/* Flat taupe card behind the phone, the same idea as the social preview image. */
.hero__visual {
  display: flex; justify-content: center; align-items: center;
  width: 100%; padding: 40px 0;
  border-radius: 32px; background: var(--taupe);
}
.hero .device { width: min(280px, 68vw); }
@media (min-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr 1fr; text-align: left; justify-items: start; align-items: center; gap: 72px;
    min-height: calc(100svh - var(--header)); padding-top: 32px; padding-bottom: 56px;
  }
  .hero .lead { margin-left: 0; }
  .hero .store-row { justify-content: flex-start; }
  .hero__visual { padding: 48px 0; }
  .hero .device { width: clamp(240px, calc((100svh - var(--header) - 200px) / 2.02), 300px); }
}

/* ---------- Problem ---------- */
.problem__grid { display: grid; gap: 64px; justify-items: center; }
.problem__text { max-width: 38rem; }
.problem__text h2 { font-size: clamp(2.25rem, 6.4vw, 3.75rem); margin-bottom: 28px; }
.problem__text p + p { margin-top: 18px; }
.problem__question {
  margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line);
  font: italic 400 clamp(1.625rem, 4.2vw, 2.25rem)/1.25 var(--serif);
  color: var(--ink);
}
@media (min-width: 960px) {
  .problem__grid { grid-template-columns: 1fr auto; align-items: center; gap: clamp(48px, 6vw, 96px); justify-items: start; }
}

/* ---------- Widgets ---------- */
.widgets { background: var(--taupe); }
.widget-row { display: grid; gap: 48px; justify-items: center; }
.widget-row + .widget-row { margin-top: clamp(80px, 12vw, 128px); }
.widget-row__text { max-width: 26rem; width: 100%; }
.widget-row__num { font: 400 0.75rem/1 var(--label); letter-spacing: 0.3em; color: var(--muted); display: block; margin-bottom: 20px; }
.widget-row__kicker { font: 500 0.6875rem/1.4 var(--label); letter-spacing: 0.32em; text-transform: uppercase; margin-bottom: 14px; }
.widget-row h3 { font-size: clamp(2.5rem, 7vw, 4rem); margin-bottom: 22px; }
.widget-row p { color: var(--muted); }
.widget-row__quote { margin-top: 28px; font: italic 400 1.375rem/1.35 var(--serif); color: var(--ink); }
@media (min-width: 960px) {
  .widget-row { grid-template-columns: 1fr 1fr; align-items: center; gap: 72px; }
  .widget-row__text { justify-self: center; }
  .widget-row h3 { font-size: 3.25rem; }
  .widget-row .device { justify-self: center; }
  .widget-row:nth-child(odd) .widget-row__text { order: 2; }
}

/* ---------- Studio ---------- */
.studio { background: var(--dark); color: var(--on-dark); }
.studio .label, .studio .lead { color: var(--on-dark-muted); }
.studio__screens {
  display: flex; gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1); padding: 8px var(--gutter) 40px;
}
.studio__screens::-webkit-scrollbar { display: none; }
.studio__screens figure { margin: 0; flex: 0 0 auto; scroll-snap-align: center; }
.studio__screens .device { width: min(250px, 66vw); background: #151311; }
.studio__screens figcaption {
  margin-top: 20px; text-align: center;
  font: 500 0.625rem/1.4 var(--label); letter-spacing: 0.28em; text-transform: uppercase; color: var(--on-dark-muted);
}
@media (min-width: 960px) {
  .studio__screens { justify-content: center; gap: 48px; overflow: visible; margin: 0; padding: 0; }
  .studio__screens .device { width: 270px; }
  .studio__screens figure:nth-child(2) { transform: translateY(40px); }
}
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: clamp(56px, 8vw, 96px); padding: 0; list-style: none; }
.chips li {
  padding: 10px 18px; border: 1px solid var(--line-dark); border-radius: 999px;
  font: 400 1.0625rem/1.2 var(--serif); color: var(--on-dark);
}
.gallery-row { display: grid; gap: 48px; justify-items: center; margin-top: clamp(96px, 14vw, 160px); padding-top: clamp(72px, 10vw, 112px); border-top: 1px solid var(--line-dark); }
.gallery-row__text { max-width: 26rem; }
.gallery-row h3 { font-size: clamp(2.25rem, 6vw, 3.5rem); margin-bottom: 22px; }
.gallery-row p { color: var(--on-dark-muted); }
.gallery-row .gallery-row__quote { margin-top: 28px; font: italic 400 1.375rem/1.35 var(--serif); color: var(--on-dark); }
.gallery-row .device { background: #151311; }
@media (min-width: 960px) {
  .gallery-row { grid-template-columns: 1fr 1fr; align-items: center; gap: 72px; }
  .gallery-row__text { justify-self: center; }
}

/* ---------- Pricing ---------- */
.plans { display: grid; gap: 20px; max-width: 880px; margin: 0 auto; }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan {
  display: flex; flex-direction: column;
  padding: clamp(32px, 5vw, 48px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #FBF9F6;
}
.plan h3 { font: 500 0.75rem/1 var(--label); letter-spacing: 0.32em; text-transform: uppercase; margin-bottom: 28px; }
.plan__price { font: 400 3.5rem/1 var(--serif); }
.plan__price small { font: 400 1rem/1 var(--sans); color: var(--muted); margin-left: 4px; }
.plan__alt { margin-top: 10px; font-size: 0.9375rem; color: var(--muted); min-height: 1.7em; }
.plan__note { margin-top: 24px; font: italic 400 1.25rem/1.35 var(--serif); }
.plan ul { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.plan li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.plan--plus {
  background: var(--dark); color: var(--on-dark); border-color: transparent;
  position: relative; overflow: hidden;
}
.plan--plus .plan__price small, .plan--plus .plan__alt { color: var(--on-dark-muted); }
.plan--plus ul, .plan--plus li { border-color: var(--line-dark); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0; cursor: pointer; list-style: none;
  font: 400 clamp(1.25rem, 3vw, 1.5rem)/1.3 var(--serif);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; flex: 0 0 12px; height: 12px;
  background:
    linear-gradient(currentColor, currentColor) center / 12px 1px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1px 12px no-repeat;
  transition: transform 0.25s ease;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 0 28px; max-width: 40rem; color: var(--muted); }

/* ---------- Download CTA ---------- */
.download {
  background: var(--taupe);
  text-align: center;
}
.download__mark { width: 64px; margin: 0 auto 36px; }
.download h2 { font-size: clamp(2.75rem, 9vw, 5rem); margin-bottom: 20px; }
.download .lead { margin: 0 auto 44px; }
.download .store-row { justify-content: center; }
.download .soon { border-color: rgba(43, 39, 36, 0.22); }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--on-dark-muted); padding: 72px 0 40px; font-size: 0.875rem; }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid var(--line-dark); }
.site-footer__logo { height: 44px; width: auto; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.site-footer__links a {
  font: 500 0.6875rem/1 var(--label); letter-spacing: 0.24em; text-transform: uppercase;
  text-decoration: none; color: var(--on-dark);
}
.site-footer__links a:hover { opacity: 0.7; }
.site-footer__bottom { display: grid; gap: 14px; padding-top: 32px; }
.site-footer__business { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 0.8125rem; }
.site-footer a[href^="mailto"] { color: var(--on-dark); }

/* ---------- Sub pages ---------- */
.page { padding: clamp(64px, 10vw, 120px) 0 var(--section); }
.page__head { max-width: 720px; margin: 0 auto clamp(48px, 7vw, 72px); }
.page__head h1 { font-size: clamp(2.75rem, 9vw, 4.5rem); margin-bottom: 20px; }
.page__head p { color: var(--muted); }
.prose { max-width: 720px; margin: 0 auto; }
.prose h2 { font-size: clamp(1.75rem, 4vw, 2.25rem); margin: 56px 0 18px; }
.prose p + p { margin-top: 16px; }
.prose a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose ul { margin: 16px 0 0; padding-left: 1.25em; }
.prose li + li { margin-top: 10px; }
.prose ul + p, .prose table + p { margin-top: 16px; }
.prose strong { font-weight: 500; }
.prose h2 + p { margin-top: 0; }
.prose table { width: 100%; margin-top: 20px; border-collapse: collapse; font-size: 0.9375rem; }
.prose th, .prose td { padding: 12px 16px 12px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { font-weight: 500; }
.prose td:first-child { width: 34%; }
.prose a { overflow-wrap: anywhere; }
.notice {
  padding: 28px 32px; border: 1px dashed rgba(43, 39, 36, 0.3); border-radius: 16px; background: #FBF9F6;
}
.notice p { color: var(--muted); }
.notice .label { margin-bottom: 10px; }
.contact-card {
  max-width: 720px; margin: 0 auto 72px; padding: clamp(32px, 5vw, 48px);
  border-radius: var(--radius); background: var(--taupe);
}
.contact-card a.email { display: inline-block; margin: 6px 0 14px; font: 400 clamp(1.75rem, 5vw, 2.5rem)/1.2 var(--serif); text-decoration: none; border-bottom: 1px solid var(--line); word-break: break-all; }
.contact-card p { color: var(--muted); }
.page .faq { margin: 0; max-width: 720px; }
.page-section { max-width: 720px; margin: 0 auto; }
.page-section > h2 { font-size: clamp(1.75rem, 4vw, 2.25rem); margin-bottom: 28px; }
.license { padding: 32px 0; border-top: 1px solid var(--line); }
.license h2 { font-size: 1.75rem; margin-bottom: 6px; }
.license dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; margin: 16px 0 0; font-size: 0.9375rem; }
.license dt { color: var(--muted); }
.license dd { margin: 0; overflow-wrap: anywhere; }
.license-text {
  margin-top: 48px; padding: 28px; border-radius: 16px; background: var(--taupe);
  font: 400 0.8125rem/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere;
}
.license-text summary { cursor: pointer; font: 500 0.6875rem/1.4 var(--label); letter-spacing: 0.24em; text-transform: uppercase; }
