:root {
  --bg: #FBF3E6;
  --bg-2: #F4E6D2;
  --surface: #FFFAF2;
  --ink: #2B1C3A;
  --ink-2: #5E4560;
  --line: #E8D6BE;
  --plum: #6B2D5C;
  --orange: #E0703A;
  --sun: #F6C445;
  --red: #D9483B;
  --amber: #EE8A3A;
  --link: #B54A22;
  --shadow: 0 24px 60px -24px rgba(64, 26, 54, .45);
  --radius: 18px;
  --max: 1080px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1B1424;
    --bg-2: #22192D;
    --surface: #2A2035;
    --ink: #F6EBDD;
    --ink-2: #C9B6C2;
    --line: #3D3048;
    --link: #F4A36B;
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, .8);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h2 { font-size: clamp(28px, 4vw, 38px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: 72px 0; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); }
.muted { color: var(--ink-2); }

/* Retro stripes, used as dividers */
.stripes { height: 40px; background: linear-gradient(to bottom,
  var(--sun) 0 25%, var(--amber) 25% 50%, var(--red) 50% 75%, var(--plum) 75% 100%); }
.stripes.thin { height: 16px; }

/* Header */
header.top { position: sticky; top: 0; z-index: 10; backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
header.top .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--ink); text-decoration: none; }
.brand img { width: 30px; height: 30px; }
nav { margin-left: auto; display: flex; gap: 22px; font-size: 15px; }
nav a { color: var(--ink-2); text-decoration: none; }
nav a:hover { color: var(--ink); }
@media (max-width: 640px) { nav a:not(.gh) { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 64px 0 0; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6.4vw, 66px); font-weight: 800; }
.hero h1 .accent { background: linear-gradient(90deg, var(--plum), var(--red) 55%, var(--amber));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (prefers-color-scheme: dark) {
  .hero h1 .accent { background: linear-gradient(90deg, #F08A8A, var(--amber) 55%, var(--sun));
    -webkit-background-clip: text; background-clip: text; }
}
.hero .lede { font-size: 20px; color: var(--ink-2); max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 28px 0 10px; }
.btn { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700;
  border-radius: 14px; padding: 14px 22px; font-size: 17px; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #FFF4E0; background: linear-gradient(135deg, var(--plum), var(--red) 55%, #F4A340);
  box-shadow: 0 12px 30px -10px rgba(217, 72, 59, .6); }
.btn-primary small { display: block; font-weight: 500; font-size: 12.5px; opacity: .85; }
.btn-primary svg { flex: none; }
.btn-ghost { color: var(--ink); border: 1.5px solid var(--line); background: var(--surface); }
.fineprint { font-size: 14px; color: var(--ink-2); }
.hero-art { position: relative; display: flex; justify-content: center; padding-bottom: 40px; }
.hero-art::before { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%;
  top: 20px; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle at 50% 40%, #FFD27A, #F7894A 70%); opacity: .9; }
.hero-art img { position: relative; width: 300px; border-radius: 14px; box-shadow: var(--shadow); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art::before { width: 300px; height: 300px; }
}

/* Phones strip */
.phones { padding: 26px 0; background: var(--bg-2); border-block: 1px solid var(--line); }
.phones .wrap { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: center; }
.chip { font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line); color: var(--ink-2); }

/* Cards */
.grid { display: grid; gap: 22px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grid.two, .grid.three { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card .tag { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .04em;
  padding: 4px 10px; border-radius: 999px; color: #FFF4E0; background: var(--orange); margin-bottom: 12px; }
.card .tag.mail { background: var(--plum); }
.card ol { margin: 0; padding-left: 20px; }
.card li { margin: 6px 0; }
.feature h3 { display: flex; align-items: center; gap: 10px; }
.feature .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none;
  background: color-mix(in srgb, var(--orange) 16%, transparent); color: var(--orange); }

/* Table */
.table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; font-size: 16px; }
.table th, .table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table th { background: var(--bg-2); font-size: 13px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.scroll-x { overflow-x: auto; }

/* Install steps */
.steps { counter-reset: step; display: grid; gap: 36px; }
.step { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: center; }
.step h3::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center;
  width: 30px; height: 30px; margin-right: 10px; border-radius: 50%; background: var(--orange); color: #FFF4E0;
  font-size: 15px; vertical-align: 2px; }
.step img { max-height: 420px; width: auto; margin: 0 auto;
  filter: drop-shadow(0 16px 24px rgba(64, 26, 54, .28)); } /* follows the image's shape, not its transparent margin */
.step.wide { grid-template-columns: 1fr; gap: 16px; }
.step.wide img { max-height: none; width: 100%; }
@media (max-width: 860px) { .step { grid-template-columns: 1fr; } }
.why { margin-top: 40px; }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin: 12px 0; }
summary { cursor: pointer; font-weight: 700; }
details p { margin: 12px 0 0; color: var(--ink-2); }

/* Final CTA + footer */
.final { text-align: center; }
.final .cta { justify-content: center; }
footer { padding: 28px 0 40px; font-size: 14px; color: var(--ink-2); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
code { font: 0.92em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg-2); padding: 2px 6px; border-radius: 6px; }

/* Article pages (guide, setup) */
.article { padding: 56px 0 72px; }
.article .wrap { max-width: 760px; }
.article h1 { font-size: clamp(34px, 5vw, 48px); font-weight: 800; }
.article h2 { font-size: clamp(24px, 3.4vw, 30px); margin-top: 2.2em; }
.article h3 { margin-top: 1.6em; }
.article p, .article li { color: var(--ink); }
.article .lede { font-size: 19px; color: var(--ink-2); }
.article img { border-radius: 12px; margin: 18px 0; max-width: 100%; height: auto;
  filter: drop-shadow(0 14px 22px rgba(64, 26, 54, .25)); }
.article ul, .article ol { padding-left: 22px; }
.article li { margin: 6px 0; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 22px; margin: 26px 0; }
.toc ol { margin: 6px 0 0; }
.verdict { display: inline-block; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-left: 6px; vertical-align: 3px; }
.verdict.good { background: color-mix(in srgb, #2E9E5B 18%, transparent); color: #2E9E5B; }
.verdict.meh { background: color-mix(in srgb, var(--amber) 22%, transparent); color: var(--link); }
.verdict.bad { background: color-mix(in srgb, var(--red) 16%, transparent); color: var(--red); }
.callout { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--orange);
  border-radius: 12px; padding: 16px 20px; margin: 22px 0; }
.callout p:last-child { margin-bottom: 0; }
.crumbs { font-size: 14px; color: var(--ink-2); margin-bottom: 14px; }
.crumbs a { color: var(--ink-2); }
.updated { font-size: 14px; color: var(--ink-2); }

/* "New" badge above the headline */
.newpill { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 5px 14px 5px 5px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  text-decoration: none; font-size: 14px; font-weight: 600; }
.newpill b { background: var(--orange); color: #FFF4E0; border-radius: 999px; padding: 2px 9px; font-size: 12px;
  letter-spacing: .04em; text-transform: uppercase; }
.newpill:hover { border-color: var(--orange); }

/* "And back again" section with a drawn old iPhone */
.both-ways { background: var(--bg-2); border-block: 1px solid var(--line); }
.both-ways .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .both-ways .wrap { grid-template-columns: 1fr; } }
.bw-list { padding-left: 0; list-style: none; margin: 18px 0; }
.bw-list li { position: relative; padding-left: 30px; margin: 12px 0; color: var(--ink-2); }
.bw-list li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sun), var(--red)); }
.bw-list b { color: var(--ink); }
.bw-art { display: flex; justify-content: center; }
.phone { position: relative; width: 230px; padding: 58px 13px 76px; border-radius: 38px; background: #1C1C21;
  box-shadow: inset 0 0 0 3px #D8D8DE, var(--shadow); }
.phone::before { content: ""; position: absolute; top: 26px; left: 50%; width: 46px; height: 7px; margin-left: -23px;
  border-radius: 4px; background: #4A4A52; }
.phone::after { content: ""; position: absolute; bottom: 18px; left: 50%; width: 42px; height: 42px; margin-left: -21px;
  border-radius: 50%; background: #2C2C33; box-shadow: inset 0 0 0 3px #55555E; }
.screen { background: #fff; color: #222; font-family: Helvetica, Arial, sans-serif; padding: 12px 11px 14px;
  min-height: 300px; border-radius: 2px; }
.s-title { font-weight: 700; font-size: 17px; margin-bottom: 8px; }
.s-h { font-weight: 700; font-size: 13px; margin: 6px 0 4px; }
.s-p { font-size: 10.5px; line-height: 1.4; color: #333; margin-bottom: 8px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-bottom: 10px; }
.tiles i { display: block; aspect-ratio: 1; border-radius: 4px; }
.t1 { background: linear-gradient(160deg, #2B1C46, #D9573B); }
.t2 { background: linear-gradient(160deg, #F6C445, #EE8A3A); }
.t3 { background: linear-gradient(160deg, #2F8F9D, #16485E); }
.t4 { background: linear-gradient(160deg, #EE8A3A, #8E2F55); }
.t5 { background: linear-gradient(160deg, #16485E, #F4A340); }
.t6 { background: linear-gradient(160deg, #D9483B, #F6C445); }
