/*
  Ownhand — product page.

  Tokens are lifted from the app, not invented for the web: the pale cool paper,
  the single deep blue, and the near-black ink are the app's own welcome screen.
  The house rule applies here as everywhere — one accent, and it is the blue.

  The app is native SwiftUI, so its type is the system face. The page uses the
  same system stack rather than importing a webfont that would only approximate
  it. Nothing here loads from a third party, which also keeps the page on the
  domain's default `script-src 'none'` with no CSP exception.
*/

:root {
  --paper: #f4f5f7;
  --surface: #ffffff;
  --surface-sunken: #eceef2;

  --ink: #0f1222;
  --ink-soft: #454a5e;
  --ink-muted: #6b7185;

  --blue: #1f3fb8;
  --blue-deep: #17309140;
  --blue-wash: rgba(31, 63, 184, 0.07);

  --hair: rgba(15, 18, 34, 0.1);
  --hair-firm: rgba(15, 18, 34, 0.16);

  --radius: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --col: 1100px;
  --gutter: clamp(22px, 5vw, 40px);
  --section: clamp(64px, 8vw, 104px);

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, ul, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus-visible {
  left: 0;
  top: 0;
  z-index: 10;
  background: var(--ink);
  color: var(--surface);
  padding: 12px 18px;
  text-decoration: none;
}

.wrap {
  width: 100%;
  max-width: var(--col);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { padding-block: var(--section); }

/* ---------- topbar ---------- */

.topbar {
  border-bottom: 1px solid var(--hair);
  background: var(--surface);
}

.topbar-inner {
  height: 66px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.mark {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.mark img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

.topbar-link {
  margin-left: auto;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 140ms var(--ease);
}
.topbar-link:hover { color: var(--ink); }

/* ---------- type ---------- */

.eyebrow {
  font: 500 11px/1.2 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
}

h1 {
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--ink);
  margin-top: 20px;
  text-wrap: balance;
}

.lede {
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 54ch;
  margin-top: 20px;
  text-wrap: pretty;
}

h2 {
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--ink);
  margin-top: 14px;
  max-width: 22ch;
  text-wrap: balance;
}

h3 {
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-weight: 600;
  color: var(--ink);
}

.section-lede {
  margin-top: 16px;
  max-width: 58ch;
  font-size: 17px;
  color: var(--ink-muted);
  text-wrap: pretty;
}

/* ---------- status ---------- */

/* Ownhand is not in the App Store yet, and the page says so before it says
   anything else. The studio's rule is that a dead store button is worse than
   no store button, so there are none. */
.status {
  display: inline-block;
  margin-top: 28px;
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  background: var(--blue-wash);
  color: var(--blue);
  font: 500 13px/1 var(--sans);
}

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

.hero { padding-block: clamp(48px, 7vw, 84px) clamp(40px, 6vw, 72px); }

/* The specimen is the argument: a real font, built from eight written lines,
   rendered at the size someone would actually read it. */
.specimen {
  margin-top: 44px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 3vw, 34px);
}

.specimen img { width: 100%; }

.specimen figcaption {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--hair);
  font-size: 14px;
  color: var(--ink-muted);
}

/* ---------- steps ---------- */

/* A real sequence, so it is numbered. */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  margin-top: 44px;
  counter-reset: step;
}

.step {
  border-top: 2px solid var(--hair-firm);
  padding-top: 18px;
  counter-increment: step;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 12px;
}

.step p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--ink-muted);
  text-wrap: pretty;
}

/* ---------- split with a phone ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr minmax(0, 260px);
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}

.split-flip .split-media { order: -1; }

.phone {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 26px;
  padding: 8px;
  justify-self: center;
  max-width: 260px;
}

.phone img { border-radius: 18px; }

/* ---------- points ---------- */

.points { margin-top: 28px; }

.points li {
  position: relative;
  padding-left: 22px;
  margin-top: 12px;
  font-size: 16px;
  color: var(--ink-soft);
}

.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

/* ---------- privacy band ---------- */

.band {
  background: var(--ink);
  color: #c7cbd8;
}

.band h2 { color: var(--surface); }
.band .eyebrow { color: #8e9bd8; }
.band .section-lede { color: #a8adbd; }

.band .points li { color: #c7cbd8; }
.band .points li::before { background: #8e9bd8; }

/* ---------- pricing ---------- */

.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 20px;
  margin-top: 40px;
  max-width: 720px;
}

.tier {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.tier-best { border-color: var(--blue); }

.tier-name {
  font: 500 11px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
}

.tier-price {
  display: block;
  margin-top: 14px;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.tier p {
  margin-top: 10px;
  font-size: 15px;
  color: var(--ink-muted);
}

.fine {
  margin-top: 26px;
  font-size: 14px;
  color: var(--ink-muted);
}

/* ---------- questions ---------- */

/*
  Same two-span contract every product page uses, dressed in this page's tokens:
  a hairline register rather than cards, because the page already has cards in
  the pricing tiers and a second card shape would compete with them.
*/

.faqs {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 4px 56px;
}

.faq {
  border-top: 1px solid var(--hair);
  padding: 20px 0;
}

.faq-q {
  display: block;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.faq-a {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-muted);
  text-wrap: pretty;
}

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

.foot {
  border-top: 1px solid var(--hair);
  background: var(--surface);
  padding-block: 40px;
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  color: var(--ink-muted);
}

.foot-links { margin-left: auto; display: flex; gap: 20px; }
.foot a { color: var(--ink-muted); text-decoration: none; }
.foot a:hover { color: var(--ink); }

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

@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split-flip .split-media { order: 0; }
  .phone { max-width: 340px; }
  .foot-links { margin-left: 0; }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
