/* Widgeting — widgeting.app
   Direction 1d, "Paper and indigo" (design/round-1/README.md).
   The colour tokens in :root are the only thing light and dark mode change. */

/* ---------- Fonts (self-hosted, SIL OFL; see /assets/fonts/OFL.txt) ---------- */

@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url("/assets/fonts/inter-tight-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url("/assets/fonts/inter-tight-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url("/assets/fonts/inter-tight-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* "optional": if Inter Tight isn't there by first paint (it is preloaded), the
   page keeps this metric-matched stand-in instead of swapping, so text never
   moves. Liberation Sans and Arimo share Arial's metrics. */
@font-face {
  font-family: "Inter Tight Fallback";
  src: local("Arial"), local("ArialMT"), local("Helvetica"), local("Liberation Sans"), local("Arimo");
  ascent-override: 100.5078%;
  descent-override: 25.0256%;
  line-gap-override: 0%;
  size-adjust: 96.3855%;
}

/* ---------- Tokens ---------- */

:root {
  color-scheme: light dark;

  --page: #ffffff;
  --page-alt: #f4f4f5;
  --card: #ffffff;
  --card-border: #e5e5e7;
  --text: #18181b;
  --text-2: #4a4a50;
  --text-3: #6f6f76;
  --hairline: #e5e5e7;
  --accent: #5856d6; /* iOS system indigo: links, eyebrows, accent text */
  --band: #5856d6;
  --on-band: #ffffff;
  --focus: #5856d6;
  --plus: #5856d6; /* FAQ "+": yellow fails 3:1 on white, so light mode uses indigo */
  --frame: #1a1a1a;
  --yellow: #f1c40f;
  --yellow-hover: #e1b40a;
  --ink: #0e0e10;
  --ph-a: #eeedfb;
  --ph-b: #f7f7fe;
  --ph-text: #3d3bb0;
  --ph-border: #5856d6;
  --card-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);

  --font: "Inter Tight", "Inter Tight Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step-display: clamp(2.5rem, 1.745rem + 3.22vw, 4rem);
  --step-h1: clamp(2.125rem, 1.496rem + 2.685vw, 3.375rem);
  --step-h2: clamp(1.625rem, 1.436rem + 0.805vw, 2rem);
  --step-h3: clamp(1.25rem, 1.124rem + 0.537vw, 1.5rem);
  --step-lg: 1.125rem;
  --step-sm: 0.875rem;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --max: 1120px;
  --gutter: 24px;
  --band-pad: clamp(56px, 2.5rem + 4.5vw, 112px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #2d2d2d;
    --page-alt: #1e1e1f;
    --card: #2d2d2d;
    --card-border: #5e5ce6;
    --text: #ffffff;
    --text-2: rgba(255, 255, 255, 0.78);
    --text-3: rgba(255, 255, 255, 0.68);
    --hairline: rgba(255, 255, 255, 0.12);
    --accent: #9d9bff; /* lifted indigo: #5856d6 fails 4.5:1 on charcoal */
    --band: #5e5ce6; /* iOS dark-mode indigo */
    --focus: #9d9bff;
    --plus: #f1c40f;
    --frame: #3a3a3a;
    --ph-a: #36354d;
    --ph-b: #2f2f3b;
    --ph-text: #d4d3ff;
    --ph-border: #9d9bff;
    --card-shadow: none;
  }
}

@media (max-width: 359px) {
  :root { --gutter: 16px; }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 16px;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 400 1rem/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: var(--step-h1); line-height: 1.05; }
h2 { font-size: var(--step-h2); line-height: 1.2; }
h3 { font-size: var(--step-h3); line-height: 1.25; }
p, ul, ol, dl, table { margin: 0 0 1em; }
p { text-wrap: pretty; }

a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 12px 16px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 700;
  border-radius: 4px;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }
main:focus { outline: none; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type helpers ---------- */

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.display {
  font-size: var(--step-display);
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.lede { font-size: var(--step-lg); color: var(--text-2); max-width: 36em; }
.small { font-size: var(--step-sm); color: var(--text-3); }
.muted { color: var(--text-2); }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* ---------- Bands ---------- */

.band { padding-block: var(--band-pad); }
.band--alt { background: var(--page-alt); }
.band--accent {
  background: var(--band);
  color: var(--on-band);
  --text-2: #ffffff;
  --text-3: #ffffff;
  --accent: #ffffff;
  --focus: #ffffff;
  --ph-a: rgba(0, 0, 0, 0.14); /* darker hatch keeps the white label above 4.5:1 */
  --ph-b: rgba(0, 0, 0, 0);
  --ph-text: #ffffff;
  --ph-border: rgba(255, 255, 255, 0.85);
}
.band--tight { padding-block: clamp(40px, 1.5rem + 3vw, 72px); }

.split {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 768px) {
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .split--hero { grid-template-columns: 1.1fr 1fr; }
  .split--media-first > :first-child { order: 0; }
}

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 14px 26px;
  border: 0;
  border-radius: 4px;
  font: 700 0.8125rem/1.1 var(--font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 200ms var(--ease), transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.btn--primary {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}
.btn--primary:hover { background: var(--yellow-hover); box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25); }
.btn--primary:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25); }
.btn--small { min-height: 40px; padding: 10px 16px; font-size: 0.75rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.link-arrow:hover { text-decoration: underline; }
.link-arrow svg { flex: none; width: 1em; height: 1em; transition: transform 200ms var(--ease); }
.link-arrow:hover svg { transform: translateX(2px); }

.pill {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 700;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-block: 28px 16px;
}
.cta-row--center { justify-content: center; }

/* Apple's badge: official artwork only, never below 40 px high, with clear
   space of a quarter of its height (10 px) kept by the surrounding gaps. */
.badge { display: inline-block; flex: none; border-radius: 8px; }
.badge img { width: 120px; height: 40px; }

.pro-tag {
  display: inline-block;
  padding: 2px 5px;
  border-radius: 2px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 0.15em;
  white-space: nowrap;
}

/* ---------- Header ---------- */

.site-header { border-bottom: 1px solid var(--hairline); }
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--text);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand img { width: 32px; height: 32px; border-radius: 7px; box-shadow: 0 0 0 1px var(--hairline); }

.nav-list {
  display: flex;
  gap: 4px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-list a {
  display: inline-block;
  padding: 8px 0;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}
.nav-list a:hover { color: var(--accent); }
.nav-list a[aria-current="page"] { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }

.nav-desktop { display: none; }
.menu { position: relative; }
.menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  color: var(--text);
  font-weight: 700;
  font-size: 0.875rem;
  list-style: none;
  cursor: pointer;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu__icon { width: 18px; height: 18px; }
.menu[open] .menu__icon-open, .menu:not([open]) .menu__icon-close { display: none; }
.menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  z-index: 5;
  width: min(280px, calc(100vw - 2 * var(--gutter)));
  padding: 16px 20px 20px;
  background: var(--page);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}
.menu__panel .nav-list { flex-direction: column; margin-bottom: 16px; }
.menu__panel .nav-list a { display: block; padding: 10px 0; }

@media (min-width: 768px) {
  .nav-desktop { display: block; position: absolute; left: 50%; transform: translateX(-50%); }
  .site-header__inner { position: relative; }
  .menu { display: none; }
}
.header-cta { display: none; }
@media (min-width: 768px) { .header-cta { display: inline-flex; } }

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 56px 40px;
  background: var(--page-alt);
  border-top: 1px solid var(--hairline);
  font-size: var(--step-sm);
  color: var(--text-2);
}
.site-footer .brand { margin-bottom: 24px; }
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}
.footer-nav a { display: inline-block; padding: 6px 0; color: var(--text); font-weight: 500; text-decoration: none; }
.footer-nav a:hover { color: var(--accent); text-decoration: underline; }
.legal { margin: 0; max-width: 60em; }
.legal p { margin-bottom: 8px; }
.legal a { color: inherit; }

/* ---------- Screenshots and placeholders ---------- */

/* Widget proportions are iPhone's (points at 1×); corners follow iOS's widget
   radius. Real screenshots arrive with their own transparent corners. */
.shot { width: 100%; height: auto; border-radius: 22px; }
.shot--small { width: 158px; aspect-ratio: 1; }
.shot--medium { width: min(338px, 100%); aspect-ratio: 338 / 158; }
.shot--large { width: min(338px, 100%); aspect-ratio: 338 / 354; }
.shot--circular { width: 72px; aspect-ratio: 1; border-radius: 50%; }
.shot--rectangular { width: 160px; aspect-ratio: 160 / 72; border-radius: 12px; }
.shot--inline { width: min(257px, 100%); aspect-ratio: 257 / 26; border-radius: 13px; }
.shot--phone { width: 100%; max-width: 300px; aspect-ratio: 1320 / 2868; border-radius: 13% / 6%; }
.shot--framed { width: 100%; max-width: 330px; border-radius: 0; }
.shot--seethrough { aspect-ratio: 1320 / 1400; border-radius: 6px; }
video.shot { object-fit: cover; background: var(--frame); }

.shot--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8px;
  border: 1.5px dashed var(--ph-border);
  background: repeating-linear-gradient(135deg, var(--ph-a) 0 8px, var(--ph-b) 8px 16px);
  color: var(--ph-text);
  text-align: center;
}
.shot__label { font-size: 0.75rem; font-weight: 700; line-height: 1.3; }
.shot--circular .shot__label, .shot--rectangular .shot__label { font-size: 0.5625rem; }
.shot--inline { padding: 0 8px; }
.shot--inline .shot__label { font-size: 0.5625rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* The widget frame: a screenshot plus the "Widgeting" label iOS draws under
   Home Screen widgets. */
.widget { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; margin: 0; }
.widget__label { font-size: 0.6875rem; font-weight: 500; line-height: 1.2; color: var(--text); }

/* ---------- Home: hero ---------- */

.hero { padding-block: 48px var(--band-pad); }
.hero__text { text-align: center; }
.hero__text .lede { margin-inline: auto; }
.hero__text .cta-row { justify-content: center; }
.hero__visual { display: flex; justify-content: center; align-items: flex-end; gap: 24px; }
.hero__device {
  width: min(300px, 78vw);
  max-height: 340px; /* phones: the top half of the screenshot */
  overflow: hidden;
  border-radius: 13% / 6%;
}
.hero__device .shot { max-width: none; }
.hero__companion { display: none; }

@media (min-width: 768px) {
  .hero { padding-top: 72px; }
  .hero__text { text-align: left; }
  .hero__text .lede { margin-inline: 0; }
  .hero__text .cta-row { justify-content: flex-start; }
  .hero__device { width: min(300px, 100%); max-height: none; }
  .hero__companion { display: inline-flex; margin-bottom: 40px; }
}
@media (min-width: 768px) and (max-width: 1019px) {
  .hero__companion { display: none; }
}

/* ---------- Cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 1120px) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }
.cards--3 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
  display: flex;
  flex-direction: column;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 4px;
}
@media (min-width: 768px) { .card { padding: 20px; } }
.card h3 { margin: 16px 0 6px; font-size: 1.25rem; }
.card p { margin: 0; color: var(--text-2); font-size: 0.9375rem; }
.card__thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 338 / 158;
}
.card__thumb .shot { width: auto; height: 100%; max-width: 100%; border-radius: 12px; }
.card__thumb .shot--medium { width: 100%; height: auto; }
@media (max-width: 479px) {
  .card h3 { font-size: 1.0625rem; }
  .card p { font-size: 0.875rem; }
  .card__thumb .shot { border-radius: 8px; }
  .card__thumb .shot__label { font-size: 0.5625rem; }
}

/* ---------- Home: builder, templates row, Pro, privacy ---------- */

.steps {
  counter-reset: step;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}
.steps li {
  position: relative;
  counter-increment: step;
  margin-bottom: 16px;
  padding-left: 44px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 700;
}
.steps strong { display: block; }
.dots { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 1em; padding: 0; list-style: none; color: var(--accent); font-weight: 700; font-size: var(--step-sm); }
.dots li { white-space: nowrap; }
.dots li:not(:last-child)::after { content: "·"; margin: 0 8px; }
.media-center { display: flex; justify-content: center; }

.size-row {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  overflow-x: auto;
  margin: 32px calc(-1 * var(--gutter)) 32px;
  padding: 8px var(--gutter) 16px;
  scrollbar-width: thin;
}
.size-row > * { flex: none; }
.size-row .shot--medium, .size-row .shot--large { width: 338px; }
.size-row .lock-group { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-bottom: 20px; }
.size-row .lock-group p { margin: 0; color: var(--text-3); font-size: var(--step-sm); }
@media (min-width: 1120px) {
  .size-row { flex-wrap: wrap; justify-content: space-between; overflow: visible; margin-inline: 0; padding-inline: 0; }
}

.pro-list {
  margin: 24px 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hairline);
}
.pro-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
}
.pro-list .pro-tag { flex: none; }
.price-line { margin-top: 24px; margin-bottom: 8px; font-size: var(--step-lg); font-weight: 700; }
.figure-note { margin: 12px 0 0; color: var(--text-3); font-size: var(--step-sm); }
.figure-note .pro-tag { margin-right: 6px; }

.trust-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
  font-weight: 700;
  font-size: 0.9375rem;
}
.trust-line li + li::before { content: "·"; margin-right: 12px; color: var(--accent); }

/* ---------- Sub-pages ---------- */

.page-hero { padding-block: 56px 40px; border-bottom: 1px solid var(--hairline); }
@media (min-width: 768px) { .page-hero { padding-block: 88px 56px; } }
.page-hero h1 { max-width: 16em; }

.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.jump a { display: inline-block; padding: 8px 14px; border: 1px solid var(--accent); border-radius: 999px; font-size: 0.875rem; font-weight: 700; text-decoration: none; }
.jump--center { justify-content: center; }
.jump a:hover { background: var(--accent); color: var(--page); }

.prose { max-width: 42rem; }
.prose h2 { margin-top: 1.8em; font-size: var(--step-h3); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; font-size: 1.125rem; }
.prose li { margin-bottom: 0.4em; }
.prose .lead-statement { font-size: var(--step-lg); font-weight: 700; color: var(--text); }
.to-fill {
  padding: 1px 6px;
  border: 1px dashed var(--text-2);
  border-radius: 2px;
  background: var(--page-alt);
  font-weight: 700;
}

.feature-list { display: grid; gap: 24px 40px; margin: 32px 0 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .feature-list { grid-template-columns: 1fr 1fr; } }
.feature-list h3 { margin-bottom: 4px; font-size: 1.125rem; }
.feature-list p { margin: 0; color: var(--text-2); }

.section-head { max-width: 40rem; margin-bottom: 8px; }

/* Help steps, as numbered cards */
.howto { display: grid; gap: 40px; }
@media (min-width: 900px) { .howto { grid-template-columns: 1fr 1fr; } }
.howto ol { margin: 0; }

/* ---------- Templates gallery ---------- */

.filter { margin: 0 0 40px; padding: 0; border: 0; }
.filter legend { margin-bottom: 12px; padding: 0; font-weight: 700; }
.filter__options { display: flex; flex-wrap: wrap; gap: 8px; }
.filter input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.filter label {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}
.filter input:checked + label { background: var(--accent); color: var(--page); }
.filter input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 2px; }

.gallery:has(#size-small:checked) .tpl-group:not(.tpl-group--small),
.gallery:has(#size-medium:checked) .tpl-group:not(.tpl-group--medium),
.gallery:has(#size-large:checked) .tpl-group:not(.tpl-group--large),
.gallery:has(#size-lock:checked) .tpl-group:not(.tpl-group--lock) { display: none; }

.tpl-group + .tpl-group { margin-top: 56px; }
.tpl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 16px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.tpl {
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 4px;
}
.tpl__shot { display: flex; align-items: center; justify-content: center; min-height: 172px; padding: 8px 0 16px; }
.tpl--medium .tpl__shot .shot, .tpl--large .tpl__shot .shot { width: 100%; }
.tpl h3 { margin: 0 0 2px; font-size: 1.0625rem; }
.tpl__size { margin: 0 0 8px; color: var(--text-3); font-size: 0.8125rem; font-weight: 500; }
.tpl p { margin: 0; color: var(--text-2); font-size: 0.9375rem; }
.tpl__note { margin-top: 8px !important; font-size: 0.8125rem !important; }

/* ---------- Pricing ---------- */

.compare { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.compare caption { text-align: left; font-weight: 700; margin-bottom: 12px; }
.compare th, .compare td { padding: 12px 8px; border-bottom: 1px solid var(--hairline); text-align: left; vertical-align: top; }
.compare thead th { font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.compare tbody th { font-weight: 500; }
.compare td { width: 30%; }
.compare .yes { color: var(--accent); font-weight: 700; }
@media (min-width: 768px) { .compare th, .compare td { padding: 14px 16px; } .compare td { width: 26%; } }

.plans { margin-top: 40px; }
.plan { text-align: left; }
.plan h3 { margin: 0 0 8px; font-size: 1.125rem; }
.plan .plan__price { margin: 0; font-size: 2rem; font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; color: var(--text) !important; }
.plan .plan__price span { font-size: 1rem; font-weight: 500; color: var(--text-2); }
.plan .plan__note { margin-top: 8px !important; font-weight: 700; color: var(--accent) !important; }

/* ---------- FAQ ---------- */

.faq { max-width: 48rem; }
.faq details { border: 1px solid var(--hairline); }
.faq details + details { border-top: 0; }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  color: var(--plus);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1;
  transition: transform 240ms var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 20px 16px; color: var(--text-2); }
.faq .answer p:last-child, .faq .answer ul:last-child, .faq .answer ol:last-child { margin-bottom: 0; }
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content {
    height: 0;
    overflow: clip;
    opacity: 0;
    transition: height 240ms var(--ease), opacity 240ms var(--ease), content-visibility 240ms allow-discrete;
  }
  .faq details[open]::details-content { height: auto; opacity: 1; }
}

/* ---------- Motion ---------- */

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

.seethrough { margin: 0; }
.section-gap { margin-top: var(--band-pad); }
.feature-list--single { grid-template-columns: 1fr !important; gap: 16px; margin-top: 24px; }

.section-note { margin-top: 40px; }
.table-scroll { overflow-x: auto; }

/* ---------- Phone refinements ---------- */

/* The cropped hero shows the top of the Home Screen, so the placeholder's
   label sits there too. */
.hero__device .shot--placeholder { align-items: flex-start; padding-top: 28%; }
.media-center .shot--phone { max-width: min(300px, 72vw); }

@media (max-width: 767px) {
  /* Scaled-down sizes so the scrolling row isn't mostly empty space. */
  .size-row { align-items: center; }
  .size-row .shot--medium { width: 260px; }
  .size-row .shot--large { width: 220px; }
  .size-row .lock-group { padding-bottom: 0; }
  /* One fact per line instead of dots that wrap to the start of a line. */
  .trust-line { flex-direction: column; align-items: center; gap: 6px; }
  .trust-line li + li::before { content: none; }
}

/* Apple's frame may not be cropped (Apple: no "cropping ... any part of the
   images"), so on phones the framed iPhone is shown whole, just smaller. */
.hero__device:has(.shot--framed) { max-height: none; overflow: visible; border-radius: 0; }
@media (max-width: 767px) {
  .hero__device:has(.shot--framed) { width: min(230px, 62vw); }
}
