/* controlformac.com — one stylesheet for every page.
   Night navy, because the App Store artwork is drawn on it: the device shots sit in the page
   instead of in boxes. The app icon's aqua is the one accent. Dark only, on purpose — the artwork
   has its background baked in, and on a light page every image would be a dark rectangle. */

:root {
    color-scheme: dark;
    --ink: #060818;
    --night: #0b1030;
    --deep: #161d4c;
    --plum: #2b1942;
    --text: #eef1ff;
    --text-2: #a7aed3;
    --text-3: #737ca5;
    --line: rgba(167, 182, 255, 0.12);
    --line-2: rgba(167, 182, 255, 0.22);
    --glass: rgba(255, 255, 255, 0.035);
    --glass-2: rgba(255, 255, 255, 0.06);
    --aqua: #7af0f4;
    --aqua-2: #39d3dc;
    --aqua-ink: #06303a;
    --aqua-soft: rgba(122, 240, 244, 0.10);
    --max: 1160px;
    --gutter: 24px;
    --radius: 22px;
    --display: 'Bricolage Grotesque', ui-sans-serif, -apple-system, sans-serif;
    --body: 'Geist', ui-sans-serif, -apple-system, sans-serif;
    --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* overflow-x: clip, not hidden — the glows are wider than a phone, and clip does not make the
       page a scroll container, so the sticky nav keeps working. */
    overflow-x: clip;
}
/* The atmosphere: the same blue-to-plum the artwork is drawn on, fixed behind everything, with a
   fine grain so the gradients do not band on wide screens. */
body::before {
    content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
    background:
        radial-gradient(60vw 50vh at 18% -6%, rgba(38, 56, 150, 0.55), transparent 70%),
        radial-gradient(50vw 60vh at 100% 38%, rgba(70, 30, 96, 0.42), transparent 70%),
        radial-gradient(70vw 60vh at 40% 110%, rgba(24, 34, 98, 0.5), transparent 70%),
        linear-gradient(180deg, var(--ink), #080b22 60%, var(--ink));
}
body::after {
    content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.07;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--aqua); color: var(--aqua-ink); }

/* ── Nav ─────────────────────────────────────────────────────────────── */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(6, 8, 24, 0.62);
    backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px);
    border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: 14px; color: var(--text-2); text-decoration: none; transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text); }
.nav .btn { padding: 8px 14px; font-size: 13px; }
.nav-links a.btn-aqua, .nav-links a.btn-aqua:hover { color: var(--aqua-ink); }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 22px; border-radius: 999px;
    font-family: var(--body); font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
    text-decoration: none; white-space: nowrap;
    transition: transform .2s ease, box-shadow .25s ease, background-color .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.btn-aqua { background: var(--aqua); color: var(--aqua-ink); box-shadow: 0 0 0 1px rgba(122,240,244,.4), 0 10px 40px -10px rgba(122,240,244,.55); }
.btn-aqua:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(122,240,244,.6), 0 16px 50px -10px rgba(122,240,244,.7); }
.btn-ghost { background: var(--glass); color: var(--text); border: 1px solid var(--line-2); }
.btn-ghost:hover { transform: translateY(-2px); background: var(--glass-2); border-color: rgba(167,182,255,.35); }

/* ── Type ────────────────────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; }
.glow {
    background: linear-gradient(100deg, var(--aqua) 10%, #b9f9fb 45%, var(--aqua-2) 90%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section { padding: 120px 0 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head .mono { color: var(--aqua); margin-bottom: 14px; display: block; }
.section-head h2 { font-size: clamp(36px, 5.2vw, 60px); }
.section-head p { color: var(--text-2); font-size: 18px; margin-top: 16px; max-width: 560px; }
.center { text-align: center; margin-left: auto; margin-right: auto; max-width: 860px; }
.center p { margin-left: auto; margin-right: auto; }

/* ── Hero ────────────────────────────────────────────────────────────── */
/* clip, not hidden: the art bleeds past a phone's edges and the glow is wider than the screen.
   Unclipped, the page grows wider than the phone and Safari lets it pan sideways. */
.hero { position: relative; padding: 84px 0 0; text-align: center; overflow-x: clip; }
.hero .eyebrow { color: var(--text-2); display: inline-flex; gap: 10px; align-items: center; padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--glass); }
.hero .eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 12px var(--aqua); font-style: normal; }
.hero h1 { font-size: clamp(50px, 10vw, 128px); margin: 28px auto 0; }
.hero h1 .glow { display: block; padding-bottom: .06em; }
.hero .lede { font-size: clamp(17px, 2vw, 20px); color: var(--text-2); max-width: 600px; margin: 26px auto 0; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.cta-note { color: var(--text-3); margin-top: 18px; text-wrap: balance; }
.hero-art { position: relative; margin: 64px auto 0; max-width: 1400px; padding: 0 12px; }
.hero-art::before {
    content: ''; position: absolute; left: 50%; top: 30%; width: 70%; height: 60%; transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(122,240,244,.22), transparent); filter: blur(40px); z-index: -1;
}
/* The artwork's own navy edges dissolve into the page. */
.hero-art img {
    width: 100%;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 11%, #000 89%, transparent), linear-gradient(180deg, transparent, #000 14%, #000 84%, transparent);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent, #000 11%, #000 89%, transparent), linear-gradient(180deg, transparent, #000 14%, #000 84%, transparent);
    mask-composite: intersect;
}

/* ── Two apps, one link ──────────────────────────────────────────────── */
.pair { display: grid; grid-template-columns: 1fr 120px 1fr; align-items: stretch; }
.card {
    position: relative; background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
    border: 1px solid var(--line); border-radius: var(--radius); padding: 32px;
}
.pair .card { display: flex; flex-direction: column; }
.role { display: inline-flex; align-items: center; gap: 8px; color: var(--aqua); margin-bottom: 18px; }
.role svg { width: 16px; height: 16px; fill: currentColor; }
.pair h3 { font-size: 30px; }
.where { font-weight: 600; color: var(--text); margin: 8px 0 12px; }
.pair .copy { color: var(--text-2); flex: 1; margin-bottom: 26px; }
.pair .btn { width: 100%; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 16px; color: var(--text-3); }
/* The link between the cards: a live line with a packet running along it, both ways. It is the
   product in one picture — two devices, one encrypted connection — so it is the one animation that
   loops. */
.link { position: relative; display: flex; align-items: center; justify-content: center; }
.link::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: linear-gradient(90deg, transparent, var(--aqua-2) 20%, var(--aqua-2) 80%, transparent); opacity: .55; }
.link span.dot { position: absolute; top: calc(50% - 3px); left: 10%; width: 6px; height: 6px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 14px 2px var(--aqua); animation: packet 2.8s cubic-bezier(.6,0,.4,1) infinite alternate; }
.link .lock { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--night); border: 1px solid var(--line-2); box-shadow: 0 0 0 6px var(--ink); }
.link .lock svg { width: 18px; height: 18px; fill: var(--aqua); }
.link .label { position: absolute; top: calc(50% + 34px); white-space: nowrap; color: var(--text-3); }
@keyframes packet { from { left: 8%; } to { left: calc(92% - 6px); } }
.pair-note { color: var(--text-3); font-size: 14px; max-width: 720px; margin: 28px auto 0; text-align: center; }

/* ── Showcase ────────────────────────────────────────────────────────── */
.strip {
    display: grid; grid-auto-flow: column; grid-auto-columns: min(300px, 72vw); gap: 18px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
    padding: 8px max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))) 28px;
    scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip figure { scroll-snap-align: start; border-radius: 36px; overflow: hidden; border: 1px solid var(--line); background: var(--night); }
.strip img { width: 100%; }
.strip-hint { color: var(--text-3); display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.bento { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; margin-top: 18px; }
.bento figure { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--night); }
.bento figure.wide { grid-column: span 2; }
.bento img { width: 100%; height: 100%; object-fit: cover; }
.bento figcaption { position: absolute; left: 16px; bottom: 16px; padding: 6px 12px; border-radius: 999px; background: rgba(6,8,24,.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); color: var(--text-2); }

/* ── Features ────────────────────────────────────────────────────────── */
.features { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature { padding: 30px 28px 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background-color .3s; }
.feature:hover { background: var(--glass); }
.feature svg { width: 26px; height: 26px; fill: var(--aqua); margin-bottom: 18px; }
.feature h3 { font-size: 21px; letter-spacing: -0.02em; margin-bottom: 8px; }
.feature p { color: var(--text-2); font-size: 15px; }

/* ── Trust ───────────────────────────────────────────────────────────── */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.trust .card h3 { font-size: 26px; margin: 10px 0 10px; }
.trust .card p { color: var(--text-2); font-size: 15px; }
.trust .big { font-family: var(--display); font-size: 64px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; }

/* ── Pricing ─────────────────────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.plan h3 { font-size: 34px; }
.plan .price { font-family: var(--display); font-size: 22px; font-weight: 600; margin: 6px 0 14px; color: var(--text-2); }
.plan .price b { color: var(--aqua); font-weight: 700; }
.plan p { color: var(--text-2); }
.plan.featured { border-color: rgba(122,240,244,.35); background: linear-gradient(180deg, rgba(122,240,244,.08), rgba(255,255,255,.02)); }
.tag { display: inline-block; margin-left: 8px; padding: 3px 9px; border-radius: 999px; background: var(--aqua); color: var(--aqua-ink); font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; vertical-align: 4px; }

/* ── Steps ───────────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { counter-increment: step; }
.step::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--mono); font-size: 13px; color: var(--aqua); margin-bottom: 18px; }
.step h3 { font-size: 24px; margin-bottom: 10px; }
.step p { color: var(--text-2); font-size: 15px; }

/* ── FAQ ─────────────────────────────────────────────────────────────── */
/* <details>, not a script: it opens with no JS, is keyboard accessible for free, and find-in-page
   searches inside closed ones. A question somebody cannot find is a support email. */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 4px; font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: -0.02em; transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex-shrink: 0; width: 12px; height: 12px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: rotate(45deg) translateY(-3px); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, 0); border-color: var(--aqua); }
.faq summary:hover { color: var(--aqua); }
.faq .answer { padding: 0 4px 26px; color: var(--text-2); max-width: 760px; }
.faq .answer p + p { margin-top: 12px; }
.faq .answer a, .prose a { color: var(--aqua); text-decoration: none; }
.faq .answer a:hover, .prose a:hover { text-decoration: underline; }
.faq .answer strong { color: var(--text); font-weight: 600; }

/* ── Contact band ────────────────────────────────────────────────────── */
.band { position: relative; overflow: hidden; text-align: center; padding: 64px 32px; border-radius: 32px; border: 1px solid var(--line-2); background: radial-gradient(80% 120% at 50% 0%, rgba(122,240,244,.14), transparent 60%), linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); }
.band h2 { font-size: clamp(34px, 4.6vw, 52px); }
.band p { color: var(--text-2); max-width: 520px; margin: 16px auto 28px; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.footer { margin-top: 120px; border-top: 1px solid var(--line); padding: 48px 0 56px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer .brand { margin-bottom: 10px; }
.footer small { display: block; color: var(--text-3); font-size: 13px; max-width: 360px; }
.footer-links { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 48px; align-content: start; }
.footer-links a { color: var(--text-2); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--text); }
.fineprint { margin-top: 40px; color: var(--text-3); font-size: 12px; }

/* ── Inner pages (Mac download, press, privacy, support) ─────────────── */
.page-hero { padding: 88px 0 0; }
.page-hero h1 { font-size: clamp(46px, 7vw, 84px); }
.page-hero .lede { color: var(--text-2); font-size: 19px; max-width: 620px; margin-top: 20px; }
.app-icon { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 20px 60px -20px rgba(122,240,244,.5), 0 0 0 1px rgba(255,255,255,.08); margin-bottom: 30px; }
.prose { max-width: 720px; }
.prose h2 { font-size: 30px; margin: 56px 0 14px; }
.prose p, .prose li { color: var(--text-2); }
.prose p + p { margin-top: 14px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul { padding-left: 20px; margin-top: 12px; }
.prose li + li { margin-top: 8px; }
.list { counter-reset: n; display: grid; gap: 14px; margin-top: 8px; }
.list li { list-style: none; counter-increment: n; display: grid; grid-template-columns: 52px 1fr; gap: 4px 16px; padding: 24px 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--glass); }
.list li::before { content: counter(n, decimal-leading-zero); grid-row: span 2; font-family: var(--mono); color: var(--aqua); font-size: 14px; padding-top: 3px; }
.list b { font-family: var(--display); font-size: 20px; letter-spacing: -0.02em; color: var(--text); }
.list p { color: var(--text-2); font-size: 15px; }
.notice { display: none; margin: 0 auto; max-width: var(--max); padding: 14px var(--gutter); background: rgba(122,240,244,.1); border-bottom: 1px solid rgba(122,240,244,.25); font-size: 14px; color: var(--text); }
.notice.show { display: block; }
.notice a { color: var(--aqua); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 40px; }
.facts .card { padding: 22px 24px; }
.facts .mono { color: var(--text-3); display: block; margin-bottom: 8px; }
.facts a { color: var(--aqua); text-decoration: none; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.gallery.phones { grid-template-columns: repeat(6, 1fr); }
.gallery figure { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--night); }
.gallery figcaption { padding: 10px 14px; font-size: 13px; color: var(--text-3); }
.gallery figcaption a { color: var(--aqua); text-decoration: none; }

/* ── Reveal on scroll — only when the script runs, so nothing hides without it ─ */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.hero > .wrap > * { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.hero > .wrap > :nth-child(2) { animation-delay: .08s; }
.hero > .wrap > :nth-child(3) { animation-delay: .16s; }
.hero > .wrap > :nth-child(4) { animation-delay: .24s; }
.hero > .wrap > :nth-child(5) { animation-delay: .3s; }
.hero-art { animation: rise 1.2s .35s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* ── Narrow screens ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .features { grid-template-columns: 1fr 1fr; }
    .trust { grid-template-columns: 1fr; }
    .gallery.phones { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
    :root { --gutter: 16px; }
    .nav-links a.hide-narrow { display: none; }
    .nav-links { gap: 16px; }
    .section { padding-top: 88px; }
    .hero { padding-top: 56px; }
    .cta-row .btn { width: 100%; }
    /* The artwork has empty margins at the sides; on a phone it bleeds past the screen so the
       devices read at a useful size, and only the floating window's far edge runs off. */
    .hero-art { margin: 40px 0 0 -16%; width: 132%; padding: 0; }
    .pair { grid-template-columns: 1fr; grid-template-rows: auto 96px auto; }
    .link::before { left: 50%; right: auto; top: 0; bottom: 0; width: 1px; height: auto; background: linear-gradient(180deg, transparent, var(--aqua-2) 20%, var(--aqua-2) 80%, transparent); }
    .link span.dot { left: calc(50% - 3px); top: 10%; animation-name: packet-v; }
    .link .label { top: auto; left: calc(50% + 34px); }
    .card { padding: 26px 22px; }
    .bento { grid-template-columns: 1fr; }
    .bento figure.wide { grid-column: auto; }
    .features { grid-template-columns: 1fr; }
    .feature { display: grid; grid-template-columns: 26px 1fr; gap: 4px 16px; padding: 22px 20px; }
    .feature svg { grid-row: span 2; margin: 2px 0 0; }
    .plans, .steps { grid-template-columns: 1fr; }
    .faq summary { font-size: 18px; padding: 20px 2px; }
    .band { padding: 48px 22px; border-radius: 24px; }
    .facts { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: 1fr 1fr; }
    .gallery.phones { grid-template-columns: repeat(2, 1fr); }
    .list li { grid-template-columns: 1fr; padding: 20px; }
    .list li::before { grid-row: auto; }
}
@keyframes packet-v { from { top: 8%; } to { top: calc(92% - 6px); } }
