/* Broaden's website: broaden.clicktechnologies.org. The app's look: system font, the icon's orange (#FF6900, with its
   gradient #FFB25C → #FF6900 → #E23F00), grouped cards as in iOS. Light or dark as the device is set, unless the
   switcher in the top bar picks one (theme.js puts data-theme="light" or "dark" on <html>). No web fonts. */
:root {
  --accent: #ff6900; --accent-ink: #ff6900; --accent-strong: #ff6900;   /* (the brand orange, the same in both looks) */
  --bg: #f2f2f7; --card: #fff; --ink: #1c1c1e; --muted: #6e6e73; --line: rgba(60, 60, 67, .18);
  --hero: linear-gradient(180deg, #ffb25c 0%, #ff6900 55%, #e23f00 100%);   /* (the icon's gradient) */
  --radius: 22px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --accent-ink: #ff6900; --bg: #000; --card: #1c1c1e; --ink: #f5f5f7; --muted: #98989d; --line: rgba(84, 84, 88, .6); }
}
:root[data-theme="dark"] { --accent-ink: #ff6900; --bg: #000; --card: #1c1c1e; --ink: #f5f5f7; --muted: #98989d; --line: rgba(84, 84, 88, .6);
  color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
[id] { scroll-margin-top: 76px; }   /* (anchors land below the sticky top bar) */
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-ink); }
.wrap { width: min(1080px, 100% - 40px); margin: 0 auto; }
/* (Out of sight but not off the page's edge, which a right-to-left page would scroll to.) */
.skip { position: absolute; top: 12px; inset-inline-start: 12px; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { width: auto; height: auto; clip-path: none; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 9; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(18px);
       -webkit-backdrop-filter: saturate(1.6) blur(18px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 19px; }
.brand img { width: 32px; height: 32px; border-radius: 22.5%; }
.top nav { margin-inline-start: auto; display: flex; gap: 22px; }
.top .theme { margin-inline-start: 4px; }
.top nav a { color: var(--ink); text-decoration: none; font-size: 15px; opacity: .8; }
.top nav a:hover, .top nav a[aria-current] { opacity: 1; }
.top nav a { white-space: nowrap; }
.top nav a[aria-current] { color: var(--accent-ink); font-weight: 600; }
@media (max-width: 860px) { .top nav { display: none; } .top .theme { margin-inline-start: auto; } }

/* The theme switcher: System, Light, Dark, as the app's Appearance. Shown only with JavaScript (theme.js adds .js). */
.theme { display: none; gap: 2px; padding: 3px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 8%, transparent); }
.js .theme { display: inline-flex; }
.theme button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer;
                display: grid; place-items: center; padding: 0; }
.theme button svg { width: 17px; height: 17px; }
.theme button[aria-checked="true"] { background: var(--card); color: var(--accent-ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .18); }
.theme button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; text-align: center; white-space: nowrap; gap: 8px; min-height: 50px; padding: 0 26px; border-radius: 999px;
          background: #fff; color: var(--accent-strong); font-weight: 700; font-size: 17px; text-decoration: none; box-shadow: 0 8px 24px rgba(122, 31, 0, .25); }
.button.solid { background: var(--accent-strong); color: #fff; box-shadow: none; }
/* Until Broaden is on the App Store: the buttons say so and lead nowhere (the links are in comments beside them). */
.button.soon { cursor: default; background: rgba(255, 255, 255, .2); color: #fff; box-shadow: none; border: 2px solid rgba(255, 255, 255, .85); }
.top .button.soon { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-ink); border: 0; }
.cta-small { min-height: 36px; padding: 0 16px; font-size: 15px; white-space: nowrap; flex: none; }
@media (max-width: 380px) { .hero .button { font-size: 15px; padding: 0 18px; } .cta-small { font-size: 13px; padding: 0 10px; } .top .wrap { gap: 8px; } }
@media (max-width: 380px) { .brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } }
@media (max-width: 480px) { .top .wrap { gap: 10px; } .brand { font-size: 17px; flex: none; } .cta-small { padding: 0 13px; }
  .theme button { width: 27px; height: 27px; } .theme button svg { width: 15px; height: 15px; } }

/* Hero: the icon's orange, the two phones */
.hero { background: var(--hero); color: #fff; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding: 72px 0 80px; }
.hero h1 { margin: 0 0 18px; font-size: clamp(40px, 6vw, 68px); line-height: 1.04; letter-spacing: -.02em; }
.hero p.lead { margin: 0 0 30px; font-size: 20px; max-width: 34em; color: #fff; }
.hero .note { margin: 14px 0 0; font-size: 15px; color: #fff; }
.hero h1, .hero p, .hero .app-id span, .price h2, .price p, .price .big { text-shadow: 0 1px 3px rgba(122, 31, 0, .35); }
.app-id { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.app-id img { width: 64px; height: 64px; border-radius: 22.5%; box-shadow: 0 8px 22px rgba(122, 31, 0, .35); }
.app-id span { font-weight: 600; color: #fff; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.compare figure { margin: 0; }
.compare figcaption { margin-top: 14px; text-align: center; font-weight: 700; }
.pill { display: inline-block; padding: 4px 14px; border-radius: 999px; border: 2px solid #fff; }
.pill.on { background: #fff; color: var(--accent-strong); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding: 48px 0 56px; gap: 36px; }
}

/* The folded iPhone Duo: the screenshots come in Apple's frame (tools/make-site-assets.sh), transparent around it. */
.phone { width: 100%; filter: drop-shadow(0 22px 34px rgba(0, 0, 0, .32)); }

/* Sections */
section.block { padding: 84px 0; }
.eyebrow { margin: 0 0 8px; color: var(--accent-ink); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
h2 { margin: 0 0 14px; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -.015em; }
.intro { margin: 0 0 40px; font-size: 19px; color: var(--muted); max-width: 40em; }
.cards { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.card { background: var(--card); border-radius: var(--radius); padding: 26px; }
.card h3 { margin: 16px 0 6px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); }
.card .mode { width: 62%; margin: 0 auto; }
.card.picked { outline: 3px solid var(--accent); }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } .card .mode { width: 46%; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split + .split { margin-top: 80px; }
.split .phone { max-width: 400px; margin: 0 auto; }
.split.flip > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } .split.flip > :first-child { order: 0; } }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.features .card h3 { margin-top: 0; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }

ol.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 14px; }
ol.steps li { counter-increment: s; background: var(--card); border-radius: var(--radius); padding-block: 22px; padding-inline: 76px 24px; position: relative; }
ol.steps li::before { content: counter(s); position: absolute; inset-inline-start: 22px; top: 20px; width: 36px; height: 36px; border-radius: 50%;
                      background: var(--accent-strong); color: #fff; font-weight: 800; display: grid; place-items: center; }
ol.steps b { display: block; font-size: 19px; margin-bottom: 2px; }
ol.steps span { color: var(--muted); }

.price { background: var(--hero); color: #fff; border-radius: 28px; padding: 44px; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.price h2 { margin-bottom: 8px; } .price p { margin: 0; color: #fff; font-size: 19px; max-width: 32em; }
.price .big { font-size: 64px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
@media (max-width: 720px) { .price { grid-template-columns: 1fr; padding: 32px; } }

details { background: var(--card); border-radius: 18px; padding: 0 22px; margin-bottom: 12px; display: flow-root; }
details[open] { padding-bottom: 20px; }
details summary { cursor: pointer; list-style: none; font-weight: 650; font-size: 18px; padding-block: 18px; padding-inline: 0 28px; position: relative; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; position: absolute; inset-inline-end: 0; top: 14px; font-size: 24px; color: var(--accent-ink); }
details[open] summary::after { content: "–"; }
details p, details ul { margin: 0 0 12px; color: var(--muted); }
details > :last-child { margin-bottom: 0; }
details ul { padding-inline-start: 20px; } details li + li { margin-top: 4px; }

/* Text pages (privacy, support) */
.page { padding: 56px 0 84px; }
.page .wrap { width: min(760px, 100% - 40px); }
.page h1 { font-size: clamp(34px, 5vw, 48px); line-height: 1.08; margin: 0 0 8px; letter-spacing: -.02em; }
.page .meta { color: var(--muted); margin: 0 0 32px; }
.page h2 { font-size: 24px; margin: 40px 0 10px; }
.page p, .page li { color: var(--ink); }
.page ul { padding-inline-start: 22px; }
.summary { background: var(--card); border-inline-start: 5px solid var(--accent); border-radius: 14px; padding: 18px 22px; font-size: 18px; }
.contact { background: var(--card); border-radius: var(--radius); padding: 26px; display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.contact p { margin: 0; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--muted); }
footer p { margin: 0; max-width: 44em; }

/* The language menu in the footer: every language, each in its own script; the current one marked. */
.langs-wrap { margin-top: 18px; }
.langs summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; color: var(--ink); font-weight: 600; }
.langs summary::-webkit-details-marker { display: none; }
.langs summary svg { width: 18px; height: 18px; }
.langs ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 18px; }
.langs a { color: var(--muted); text-decoration: none; } .langs a:hover { color: var(--ink); }
.langs a[aria-current] { color: var(--accent); font-weight: 600; }
/* Right to left (Arabic, Hebrew, Urdu): the layout mirrors by itself; the phone pictures keep their real sides. */
[dir="rtl"] .compare, [dir="rtl"] .card .mode, [dir="rtl"] .phone { direction: ltr; }
