/* Instapium layout. Colours, fonts, radii and shadows come from the theme
   file linked before this one (themes/studio.css). */

:root { --wrap: 1120px; --gutter: 24px; }

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

body {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    font-feature-settings: "kern" 1, "liga" 1;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: 0.15em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }

h1, h2, h3 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4.25rem); }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.6rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.015em; line-height: 1.3; }
.lead { font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); color: var(--muted); max-width: 58ch; margin-top: 1.25rem; }
.section-head p { color: var(--muted); max-width: 60ch; margin-top: .75rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header-inner { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; display: flex; align-items: center; gap: 1.5rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; font-size: 1.125rem; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.site-nav { display: flex; align-items: center; gap: .25rem 1.25rem; flex-wrap: wrap; margin-left: auto; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.site-nav a:hover { color: var(--accent-ink); }
.nav-cta { background: var(--cta-bg); color: var(--cta-ink) !important; padding: .5rem .9rem; border-radius: 999px; }
.theme-toggle-group { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; gap: 2px; margin: 0; background: var(--surface); }
.theme-option { position: relative; display: flex; align-items: center; justify-content: center; min-width: 38px; min-height: 34px; border-radius: 999px; cursor: pointer; opacity: .65; }
.theme-option input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.theme-option svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-option:has(input:checked) { background: var(--paper); opacity: 1; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.theme-option:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Hero */
.hero { background: var(--hero-bg); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 2rem 4rem; align-items: center; }
.hero-copy { padding: clamp(3rem, 2rem + 4vw, 6rem) 0 clamp(3rem, 2rem + 3vw, 5rem); }
.hero-actions { display: flex; align-items: center; gap: 1rem 1.5rem; flex-wrap: wrap; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; gap: .5rem; background: var(--cta-bg); color: var(--cta-ink); text-decoration: none; font-weight: 600; padding: .8rem 1.25rem; border-radius: 999px; }
.button:hover { color: var(--cta-ink); opacity: .92; }
.text-link { font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .2em; }
.hero-facts { list-style: none; padding: 0; margin: 2.25rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; color: var(--muted); font-size: .9375rem; }
.hero-visual { position: relative; padding: 2rem 0; }

/* The desk: a Mac window mirroring a phone, two more phones beside it. */
.desk { position: relative; filter: var(--device-shadow); }
.mac { background: var(--glass); border: 1px solid var(--glass-edge); border-radius: 14px; padding: 10px; color: #c9cee6; }
.mac-bar { display: flex; gap: 6px; padding: 2px 4px 10px; }
.mac-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a4166; display: block; }
.mac-body { display: grid; grid-template-columns: 3fr 4fr; gap: 10px; }
.mirror { aspect-ratio: 9 / 18; background: var(--screen); border: 1px solid var(--glass-edge); border-radius: 12px; position: relative; overflow: hidden; }
.mirror i { position: absolute; left: 14%; right: 14%; height: 5%; border-radius: 6px; background: #2a3050; }
.mirror i:nth-child(1) { top: 10%; } .mirror i:nth-child(2) { top: 22%; height: 34%; }
.mirror i:nth-child(3) { top: 62%; } .mirror i:nth-child(4) { top: 72%; width: 30%; right: auto; }
.tap { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 25%, transparent); left: 30%; top: 63%; transform: translate(-50%, -50%); }
@media (prefers-reduced-motion: no-preference) {
    .tap { animation: tap 3.6s cubic-bezier(.4, 0, .2, 1) infinite; }
    @keyframes tap { 0%, 18% { left: 30%; top: 63%; } 30%, 48% { left: 70%; top: 63%; } 60%, 78% { left: 50%; top: 40%; } 90%, 100% { left: 30%; top: 63%; } }
}
.steps { display: grid; gap: 6px; align-content: start; font-size: .72rem; line-height: 1.3; }
.steps div { display: flex; gap: 8px; align-items: center; background: var(--screen); border: 1px solid var(--glass-edge); border-radius: 8px; padding: 6px 8px; }
.steps span { width: 8px; height: 8px; border-radius: 50%; background: #3a4166; flex: none; }
.steps .done span { background: var(--accent); }
.steps .run { border-color: var(--accent); }
.phones { position: absolute; right: -6%; bottom: -10%; display: flex; gap: 10px; }
.phones .phone { width: clamp(52px, 7vw, 76px); aspect-ratio: 9 / 19; background: var(--glass); border: 1px solid var(--glass-edge); border-radius: 12px; position: relative; }
.phones .phone::after { content: ""; position: absolute; inset: 8% 10%; border-radius: 8px; background: var(--screen); }
.phones .phone b { position: absolute; z-index: 1; left: 24%; right: 24%; top: 30%; height: 4%; border-radius: 4px; background: var(--accent); }
.phones .phone b + b { top: 42%; background: #3a4166; }

/* Sections */
.section { padding: var(--section) 0; border-bottom: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; }
.card p { color: var(--muted); margin-top: .5rem; }
.card h3 + p { margin-top: .5rem; }
.card .step { display: inline-flex; width: 2rem; height: 2rem; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; margin-bottom: 1rem; }

.plain { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 3rem; max-width: 62rem; }
.plain h3 { margin-bottom: .35rem; }
.plain p { color: var(--muted); }

.reqs { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 2rem; max-width: 56rem; }
.reqs li { padding: .9rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.reqs strong { display: block; margin-bottom: .15rem; }
.reqs span { color: var(--muted); }

.faq { max-width: 62ch; }
.faq details { border-top: 1px solid var(--line); padding: 1rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-ink); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin-top: .6rem; }

.cta-band { background: var(--surface); padding: var(--section) 0; }
.cta-band .wrap { display: grid; gap: 1.25rem; justify-items: start; max-width: 62ch; margin-inline: auto; }
.cta-band p { color: var(--muted); }

.site-footer { padding: 2.5rem 0 3rem; color: var(--muted); font-size: .9375rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: .75rem 2rem; align-items: center; }
.site-footer a { color: inherit; }

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { padding: 0 0 3rem; max-width: 34rem; }
    .trio { grid-template-columns: 1fr; }
    .plain, .reqs { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .site-header-inner { flex-wrap: wrap; gap: .75rem 1rem; padding: .6rem 0; }
    .site-nav { margin-left: 0; order: 3; width: 100%; }
    .phones { right: 0; bottom: -6%; }
}

/* Consent banner (Google Analytics, Consent Mode v2 — see site.js) */
.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 9999; display: flex; justify-content: center; }
.cookie-content { display: flex; align-items: center; gap: 1rem 1.5rem; flex-wrap: wrap; background: var(--ink); color: var(--paper); padding: .9rem 1.25rem; border-radius: var(--radius); max-width: 760px; box-shadow: 0 16px 40px rgba(0,0,0,.25); }
.cookie-content p { font-size: .9375rem; flex: 1 1 320px; }
.cookie-buttons { display: flex; gap: .5rem; }
.cookie-btn { border: 1px solid transparent; border-radius: 999px; padding: .55rem 1.1rem; font: inherit; font-weight: 600; cursor: pointer; min-height: 40px; }
.cookie-btn.accept { background: var(--paper); color: var(--ink); }
.cookie-btn.reject { background: transparent; color: var(--paper); border-color: rgba(255,255,255,.35); }
@media (max-width: 640px) { .cookie-content { padding: .9rem 1rem; } }
