/* Design Theory — shared design system (from the Apps & Extensions page) */
:root {
  color-scheme: light;
  --bg: #F5F5F7; --surface: #FFFFFF; --surface-2: #F5F5F7;
  --label: #1D1D1F; --label-2: #6E6E73; --label-3: #86868B;
  --sep: rgba(60, 60, 67, 0.14); --fill: rgba(118, 118, 128, 0.12); --fill-2: rgba(118, 118, 128, 0.2);
  --blue: #007AFF; --blue-press: #0062CC; --green: #34C759; --indigo: #5856D6; --orange: #FF9500; --pink: #FF2D55; --teal: #30B0C7; --purple: #AF52DE;
  --tile-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 28px rgba(0, 0, 0, 0.05);
  --glass: rgba(250, 250, 252, 0.72); --glass-rim: rgba(255, 255, 255, 0.9);
  --glass-shadow: 0 8px 28px rgba(0, 0, 0, 0.1), 0 1px 4px rgba(0, 0, 0, 0.06);
  --wallpaper: url("/assets/home/img/wallpaper-light.jpg");
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1080px; --gutter: 20px;
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000; --surface: #1C1C1E; --surface-2: #2C2C2E;
  --label: #F5F5F7; --label-2: #A1A1A6; --label-3: #6E6E73;
  --sep: rgba(84, 84, 88, 0.55); --fill: rgba(118, 118, 128, 0.24); --fill-2: rgba(118, 118, 128, 0.36);
  --blue: #0A84FF; --blue-press: #3D9BFF; --green: #30D158; --indigo: #5E5CE6; --orange: #FF9F0A; --pink: #FF375F; --teal: #40C8E0; --purple: #BF5AF2;
  --tile-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 28px rgba(0, 0, 0, 0.35);
  --glass: rgba(28, 28, 30, 0.7); --glass-rim: rgba(255, 255, 255, 0.12);
  --glass-shadow: 0 8px 28px rgba(0, 0, 0, 0.5), 0 1px 4px rgba(0, 0, 0, 0.3);
  --wallpaper: url("/assets/home/img/wallpaper-dark.jpg");
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--label); font: 400 17px/1.47 var(--font); letter-spacing: -0.012em; -webkit-font-smoothing: antialiased; transition: background .3s var(--ease), color .3s var(--ease); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { margin: 0; letter-spacing: -0.022em; }
p { margin: 0; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 55%, transparent); outline-offset: 2px; border-radius: 8px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 8px 14px; border-radius: 10px; background: var(--blue); color: #fff; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); 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; }
[hidden] { display: none !important; }

/* ---------- glass nav ---------- */
.nav { position: fixed; top: 12px; left: 50%; translate: -50% 0; z-index: 50; width: min(1000px, 100% - 24px); height: 56px; padding: 0 8px 0 14px; border-radius: 28px; display: flex; align-items: center; gap: 12px; background: var(--glass); border: 1px solid var(--glass-rim); box-shadow: var(--glass-shadow); backdrop-filter: blur(22px) saturate(180%); -webkit-backdrop-filter: blur(22px) saturate(180%); }
.nav-brand { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 17px; white-space: nowrap; }
.brand-mark { width: 30px; height: 30px; color: var(--label); flex: 0 0 auto; }
.nav-links { display: flex; gap: 4px; margin: 0 auto; }
.nav-links a { padding: 7px 13px; border-radius: 18px; font-size: 15px; color: var(--label-2); transition: background .2s, color .2s; }
.nav-links a:hover { background: var(--fill); color: var(--label); }
.nav-links a[aria-current] { color: var(--label); background: var(--fill); font-weight: 500; }
.nav-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-links + .nav-actions { margin-left: 0; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
.icon-btn:hover { background: var(--fill); }
.icon-btn svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[data-theme="light"] .i-sun, [data-theme="dark"] .i-moon { display: none; }
.menu-btn { display: none; }
.menu-sheet { position: fixed; top: 76px; left: 12px; right: 12px; z-index: 49; padding: 8px; border-radius: 22px; background: var(--glass); border: 1px solid var(--glass-rim); box-shadow: var(--glass-shadow); backdrop-filter: blur(22px) saturate(180%); -webkit-backdrop-filter: blur(22px) saturate(180%);
  opacity: 0; transform: translateY(-8px) scale(.98); pointer-events: none; transition: opacity .25s var(--ease), transform .3s var(--ease); }
.menu-sheet.is-open { opacity: 1; transform: none; pointer-events: auto; }
.menu-sheet a { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px; border-radius: 14px; font-size: 17px; }
.menu-sheet a:hover, .menu-sheet a[aria-current] { background: var(--fill); }
.menu-sheet a::after { content: "›"; color: var(--label-3); font-size: 20px; }
.menu-sheet .btn { width: 100%; margin-top: 6px; }
.menu-sheet .btn::after { content: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 24px; font-size: 17px; font-weight: 500; transition: background .2s, transform .15s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-filled { background: var(--blue); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--blue) 30%, transparent); }
.btn-filled:hover { background: var(--blue-press); }
.btn-tinted { background: var(--fill); color: var(--blue); }
.btn-tinted:hover { background: var(--fill-2); }
.btn-plain { color: var(--blue); }
.btn-plain:hover { background: var(--fill); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 15px; box-shadow: none; }
.btn-block { width: 100%; }
.get { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 16px; border-radius: 17px; background: var(--fill); color: var(--blue); font-size: 15px; font-weight: 600; white-space: nowrap; transition: background .2s; }
.get:hover { background: var(--fill-2); }
.link-more { color: var(--blue); font-size: 15px; white-space: nowrap; }
.link-more::after { content: " ›"; }
.link-more:hover { text-decoration: underline; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 132px 0 44px; text-align: center; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--wallpaper) center / cover no-repeat; opacity: .55; -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent); mask-image: linear-gradient(180deg, #000 30%, transparent); }
.hero .wrap { position: relative; }
.eyebrow { margin: 0 0 10px; font-size: 15px; font-weight: 600; color: var(--blue); }
.hero h1 { font-size: clamp(38px, 6.4vw, 66px); font-weight: 700; line-height: 1.05; letter-spacing: -0.035em; max-width: 900px; margin: 0 auto; }
.lede { max-width: 620px; margin: 16px auto 0; font-size: clamp(18px, 2.2vw, 21px); color: var(--label-2); }
.hero-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.chips { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; }
.chips li { padding: 8px 16px; border-radius: 20px; background: var(--glass); border: 1px solid var(--glass-rim); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); font-size: 15px; color: var(--label-2); }
.chips strong { color: var(--label); font-weight: 600; }

/* ---------- sections ---------- */
.section { padding-top: 56px; }
.section:last-of-type { padding-bottom: 8px; }
.group-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.group-head h2 { display: flex; align-items: center; gap: 10px; font-size: clamp(26px, 3.4vw, 34px); font-weight: 700; }
.group-head p { margin-top: 6px; color: var(--label-2); font-size: 16px; max-width: 640px; }
.plat { width: 28px; height: 28px; fill: none; stroke: var(--blue); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.prose { max-width: 760px; color: var(--label-2); font-size: 17px; }
.prose p + p { margin-top: 12px; }
.prose h3 { color: var(--label); font-size: 21px; margin: 22px 0 6px; }
.prose ul { padding-left: 20px; margin: 10px 0; }
.prose a { color: var(--blue); }

/* ---------- cards ---------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: 22px; background: var(--surface); box-shadow: var(--tile-shadow); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
a.card:hover, .card.is-link:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(0,0,0,.05), 0 18px 40px rgba(0,0,0,.09); }
.card h3 { font-size: 21px; font-weight: 600; }
.card p { color: var(--label-2); font-size: 15px; line-height: 1.45; }
.card .card-foot { margin-top: auto; padding-top: 4px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tile-icon { width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; color: #fff; flex: 0 0 auto; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.tile-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ti-blue { background: linear-gradient(160deg, #4DA3FF, var(--blue)); }
.ti-green { background: linear-gradient(160deg, #5EDB7D, #28A745); }
.ti-orange { background: linear-gradient(160deg, #FFB340, var(--orange)); }
.ti-pink { background: linear-gradient(160deg, #FF6482, var(--pink)); }
.ti-indigo { background: linear-gradient(160deg, #7D7AFF, var(--indigo)); }
.ti-teal { background: linear-gradient(160deg, #5AC8FA, var(--teal)); }
.ti-purple { background: linear-gradient(160deg, #D17BFF, var(--purple)); }

/* price list inside a card */
.prices { margin: 0; display: grid; gap: 2px; border-radius: 14px; overflow: hidden; }
.prices div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; background: var(--surface-2); }
.prices dt { color: var(--label-2); font-size: 15px; }
.prices dd { margin: 0; font-weight: 600; font-size: 15px; }
.price { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; color: var(--label); }
.price small { font-size: 15px; font-weight: 500; color: var(--label-2); letter-spacing: 0; }
.price-note { color: var(--label-3); font-size: 13px; }
.card.featured { box-shadow: 0 0 0 2px var(--blue), var(--tile-shadow); }
.badge { align-self: flex-start; padding: 4px 10px; border-radius: 10px; background: color-mix(in srgb, var(--blue) 14%, transparent); color: var(--blue); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 26px; color: var(--label-2); font-size: 15px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 17px; height: 17px; border-radius: 50%; background: color-mix(in srgb, var(--green) 18%, transparent) center / 11px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334C759' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }

/* grouped list (iOS settings style) */
.list { list-style: none; margin: 0; padding: 0; border-radius: 18px; background: var(--surface); box-shadow: var(--tile-shadow); overflow: hidden; }
.list li { position: relative; }
.list li + li::before { content: ""; position: absolute; top: 0; left: 76px; right: 0; height: 1px; background: var(--sep); }
.list a, .list .row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.list .tile-icon { width: 44px; height: 44px; border-radius: 11px; }
.list .tile-icon svg { width: 22px; height: 22px; }
.list-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.list-text strong { font-weight: 600; font-size: 16px; }
.list-text span { color: var(--label-2); font-size: 14px; }
.list a::after { content: "›"; color: var(--label-3); font-size: 22px; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.steps li { counter-increment: s; padding: 22px; border-radius: 22px; background: var(--surface); box-shadow: var(--tile-shadow); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 14px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; font-size: 16px; }
.steps h3 { font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.steps p { color: var(--label-2); font-size: 15px; }

/* testimonials */
.quote { margin: 0; display: flex; flex-direction: column; gap: 16px; padding: 22px; border-radius: 22px; background: var(--surface); box-shadow: var(--tile-shadow); }
.quote .stars { color: var(--orange); letter-spacing: 2px; font-size: 15px; }
.quote blockquote { margin: 0; font-size: 17px; line-height: 1.5; }
.quote figcaption { margin-top: auto; display: flex; flex-direction: column; color: var(--label-2); font-size: 14px; }
.quote figcaption strong { color: var(--label); font-size: 15px; font-weight: 600; }

/* FAQ */
.faq { border-radius: 18px; background: var(--surface); box-shadow: var(--tile-shadow); overflow: hidden; }
.faq details { border-top: 1px solid var(--sep); }
.faq details:first-child { border-top: 0; }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; font-weight: 600; font-size: 17px; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: 0 0 auto; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--fill); color: var(--blue); font-size: 18px; font-weight: 500; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding: 0 20px 18px; color: var(--label-2); font-size: 16px; }
.faq .faq-a p + p { margin-top: 8px; }

/* contact + forms */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px; align-items: start; }
.contact-copy h2 { font-size: clamp(28px, 3.6vw, 38px); font-weight: 700; }
.contact-copy .lede { margin: 10px 0 20px; text-align: left; }
.form { padding: 22px; border-radius: 22px; background: var(--surface); box-shadow: var(--tile-shadow); display: grid; gap: 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--label-2); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid transparent; background: var(--surface-2); font-size: 16px; outline: none; transition: border-color .2s, background .2s; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); background: var(--surface); }
.form-status { min-height: 1.3em; font-size: 15px; text-align: center; color: var(--label-2); }
.form-status.is-error { color: var(--pink); }
.form-status.is-success { color: var(--green); }

/* CTA */
.cta { padding-top: 56px; padding-bottom: 64px; }
.cta-card { text-align: center; padding: clamp(32px, 6vw, 56px) 24px; border-radius: 28px; background: var(--surface); box-shadow: var(--tile-shadow); }
.cta-card h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 700; }
.cta-card p { max-width: 560px; margin: 12px auto 24px; color: var(--label-2); }
.cta-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* footer */
.foot { margin-top: 56px; border-top: 1px solid var(--sep); }
.foot-in { display: grid; grid-template-columns: 1.2fr 2fr; gap: 24px; padding-top: 28px; padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
.foot-brand { display: flex; flex-direction: column; gap: 8px; color: var(--label-2); font-size: 14px; }
.foot-brand .nav-brand { color: var(--label); }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.foot-cols h4 { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--label); }
.foot-cols a { display: block; padding: 3px 0; color: var(--label-2); font-size: 14px; }
.foot-cols a:hover { color: var(--label); }
.foot-legal { padding-bottom: calc(24px + env(safe-area-inset-bottom)); color: var(--label-3); font-size: 12px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- tablet ---------- */
@media (max-width: 980px) {
  .grid, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links a { padding: 7px 9px; font-size: 14px; }
  .contact { grid-template-columns: 1fr; }
}

/* ---------- phone ---------- */
@media (max-width: 720px) {
  body { font-size: 16px; }
  html { scroll-padding-top: 84px; }
  .nav { height: 52px; padding-left: 12px; }
  .nav-links, .nav-actions .btn { display: none; }
  .menu-btn { display: grid; }
  .menu-sheet { top: 72px; }
  .hero { padding: 104px 0 28px; text-align: left; }
  .hero h1 { font-size: 38px; margin: 0; }
  .lede { margin-left: 0; font-size: 17px; }
  .hero-actions { justify-content: stretch; }
  .hero-actions .btn { flex: 1 1 100%; }
  .chips { justify-content: flex-start; gap: 8px; margin-top: 20px; }
  .chips li { padding: 6px 12px; font-size: 13px; }
  .section { padding-top: 40px; }
  .group-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .group-head h2 { font-size: 26px; }
  .grid, .grid-2, .grid-4, .steps { grid-template-columns: 1fr; gap: 12px; }
  .card, .steps li, .quote { padding: 18px; border-radius: 18px; }
  .form-row { grid-template-columns: 1fr; }
  .cta { padding-top: 40px; padding-bottom: 40px; }
  .cta-actions .btn { width: 100%; }
  .foot-in { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
/* header: links sit on the right with the theme switch */
.nav-links { margin: 0 0 0 auto; }
@media (max-width: 720px) { .nav .nav-actions { margin-left: auto; } }
