/* Ichidan — the app's paper and ink, set the way an Apple product page is set:
   system type, real device frames, one idea per section.
   Colours are Theme.swift's tokens. --muted is a little stronger than the app's
   mutedInk in light mode so small text clears 4.5:1 on paper. Sage marks the
   second line of each headline; clay is used only for marks, never small text. */

:root {
  --paper: #F2EFE9;
  --paper-2: #E9E4DB;
  --ink: #292624;
  --sage: #61735E;
  --sage-ink: #4E5F4B;
  --clay: #A87A59;
  --muted: rgba(41, 38, 36, .68);
  --line: rgba(41, 38, 36, .12);
  --card: rgba(255, 255, 255, .55);
  --art-hi: #FBFAF6;
  --night: #1B1A18;
  --night-ink: #EDEBE3;
  --bezel: #121110;
  --shadow: rgba(41, 38, 36, .28);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  /* New York on Apple devices, the face the app uses for its headings. Apple does
     not license it as a web font, so other systems fall back to Georgia. */
  --serif: ui-serif, "New York", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", Menlo, "Cascadia Mono", "DejaVu Sans Mono", monospace;
  --measure: 62ch;
  --gutter: clamp(16px, 5vw, 48px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #161514; --paper-2: #1E1D1B; --ink: #EDEBE3; --sage: #9EB599; --sage-ink: #9EB599; --clay: #D1A37A;
    --muted: rgba(237, 235, 227, .62); --line: rgba(237, 235, 227, .12); --card: rgba(255, 255, 255, .04); --art-hi: #2B2926;
    --night: #0E0D0C; --bezel: #050505; --shadow: rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #161514; --paper-2: #1E1D1B; --ink: #EDEBE3; --sage: #9EB599; --sage-ink: #9EB599; --clay: #D1A37A;
  --muted: rgba(237, 235, 227, .62); --line: rgba(237, 235, 227, .12); --card: rgba(255, 255, 255, .04); --art-hi: #2B2926;
  --night: #0E0D0C; --bezel: #050505; --shadow: rgba(0, 0, 0, .6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
figure { margin: 0; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: 500; }
h3 { font-family: var(--sans); }
p { margin: 0; max-width: var(--measure); }
p + p { margin-top: 14px; }
a { color: inherit; text-decoration-color: var(--muted); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
a:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; border-radius: 4px; }
em { font-style: normal; color: var(--sage-ink); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 12px; background: var(--paper); padding: 8px 12px; z-index: 10; }

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: var(--gutter); }

.label, .eyebrow {
  font: 600 12px/1.5 var(--mono);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow { color: var(--sage-ink); }

/* Header. On the home page it is a sticky bar; on the other pages it sits inside
   .wrap with a hairline under it. */
.mast { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.bar { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 82%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); border-bottom: 1px solid var(--line); }
.bar .mast { border-bottom: 0; padding-block: 12px; }
.lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.lockup svg { width: 22px; height: auto; fill: var(--ink); flex: none; }
.lockup span { font: 650 17px/1 var(--sans); letter-spacing: -.01em; }
.mast nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 28px); }
.mast nav a { font: 500 14px/1 var(--sans); text-decoration: none; color: var(--muted); padding-block: 8px; }
.mast nav a:hover, .mast nav a[aria-current="page"] { color: var(--ink); }
.mast nav .pill { color: var(--paper); background: var(--ink); padding: 9px 14px; border-radius: 999px; font-weight: 600; }
.mast nav .pill:hover { color: var(--paper); opacity: .88; }

/* App icon, drawn as a vector the same way the app's own icon is. */
.appicon { width: 96px; height: 96px; filter: drop-shadow(0 14px 22px var(--shadow)); }
.appicon .tile { fill: #F2EFE9; stroke: rgba(41, 38, 36, .1); stroke-width: 6; }
.appicon .glyph { fill: #292624; }

/* Apple's iPhone 17 Pro bezel, composited with the screenshot into one image.
   The marketing guidelines ask for the bezel as is: straight, whole, the same
   size as its neighbours, with no shadow and nothing laid over it. */
.phone { margin: 0; display: grid; justify-items: center; gap: 14px; }
.phone img { display: block; width: 100%; height: auto; }
.tag {
  font: 600 13px/1.2 var(--sans); color: var(--night-ink);
  background: rgba(27, 26, 24, .92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: 9px 13px; border-radius: 12px; white-space: nowrap;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .08);
}

/* Hero */
.hero { text-align: center; padding-block: clamp(56px, 9vw, 104px) 0; overflow: hidden; background: radial-gradient(80% 60% at 50% 0%, var(--card), transparent 70%); }
.hero .wrap { display: flex; flex-direction: column; align-items: center; }
.chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 28px 0 0; padding: 0; }
.chips li { font: 600 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--sage-ink); padding: 8px 12px; border-radius: 999px; background: color-mix(in srgb, var(--sage) 13%, transparent); }
.hero h1 { margin-top: 22px; font-size: clamp(54px, 10.5vw, 128px); line-height: .98; letter-spacing: -.025em; }
.lede { margin-top: 24px; font-size: clamp(18px, 2.2vw, 22px); line-height: 1.45; color: var(--muted); max-width: 36ch; }
.cta { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.store {
  display: inline-grid; text-align: left; gap: 3px;
  background: var(--ink); color: var(--paper);
  padding: 11px 22px 12px; border-radius: 14px;
  font: 650 18px/1.1 var(--sans); letter-spacing: -.01em;
}
.store small { font: 500 11px/1 var(--sans); letter-spacing: .01em; opacity: .75; }
.note { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* Three phones side by side, the same size. */
.trio { margin-top: clamp(56px, 8vw, 88px); display: grid; grid-template-columns: repeat(3, minmax(0, 240px)); justify-content: center; gap: clamp(16px, 3vw, 40px); width: 100%; }

/* Feature sections */
.feature { padding-block: clamp(72px, 11vw, 140px); }

.split { display: grid; gap: 48px; align-items: center; }
.copy { display: grid; gap: 18px; }
.feature h2, .pricing h2 { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.04; letter-spacing: -.02em; }
.feature h2 em, .pricing h2 em { display: block; }
.copy > p:not(.eyebrow) { font-size: 19px; color: var(--muted); max-width: 40ch; }
.checks { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; font-size: 16px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: color-mix(in srgb, var(--sage) 18%, transparent);
}
.checks li::after {
  content: ""; position: absolute; left: 7px; top: 6px; width: 5px; height: 9px;
  border: solid var(--sage-ink); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 240px)); justify-content: center; gap: clamp(16px, 3vw, 32px); }
.shots.one { grid-template-columns: minmax(0, 280px); }

.dark {
  background: radial-gradient(90% 70% at 50% 0%, #2B2925, var(--night) 70%);
  color: var(--night-ink);
  border-radius: clamp(24px, 4vw, 40px);
  padding: clamp(48px, 8vw, 96px) var(--gutter);
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.dark .eyebrow, .dark em { color: #9EB599; }
.dark > p:not(.eyebrow) { font-size: 19px; color: rgba(237, 235, 227, .7); max-width: 44ch; }
.dark .phone { width: min(100%, 300px); margin-top: 32px; }
.dark .tag { color: var(--night); background: var(--night-ink); box-shadow: none; }

/* Everything else */
.also { padding-block: clamp(24px, 4vw, 48px) clamp(72px, 10vw, 128px); }
.also h2 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -.015em; text-align: center; }
.grid { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 14px; }
.grid li { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: grid; gap: 8px; align-content: start; }
.grid svg { width: 26px; height: 26px; fill: none; stroke: var(--sage-ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 6px; }
.grid h3 { font-size: 18px; font-weight: 650; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.grid h3 span {
  font: 600 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--paper); background: var(--ink); padding: 4px 6px 3px; border-radius: 5px;
}
.grid p { font-size: 15px; color: var(--muted); }

.pricing { padding-block: clamp(72px, 10vw, 128px); background: var(--paper-2); text-align: center; }
.pricing .wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.plans { margin-top: 28px; display: grid; gap: 16px; width: 100%; max-width: 820px; text-align: left; }
.plans article { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 32px; display: grid; gap: 14px; align-content: start; }
.plans .pro { border: 1.5px solid var(--ink); box-shadow: 0 30px 60px -36px var(--shadow); }
.plans h3 { font-size: 20px; font-weight: 650; }
.price { font: 500 46px/1 var(--serif); letter-spacing: -.02em; }
.price small { font-family: var(--sans); font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.trial { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }
.fine { font-size: 14px; color: var(--muted); margin-top: 8px; }

.get { padding-block: clamp(88px, 12vw, 152px); text-align: center; }
.get .wrap { display: flex; flex-direction: column; align-items: center; }
.get h2 { margin-top: 28px; font-size: clamp(44px, 7vw, 80px); letter-spacing: -.025em; line-height: 1.02; }

/* Prose pages: privacy, support, 404 */
.doc { padding-block: clamp(48px, 8vw, 96px); display: grid; gap: 40px; }
.doc > header { display: grid; gap: 16px; }
.doc h1 { font-size: clamp(40px, 7vw, 72px); line-height: 1.04; letter-spacing: -.02em; }
.doc h2 { font-size: 26px; line-height: 1.2; letter-spacing: -.01em; }
.doc section { display: grid; gap: 14px; border-top: 1px solid var(--line); padding-top: 28px; }
.doc ul { margin: 0; padding-left: 1.2em; max-width: var(--measure); }
.doc li + li { margin-top: 6px; }
.doc .path { font: 500 14px/1.5 var(--mono); letter-spacing: .02em; }
.faq { display: grid; }
.faq article { border-top: 1px solid var(--line); padding-block: 24px 28px; display: grid; gap: 12px; scroll-margin-top: 24px; }
.faq article:last-child { border-bottom: 1px solid var(--line); }
.faq h3 { font-size: 20px; line-height: 1.3; font-weight: 650; }
.faq article:target h3 { text-decoration: underline; text-decoration-color: var(--sage); text-underline-offset: 6px; }
.faq .answer { display: grid; gap: 12px; }
.faq .answer p + p { margin-top: 0; }
.contact { font: 600 clamp(20px, 3vw, 28px)/1.3 var(--sans); letter-spacing: -.02em; }

/* Footer */
.foot { padding-block: 28px 48px; border-top: 1px solid var(--line); }
.foot .row { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot nav a, .foot small { font: 400 13px/1.6 var(--sans); color: var(--muted); }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--ink); }
.foot p { font-size: 14px; color: var(--muted); }

@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(48px, 7vw, 96px); }
  .split.flip .shots { order: 2; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .home .mast nav a:not(.pill) { display: none; }
  .trio { grid-template-columns: minmax(0, 240px); }
  .trio .phone:not(:nth-child(2)) { display: none; }
  .tag { font-size: 12px; padding: 8px 11px; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* The no-hang, explained in three drawings */
.how .intro { display: grid; gap: 18px; justify-items: center; text-align: center; }
.how .intro > p:not(.eyebrow) { font-size: 19px; color: var(--muted); max-width: 50ch; }
.steps { list-style: none; margin: clamp(40px, 6vw, 64px) 0 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--step-card); border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: grid; gap: 10px; align-content: start; }
.steps { --step-card: #FAF8F4; --art: #EEEAE2; --claywash: #E8D5C3; }
.steps li::before { content: counter(step, decimal-leading-zero); font: 600 12px/1 var(--mono); letter-spacing: .2em; color: var(--sage-ink); }
.steps .art { aspect-ratio: 6 / 5; margin: 6px 0 14px; border-radius: 18px; overflow: hidden; background: var(--art); border: 1px solid var(--line); }
.steps svg { display: block; width: 100%; height: 100%; }
.steps .solid { fill: var(--ink); }
.steps .label { font: 9px var(--mono); letter-spacing: 1.5px; fill: var(--muted); }
.steps .small { font-family: var(--mono); font-size: 8px; fill: var(--muted); }
.steps .small[font-size="7px"] { font-size: 7px; }
.steps .small[fill="var(--sage)"] { fill: var(--sage); }
.steps .label[fill="var(--ink)"] { fill: var(--ink); }
.steps .label[letter-spacing="1.8px"] { letter-spacing: 1.8px; }
.steps .digit { font-family: var(--mono); fill: var(--ink); text-anchor: middle; }
.steps h3 { font-family: var(--sans); font-size: 20px; line-height: 1.25; font-weight: 650; letter-spacing: -.015em; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .steps { --step-card: #211F1C; --art: #292621; --claywash: #49392C; }
}
:root[data-theme="dark"] .steps { --step-card: #211F1C; --art: #292621; --claywash: #49392C; }
.steps p { font-size: 15px; color: var(--muted); }
.how { padding-bottom: clamp(24px, 4vw, 48px); }
.gear { margin: 28px auto 0; max-width: none; text-align: center; font-size: 15px; color: var(--muted); text-wrap: balance; }
.get h2 em { display: block; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
