/* PhoneFerry page on blackboxtools.com. Same world as the app: Apple white, Inter, one blue accent, soft 12px corners, pill buttons. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/apps/phoneferry/fonts/inter-latin-wght-normal.woff2") format("woff2");
}

:root {
  --bg: #ffffff;
  --panel: #f5f5f7;
  --raised: #ffffff;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #a1a1a6;
  --line: #e5e5ea;
  --accent: #0071e3;
  --accent-ink: #0060c0;
  --btn: #0071e3;
  --btn-hover: #0060c0;
  --on-accent: #ffffff;
  --win: #0a7a3a;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --radius: 12px;
  --shadow: 0 30px 80px -20px rgb(29 29 31 / 0.25), 0 0 0 0.5px rgb(29 29 31 / 0.12);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1c1c1e;
    --panel: #242426;
    --raised: #2c2c2e;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --text-3: #8e8e93;
    --line: #3a3a3c;
    --accent: #0a84ff;
    --accent-ink: #409cff;
    --btn: #0071e3;
    --btn-hover: #0066cc;
    --win: #30d158;
    --shadow: 0 30px 80px -20px rgb(0 0 0 / 0.7), 0 0 0 0.5px rgb(255 255 255 / 0.1);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}

::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; text-wrap: balance; }
h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 650; line-height: 1.08; }
h3 { font-size: 20px; font-weight: 620; }
p { margin: 0; }
a { color: var(--accent); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
.num { font-variant-numeric: tabular-nums; }

main > section, .nav, .foot { padding-left: max(24px, calc(50vw - 560px)); padding-right: max(24px, calc(50vw - 560px)); }
main > section { padding-top: 96px; padding-bottom: 96px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10; height: 64px;
  display: flex; align-items: center; gap: 28px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.brand { color: var(--text); font-weight: 680; font-size: 18px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.links { display: flex; gap: 22px; margin-left: auto; }
.links a { color: var(--text-2); font-size: 15px; font-weight: 500; }
.links a:hover { color: var(--text); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  height: 36px; padding: 0 16px; border-radius: 999px; font-weight: 560; font-size: 15px;
  border: 0; cursor: pointer; transition: transform 140ms var(--ease), background 140ms var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn-lg { height: 48px; padding: 0 24px; font-size: 17px; }
.btn-primary { background: var(--btn); color: var(--on-accent); }
.btn-primary:hover { background: var(--btn-hover); }
.btn-ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); }
.btn-ghost:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 48px;
  padding-top: 56px !important; padding-bottom: 88px !important;
}
.hero h1 { font-size: clamp(34px, 3.6vw, 46px); font-weight: 680; line-height: 1.06; letter-spacing: -0.035em; }
.hero p { margin-top: 20px; font-size: 20px; line-height: 1.45; color: var(--text-2); max-width: 36ch; }
.hero .cta-row { margin-top: 32px; }
.hero-shot { margin: 0; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); background: var(--raised);
  animation: rise 900ms var(--ease) both; animation-delay: 80ms; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@media (prefers-reduced-motion: reduce) { .hero-shot { animation: none; } }

/* Price and comparison */
.price { background: var(--panel); border-radius: 0; text-align: left; }
.price h2 { max-width: 20ch; }
.lede { margin-top: 14px; font-size: 19px; color: var(--text-2); max-width: 52ch; }
.cmp { width: 100%; margin-top: 40px; border-collapse: collapse; font-size: 16px; }
.cmp caption { caption-side: bottom; text-align: left; padding-top: 14px; font-size: 13px; color: var(--text-2); }
.cmp th, .cmp td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp thead th { font-size: 13px; font-weight: 600; color: var(--text-2); text-transform: none; padding-bottom: 10px; }
.cmp thead th:nth-child(2) { color: var(--text); }
.cmp tbody th { font-weight: 500; color: var(--text-2); width: 26%; }
.cmp td.win { font-weight: 620; color: var(--text); }
.cmp tr:last-child td, .cmp tr:last-child th { border-bottom: 0; }

/* What it copies: a five-cell bento with two real screenshots */
.copies h2 { margin-bottom: 36px; }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(200px, auto); gap: 16px; }
.cell { margin: 0; border-radius: var(--radius); background: var(--panel); overflow: hidden; display: flex; flex-direction: column; }
.cell-wide { grid-column: span 8; grid-row: span 2; }
.cell-tall { grid-column: span 8; grid-row: span 1; }
.cell-list { grid-column: span 4; padding: 26px 26px 28px; justify-content: flex-end; }
.cell-list p { margin-top: 8px; color: var(--text-2); font-size: 15px; line-height: 1.5; }
.cell img { width: 100%; height: 100%; object-fit: cover; object-position: left top; flex: 1; min-height: 0; }
.cell-tall img { object-position: left top; max-height: 300px; }
.cell figcaption { padding: 16px 20px 18px; font-size: 15px; color: var(--text-2); background: var(--panel); }

/* How it works: three verbs on one line of text, not cards */
.how h2 { margin-bottom: 36px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
.steps li { display: grid; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.steps strong { font-size: 24px; font-weight: 650; letter-spacing: -0.02em; }
.steps span { color: var(--text-2); font-size: 16px; line-height: 1.5; }

/* Local */
.local { background: var(--text); color: var(--bg); }
.local h2 { max-width: 18ch; }
.local p { margin-top: 18px; max-width: 62ch; font-size: 19px; line-height: 1.5; color: color-mix(in srgb, var(--bg) 72%, transparent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .local { background: var(--panel); color: var(--text); } :root:not([data-theme="light"]) .local p { color: var(--text-2); } }

/* Trial */
.trial p { margin-top: 16px; font-size: 19px; color: var(--text-2); max-width: 52ch; }
.trial .cta-row { margin-top: 28px; }
.fine { margin-top: 18px !important; font-size: 13px !important; color: var(--text-2) !important; }

/* FAQ */
.faq h2 { margin-bottom: 24px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 600; font-size: 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2); transform: rotate(45deg); transition: transform 160ms var(--ease); flex: none; margin-right: 4px; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding: 0 0 22px; max-width: 70ch; color: var(--text-2); }

/* Footer */
.foot { padding-top: 56px; padding-bottom: 56px; border-top: 1px solid var(--line); display: grid; gap: 22px; }
.foot-brand img { width: 220px; height: auto; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .foot-brand img { filter: invert(1) hue-rotate(180deg); } }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot nav a { color: var(--text-2); font-size: 15px; }
.foot p { color: var(--text-2); font-size: 13px; max-width: 70ch; }

/* Phone widths */
@media (max-width: 900px) {
  main > section { padding-top: 64px; padding-bottom: 64px; }
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 36px; padding-top: 40px !important; }
  .hero p { font-size: 18px; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .cell-wide, .cell-tall, .cell-list { grid-column: auto; grid-row: auto; }
  .cell img { aspect-ratio: 16 / 10; height: auto; }
  .steps { grid-template-columns: 1fr; gap: 20px; }
  .cmp { font-size: 15px; }
  .cmp th, .cmp td { padding-right: 10px; }
}
@media (max-width: 640px) {
  .links { display: none; }
  .nav .btn { margin-left: auto; }
  .cmp thead th:nth-child(4), .cmp td:nth-child(4) { display: none; }
  .btn-lg { width: 100%; }
}

/* Read-mode pages: help, privacy, what's new, comparisons */
/* A 760 px measure centred on the page: the gutters live outside the measure, not inside the 760 px box. */
.doc { padding: 56px max(24px, calc(50vw - 380px)) 96px !important; max-width: none; margin: 0; }
.doc h1 { font-size: clamp(32px, 4vw, 44px); font-weight: 680; line-height: 1.08; letter-spacing: -0.03em; }
.doc .lede { margin-top: 12px; }
.doc h2 { font-size: 24px; margin-top: 48px; }
.doc h3 { margin-top: 28px; }
.doc p, .doc li { margin-top: 12px; color: var(--text); max-width: 70ch; line-height: 1.55; }
.doc p.muted { color: var(--text-2); }
.doc ul, .doc ol { padding-left: 22px; }
.doc .cmp { margin-top: 28px; }
.doc .cmp tbody th { width: 34%; }
.doc .cta-row { margin-top: 36px; }
.doc .release { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 28px; }
.doc .release h2 { margin-top: 0; font-size: 20px; }
.doc .when { color: var(--text-2); font-size: 13px; display: block; margin-top: 4px; }

/* blackboxtools.com additions: the brand pair in the nav, real app motion in frames, the 30 second tour */
.brand-pair { display: flex; align-items: baseline; gap: 10px; }
.brand-by { color: var(--text-3); font-size: 13px; font-weight: 500; }
.brand-by:hover { color: var(--text-2); text-decoration: none; }
.frame { margin: 0; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); background: var(--raised); }
.frame video { display: block; width: 100%; height: auto; }
.cell video { width: 100%; height: 100%; object-fit: cover; object-position: left top; flex: 1; min-height: 0; display: block; }
.how .frame { margin-top: 44px; }
.tour { background: var(--panel); }
.tour h2 { max-width: 22ch; }
.tour .frame { margin-top: 36px; }
.tour p.lede { margin-top: 14px; }
.faq .more { margin-top: 28px; display: inline-flex; align-items: center; gap: 8px; font-weight: 560; }
@media (max-width: 640px) { .brand-by { display: none; } }

/* Read pages: a clearer size step between body, h3 and h2 */
.doc h2 { font-size: 28px; }
.doc h3 { font-size: 22px; }
