/* Crinkle — crinkleapp.com
   Tokens are lifted from the app's "Grove" palette and type scale
   (ios/App/Sources/DesignSystem/AppColors.swift, AppFont.swift) so the site
   and the app read as the same product. Light values only: the site doesn't
   follow system appearance, but the dusk band below uses the dark palette's
   real values rather than an arbitrary dark grey. */

/* Self-hosted, not Google-hosted. A <link> to fonts.googleapis.com hands
   Google the IP and referring origin of every visitor -- an odd thing for a
   site whose privacy section explains the servers are self-hosted so that no
   third party holds the data. Latin subsets built from the same .ttf files
   the iOS app bundles; see assets/fonts/README.md for licensing.
   `font-display: swap` so text paints immediately in the fallback. */
@font-face {
  font-family: "Zen Maru Gothic";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/ZenMaruGothic-Bold.woff2") format("woff2");
}
@font-face {
  font-family: "Zen Maru Gothic";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/ZenMaruGothic-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/Nunito-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/Nunito-SemiBold.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/Nunito-Bold.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("assets/fonts/Nunito-ExtraBold.woff2") format("woff2");
}
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/Caveat-Bold.woff2") format("woff2");
}


:root {
  --surface:        #F7EFDE;
  --surface-warm:   #F2E7D6;
  --surface-raised: #FBF7ED;
  --text:           #38402F;
  --text-secondary: #787D67;
  --accent:         #647556;
  --accent-soft:    #DCDEBE;
  --star-gold:      #DBAE55;
  --star-gold-soft: #F7E6BC;
  --star-gold-on:   #6B4E16;
  --card-border:    #D8C8AC;
  --ink:            #38402F;

  /* Dusk — the app's dark mode, used for the privacy band. */
  --dusk:           #2E3527;
  --dusk-raised:    #3A4432;
  --dusk-text:      #F1EEDD;
  --dusk-secondary: #B9C2AC;
  --dusk-accent:    #A9BC9C;
  --dusk-border:    #3E4635;

  --display: "Zen Maru Gothic", ui-rounded, "Hiragino Maru Gothic ProN", system-ui, sans-serif;
  --body: "Nunito", ui-rounded, system-ui, -apple-system, sans-serif;
  --hand: "Caveat", ui-rounded, cursive;

  --measure: 34rem;
  --gutter: clamp(1.25rem, 5vw, 4rem);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(2.25rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; font-weight: 500; }
p { margin: 0 0 1rem; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text); }

.wrap { max-width: 68rem; margin: 0 auto; padding-inline: var(--gutter); }
.lede { font-size: 1.15rem; color: var(--text-secondary); max-width: var(--measure); }
.hand { font-family: var(--hand); font-size: 1.5rem; color: var(--star-gold-on); line-height: 1.3; }

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--card-border);
  background: var(--surface);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 1rem;
  min-height: 72px;
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text); margin-right: auto; }
.brand svg { width: 34px; height: 34px; display: block; }
.brand b { font-family: var(--display); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; }
.site-nav { display: flex; gap: clamp(.9rem, 2.5vw, 1.8rem); font-size: .95rem; font-weight: 600; }
.site-nav a { color: var(--text-secondary); text-decoration: none; }
.site-nav a:hover { color: var(--text); text-decoration: underline; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--body); font-weight: 700; font-size: 1rem;
  padding: .85rem 1.6rem; border-radius: 14px;
  text-decoration: none; border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #55634a; color: #fff; }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--card-border); }
.btn-secondary:hover { background: var(--surface-warm); color: var(--text); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1.75rem; }

/* ---------- hero ---------- */

.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem); }
.hero .wrap {
  display: grid; gap: clamp(2.5rem, 6vw, 4rem);
  grid-template-columns: minmax(0, 1.15fr) auto;
  align-items: center;
}
.hero h1 { margin: .4rem 0 1.1rem; }
.hero .lede { font-size: 1.22rem; color: var(--text); }
.status-note {
  margin-top: 1.5rem; font-size: .92rem; color: var(--text-secondary);
  display: flex; align-items: center; gap: .55rem;
}
.status-note::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--star-gold); flex: none;
}

/* ---------- sections ---------- */

section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-head { max-width: var(--measure); margin-bottom: 2.5rem; }
.section-head h2 { margin-bottom: .75rem; }
.section-head p { color: var(--text-secondary); margin: 0; }
.rule { border: 0; border-top: 1px solid var(--card-border); margin: 0; }

/* Glossary — the app's own vocabulary, typographically rather than as icons. */
.glossary { display: grid; gap: 0; border-top: 1px solid var(--card-border); }
.glossary > div {
  display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 1.5rem;
  padding: 1.6rem 0; border-bottom: 1px solid var(--card-border);
}
.glossary dt, .glossary h3 { font-family: var(--display); font-weight: 500; font-size: 1.25rem; }
.glossary p { margin: 0; color: var(--text-secondary); max-width: 36rem; }

/* ---------- dusk band ---------- */

.dusk { background: var(--dusk); color: var(--dusk-text); }
.dusk h2, .dusk h3 { color: var(--dusk-text); }
.dusk .section-head p, .dusk p { color: var(--dusk-secondary); }
.dusk .hand { color: var(--star-gold); }
.dusk .split { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.35rem; max-width: 38rem; }
.facts li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .9rem; }
.facts svg { width: 20px; height: 20px; margin-top: .35rem; flex: none; color: var(--dusk-accent); }
.facts b { display: block; font-weight: 700; color: var(--dusk-text); }
.facts span { color: var(--dusk-secondary); font-size: .97rem; }

/* ---------- cities ---------- */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.25rem; }
.card {
  background: var(--surface-raised); border: 1px solid var(--card-border);
  border-radius: 18px; padding: 1.5rem;
}
.card h3 { margin-bottom: .5rem; }
.card p { margin: 0; color: var(--text-secondary); font-size: .97rem; }
.badge {
  display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .07em;
  text-transform: uppercase; padding: .28rem .6rem; border-radius: 999px;
  background: var(--star-gold-soft); color: var(--star-gold-on); margin-bottom: .9rem;
}

.cta { background: var(--surface-warm); border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border); }
.cta .wrap { max-width: 44rem; text-align: center; }
.cta p { color: var(--text-secondary); }
.cta .btn-row { justify-content: center; }

/* ---------- footer ---------- */

.site-footer { padding: clamp(2.5rem, 5vw, 3.5rem) 0; font-size: .93rem; color: var(--text-secondary); }
/* Flex rather than a fixed grid: the home page footer is link columns only,
   the inner pages lead theirs with a colophon, and a track count that suits
   one leaves the other either stretched across the page or crammed. Columns
   take their natural width and pack left in both. */
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 2rem 4.5rem; }
.site-footer .wrap > div { flex: 0 1 auto; min-width: 11rem; }
/* The colophon column needs a stated basis. Left to `auto` its max-content
   width is the whole unwrapped sentence, which pushes the third column onto
   a second row on the inner pages. */
.site-footer .wrap > div:has(.colophon) { flex: 0 1 26rem; }
.site-footer h4 { font-family: var(--display); font-weight: 500; font-size: .95rem; color: var(--text); margin: 0 0 .6rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.site-footer a { color: var(--text-secondary); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.colophon { color: var(--text-secondary); font-size: .88rem; max-width: 30rem; }
.colophon b { color: var(--text); font-weight: 700; }

/* ---------- legal pages ---------- */

.doc { padding: clamp(2.5rem, 6vw, 4rem) 0 5rem; }
.doc .wrap { max-width: 46rem; }
.doc h1 { margin-bottom: .5rem; }
.doc .doc-meta { color: var(--text-secondary); font-size: .95rem; margin-bottom: 2.5rem; }
.doc h2 { font-size: 1.35rem; font-weight: 500; margin: 2.5rem 0 .75rem; }
.doc p { color: var(--text); }
.doc ul { padding-left: 1.2rem; color: var(--text); }
.doc li { margin-bottom: .5rem; }
.doc .caps { font-size: .93rem; color: var(--text-secondary); }
.doc-note {
  background: var(--surface-warm); border: 1px solid var(--card-border);
  border-radius: 16px; padding: 1.25rem 1.5rem; margin-bottom: 2.5rem;
  font-size: .95rem; color: var(--text-secondary);
}
.doc-note strong { color: var(--text); }
.back-link { display: inline-block; margin-bottom: 1.5rem; font-weight: 600; font-size: .95rem; text-decoration: none; }

/* ---------- phone mockup ---------- */

.phone {
  width: 300px; flex: none;
  border-radius: 40px; padding: 10px;
  background: #2b2f26; border: 1px solid #1f2419;
}
.phone-screen {
  border-radius: 31px; overflow: hidden; background: var(--surface);
  font-size: 13px; line-height: 1.45;
}
.phone.dark .phone-screen { background: var(--dusk); color: var(--dusk-text); }
/* The app's rule for the mark: the moon is whichever of the two tones is
   lighter, so on dusk it becomes the cream and the ink goes with it. */
.phone.dark { --moon: #F1EEDD; --mark-ink: #F1EEDD; }
.phone-status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 20px 2px; font-size: 11px; font-weight: 800;
}
.phone-status .dots { letter-spacing: 1px; opacity: .8; }
.phone-title { font-family: var(--display); font-weight: 700; font-size: 20px; padding: 6px 18px 0; }
.phone-city { padding: 2px 18px 10px; font-size: 11px; font-weight: 700; color: var(--text-secondary); }
.phone.dark .phone-city { color: var(--dusk-secondary); }
.phone-body { padding: 0 14px 12px; display: grid; gap: 9px; }
.p-card {
  background: var(--surface-raised); border: 1px solid var(--card-border);
  border-radius: 14px; padding: 11px 12px;
}
.phone.dark .p-card { background: var(--dusk-raised); border-color: var(--dusk-border); }
.p-row { display: flex; gap: 9px; align-items: flex-start; }
.p-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-weight: 800; font-size: 12px;
}
.p-name { font-weight: 800; font-size: 13px; }
.p-sub { color: var(--text-secondary); font-size: 11.5px; }
.phone.dark .p-sub { color: var(--dusk-secondary); }
.p-text { margin-top: 6px; font-size: 12.5px; }
.p-badge {
  display: inline-block; font-size: 8.5px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; padding: 2px 6px; border-radius: 999px;
  color: #fff; vertical-align: 2px; margin-left: 5px;
}
.p-tabs {
  display: flex; justify-content: space-around; padding: 9px 4px 12px;
  border-top: 1px solid var(--card-border); font-size: 9px; font-weight: 700;
  color: var(--text-secondary);
}
.phone.dark .p-tabs { border-color: var(--dusk-border); color: var(--dusk-secondary); }
.p-tabs span { display: grid; gap: 3px; justify-items: center; }
.p-tabs .on { color: var(--accent); }
.phone.dark .p-tabs .on { color: var(--dusk-accent); }
.p-tabs svg { width: 17px; height: 17px; }
.p-pill {
  border-radius: 999px; padding: 4px 10px; font-size: 10.5px; font-weight: 700;
  background: var(--accent-soft); color: var(--accent); display: inline-block;
}
.p-lock { display: flex; gap: 6px; align-items: center; font-size: 11px; color: var(--text-secondary); }
.phone.dark .p-lock { color: var(--dusk-secondary); }
.p-cta {
  background: var(--accent); color: #fff; border-radius: 11px;
  text-align: center; font-weight: 800; font-size: 12.5px; padding: 9px;
}
.phone.dark .p-cta { background: var(--dusk-accent); color: #24301E; }

.caption { font-size: .82rem; color: var(--text-secondary); text-align: center; margin-top: .9rem; }
.dusk .caption { color: var(--dusk-secondary); }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .hero .wrap, .dusk .split { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .hero .wrap > .phone-col, .dusk .split > .phone-col { justify-self: center; }
  .glossary > div { grid-template-columns: minmax(0, 1fr); gap: .4rem; }
}
@media (max-width: 700px) {
  /* The hand break in the headline is balanced for a wide measure; below
     that it just makes a third, stubby line. */
  .hero h1 br { display: none; }
}
@media (max-width: 520px) {
  /* Stacked buttons at two different widths read as an accident. */
  .btn-row .btn { flex: 1 1 100%; text-align: center; }
  .site-header .wrap { flex-wrap: wrap; min-height: 0; padding-top: .9rem; padding-bottom: .9rem; gap: .5rem 1rem; }
  .brand { margin-right: 0; width: 100%; }
  .phone { width: 280px; }
}

/* ---------- waitlist form ---------- */

/* Posts as a plain form, no JavaScript: the site ships `script-src 'none'`,
   and a form that needs no script is also one that works when a script is
   blocked, broken, or still loading. */
.signup { display: grid; gap: 1rem; max-width: 30rem; margin: 2rem auto 0; text-align: left; }
.signup .row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: .35rem; }
.field label { font-size: .85rem; font-weight: 700; color: var(--text); }
.field label span { font-weight: 400; color: var(--text-secondary); }
.field input {
  font-family: var(--body); font-size: 1rem; color: var(--text);
  background: var(--surface-raised); border: 1px solid var(--card-border);
  border-radius: 12px; padding: .7rem .85rem; width: 100%;
}
.field input::placeholder { color: var(--text-secondary); opacity: .7; }
.field input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.signup button { width: 100%; cursor: pointer; }
.form-note { font-size: .82rem; color: var(--text-secondary); margin: 0; }

/* The honeypot. Off-screen rather than `display:none`, which some bots skip;
   hidden from assistive tech and from the tab order, so no person meets it.
   `autocomplete="off"` and a non-standard field name keep password managers
   from filling it and tripping the check for a real signup. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 520px) {
  .signup .row { grid-template-columns: 1fr; }
}
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--text); cursor: pointer; }
.check input { margin-top: .2rem; accent-color: var(--accent); flex: none; }
/* Addresses that have to stay reachable (rights requests, legal process) but
   shouldn't be a one-click harvest. The zero-width span breaks the literal
   string for a naive scraper and copies clean for a person. This is friction,
   not protection -- anything parsing rendered text still reads it. */
.addr { white-space: nowrap; font-weight: 600; color: var(--text); }

/* ---------- studio site ---------- */

/* The discreet version of the home page: no mockups, no cards, no dusk band.
   Restraint comes from space and type rather than from having little to say --
   "minimal content" is one of the things Apple rejects a site for. */
.studio section { padding: clamp(2.75rem, 6vw, 4.25rem) 0; }
.studio .intro { padding-top: clamp(3.5rem, 8vw, 6rem); padding-bottom: clamp(3rem, 7vw, 5rem); }
.studio h1 { max-width: 20ch; margin-bottom: 1.25rem; }
.studio h2 {
  font-size: 1rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-secondary); margin-bottom: 1.75rem;
}
.studio h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.studio p { max-width: 38rem; }
.muted { color: var(--text-secondary); font-size: .95rem; }

/* One entry today. A definition list rather than a grid of cards, so a single
   product doesn't sit in a lonely box waiting for siblings. */
.ledger { margin: 0; }
.ledger > div { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 1.5rem; }
.ledger dt { font-family: var(--display); font-weight: 700; font-size: 1.35rem; }
.ledger dd { margin: 0; }
.ledger dd p:last-child { margin-bottom: 0; }

.notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 2rem 3rem; }
.notes p { margin: 0; color: var(--text-secondary); }

.contacts { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: .9rem; }
.contacts li { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 1rem; align-items: baseline; }
.contacts li > span:first-child { color: var(--text-secondary); font-size: .95rem; }

@media (max-width: 640px) {
  .ledger > div, .contacts li { grid-template-columns: minmax(0, 1fr); gap: .4rem; }
}
/* The opening statement is the one thing a reviewer reads first; it shouldn't
   sit in the secondary colour `.lede` defaults to. */
.studio .intro .lede { color: var(--text); font-size: 1.15rem; }
