/* CraftCam site styles, shared by every page. Dark studio look from the app (Frame/Theme.swift, HomeView). */
:root {
  --bg: #06070B;
  --card: rgba(255, 255, 255, .045);
  --card-solid: #0F1017;
  --well: rgba(255, 255, 255, .07);
  --text: #EEF2F3;
  --dim: rgba(238, 242, 243, .62);
  --faint: rgba(238, 242, 243, .42);
  --hairline: rgba(255, 255, 255, .1);
  --accent: #42B7FA;        /* Theme.accent on dark */
  --accent-fill: #42B7FA;
  --accent-soft: rgba(66, 183, 250, .14);
  --on-accent: #041421;
  --tally: #FF3048;
  --vip: #FFC84A;
  --lens: #B28CFF;
  --duo: #4FD39A;
  --spectrum: conic-gradient(from 210deg, #FF7A45, #FF3D8B, #9B5CFF, #3D8BFF, #3FE3FF, #FFB347, #FF7A45);
  --spectrum-line: linear-gradient(100deg, #FF7A45, #FF3D8B 28%, #9B5CFF 56%, #3D8BFF 80%, #3FE3FF);
  --radius: 28px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 40px; }
section { padding: 110px 0; }

/* Type */
.eyebrow { display: flex; align-items: center; gap: 8px; font: 700 12px/1 var(--mono); letter-spacing: .13em; text-transform: uppercase; color: var(--accent); margin: 0 0 16px; }
.head .eyebrow { justify-content: center; }
h1, h2, h3 { margin: 0; }
h1 { font-size: clamp(44px, 6vw, 76px); line-height: 1; font-weight: 800; letter-spacing: -.034em; }
h1 span { display: block; }
h2 { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.05; font-weight: 800; letter-spacing: -.031em; }
h3 { font-size: 22px; line-height: 1.25; font-weight: 800; letter-spacing: -.014em; }
.hl { background: var(--spectrum-line); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lede { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.55; color: var(--dim); max-width: 36em; margin: 18px 0 0; }
.lede strong { color: var(--text); font-weight: 600; }
.more { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; color: var(--accent); font-weight: 600; text-decoration: none; font-size: 15px; }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }
.mono { font-family: var(--mono); }

/* Nav */
/* Transparent over the hero glow; frosted once the page scrolls (site.js adds .scrolled). */
nav.top {
  position: sticky; top: 0; z-index: 20; background: transparent;
  border-bottom: .5px solid transparent; transition: border-color .3s ease, background .3s ease;
}
nav.top.scrolled { background: rgba(6, 7, 11, .72); backdrop-filter: saturate(160%) blur(20px); -webkit-backdrop-filter: saturate(160%) blur(20px); border-bottom-color: var(--hairline); }
nav.top .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 19px/1 var(--sans); letter-spacing: -.3px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.links { display: flex; gap: 28px; margin-left: auto; }
.links a { text-decoration: none; color: rgba(238, 242, 243, .7); font-size: 14px; font-weight: 600; }
.links a:hover, .links a[aria-current="page"] { color: #fff; }

/* Phone/tablet dropdown menu */
.menu-btn {
  display: none; place-items: center; align-content: center; gap: 5px; width: 36px; height: 36px; margin-right: -6px;
  border: 0; border-radius: 10px; background: transparent; color: var(--text); cursor: pointer;
}
.menu-btn span { display: block; width: 18px; height: 2px; border-radius: 1px; background: currentColor; transition: transform .2s ease; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-menu {
  position: absolute; top: 100%; left: 0; right: 0; padding: 6px 16px 14px;
  background: rgba(10, 11, 16, .96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: .5px solid var(--hairline); box-shadow: 0 18px 30px -20px rgba(0, 0, 0, .6);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a { display: block; padding: 14px 8px; font-size: 17px; text-decoration: none; color: var(--text); border-bottom: .5px solid var(--hairline); }
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu a[aria-current="page"] { color: var(--accent); font-weight: 600; }
section, header { scroll-margin-top: 72px; }

/* Buttons: white on the dark studio, like the app's primary actions. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 24px; border-radius: 16px; border: 0; cursor: pointer;
  background: #fff; color: #0B0D14; font: 700 17px/1 var(--sans); text-decoration: none;
  box-shadow: 0 16px 40px rgba(155, 92, 255, .25); white-space: nowrap;
  transition: transform .15s ease, box-shadow .25s ease, background .15s ease;
}
.btn:hover { box-shadow: 0 18px 44px rgba(155, 92, 255, .38); }
.btn:active { transform: scale(.98); }
.btn svg { width: 19px; height: 19px; }
.btn.small { height: 36px; padding: 0 16px; border-radius: 20px; font-size: 14px; box-shadow: none; }
.btn.ghost { background: var(--well); color: var(--text); box-shadow: none; }
.btn.ghost:hover { background: rgba(255, 255, 255, .12); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; }
.proof { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 16px 0 0; padding: 0; list-style: none; color: rgba(238, 242, 243, .55); font-size: 13px; font-weight: 500; }
.proof li { display: flex; align-items: center; gap: 5px; }
.proof svg { width: 14px; height: 14px; color: var(--accent); }

/* Surfaces */
.panel { background: var(--card); border-radius: var(--radius); box-shadow: inset 0 0 0 .5px var(--hairline); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tally); box-shadow: 0 0 10px var(--tally); flex: none; }
.dot.live { animation: blink 1.2s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.ratio {
  position: absolute; bottom: 8px; right: 8px; font: 700 10px/1 var(--mono); letter-spacing: .03em; color: #fff;
  padding: 5px 7px; border-radius: 6px; background: rgba(0, 0, 0, .55); white-space: nowrap;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.ratio.sky { background: rgba(66, 183, 250, .92); color: var(--on-accent); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.head { max-width: 760px; margin: 0 auto; text-align: center; }
.head .lede { margin-left: auto; margin-right: auto; }
.icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 20px; background: var(--accent-soft); color: var(--accent); }
.icon svg { width: 21px; height: 21px; }
.aside { margin-top: 24px; color: var(--dim); font-size: 15px; text-align: center; }
.aside a { color: var(--accent); font-weight: 600; text-decoration: none; }
.aside a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Pricing tiers */
.tiers { display: grid; grid-template-columns: 1fr 1.25fr; gap: 20px; margin-top: 52px; align-items: stretch; }
.tier { padding: 34px; border-radius: 28px; }
.tier.pro { background: linear-gradient(var(--card-solid), var(--card-solid)) padding-box, var(--spectrum) border-box; border: 1.5px solid transparent; box-shadow: 0 0 60px -20px rgba(155, 92, 255, .45); }
.tier-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tier-top .price { font: 800 28px/1 var(--mono); }
.crown { color: var(--vip); width: 18px; height: 18px; vertical-align: -2px; margin-right: 8px; }
.tier p { color: var(--dim); font-size: 15px; margin: 10px 0 0; }
.list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 11px; font-size: 15.5px; }
.list li { display: flex; gap: 10px; align-items: flex-start; }
.list svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 3px; }
.tier.pro .list { grid-template-columns: 1fr 1fr; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 26px; }
.plan { border-radius: 16px; padding: 14px; background: var(--well); position: relative; }
.plan.best { background: rgba(66, 183, 250, .1); box-shadow: inset 0 0 0 1.5px var(--accent); }
.plan b { display: block; font-size: 15px; }
.plan .p { font: 800 19px/1.2 var(--mono); margin-top: 8px; }
.plan.best .p { color: var(--accent); }
.plan small { display: block; color: var(--dim); font-size: 12.5px; margin-top: 4px; }
.save { position: absolute; top: -10px; right: 10px; font: 800 10.5px/1 var(--sans); letter-spacing: .02em; color: #fff; padding: 5px 8px; border-radius: 8px; background: linear-gradient(100deg, #FF5A5F, #C74BFF 55%, #3D8BFF); }
.fine { color: var(--dim); font-size: 13px; margin-top: 18px; }

/* Privacy */
.perms { display: grid; gap: 12px; }
.perm { display: flex; gap: 16px; align-items: center; padding: 20px 22px; border-radius: 22px; }
.perm .icon { margin: 0; flex: none; }
.perm b { display: block; font-size: 16px; }
.perm span { color: var(--dim); font-size: 14.5px; }
.nots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.nots span { font: 700 12px/1 var(--mono); letter-spacing: .04em; padding: 8px 11px; border-radius: 9px; background: var(--well); color: var(--dim); }
.nots span::before { content: "No "; color: var(--accent); }

/* FAQ */
.faq { margin-top: 44px; padding: 4px 32px; }
details + details { border-top: .5px solid var(--hairline); }
summary {
  list-style: none; cursor: pointer; padding: 22px 36px 22px 0; position: relative;
  font-size: 18px; font-weight: 700; letter-spacing: -.01em;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); transition: transform .2s;
}
details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
details p { margin: -6px 0 22px; color: var(--dim); max-width: 52em; }
details p b { color: var(--text); font-weight: 600; }

/* A note from the maker */
.note { max-width: 780px; margin: 0 auto; padding: 48px 52px 40px; }
.note h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; margin-bottom: 24px; }
.note p:not(.eyebrow) { font-size: 18px; line-height: 1.7; color: var(--dim); margin: 0 0 16px; }
.note p strong { color: var(--text); font-weight: 600; }
.sign { display: flex; align-items: center; gap: 14px; margin-top: 30px; padding-top: 24px; border-top: .5px solid var(--hairline); }
.avatar { width: 48px; height: 48px; border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden; background: var(--accent-soft); color: var(--accent); font: 700 20px/1 var(--rounded); }
.who b { display: block; font-size: 16px; }
.who span { color: var(--dim); font-size: 14px; }
.sign .btn { margin-left: auto; }

/* Final CTA */
.final { text-align: center; padding: 20px 0 110px; }
.final .lede { margin-left: auto; margin-right: auto; }
.final .cta-row { justify-content: center; }
.final img.appicon { width: 88px; height: 88px; border-radius: 20px; margin: 0 auto 28px; box-shadow: 0 16px 40px rgba(0, 0, 0, .5), 0 0 0 .5px rgba(255, 255, 255, .15); }
.final-box { position: relative; overflow: hidden; padding: 96px 32px 88px; border-radius: 40px; background: var(--card); box-shadow: inset 0 0 0 .5px var(--hairline); }
.final-box > :not(.final-bg) { position: relative; z-index: 1; }
.final-box h2 { font-size: clamp(34px, 5vw, 60px); }

footer { border-top: .5px solid var(--hairline); padding: 28px 0 44px; color: var(--dim); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
footer .foot-links { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover, footer a[aria-current="page"] { color: var(--text); }

/* Legal pages (privacy, terms) */
.doc-section { padding: 40px 0 96px; }
.doc { max-width: 780px; margin: 0 auto; padding: 44px 52px 36px; }
.doc h2 { font-size: 22px; line-height: 1.3; letter-spacing: -.01em; margin: 38px 0 12px; font-weight: 700; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { font-size: 16.5px; line-height: 1.7; color: var(--dim); }
.doc p { margin: 0 0 14px; }
.doc ul { margin: 0 0 14px; padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc strong { color: var(--text); font-weight: 600; }
.doc a { color: var(--accent); text-decoration: none; font-weight: 500; }
.doc a:hover { text-decoration: underline; text-underline-offset: 3px; }
.doc .summary { background: var(--accent-soft); border-radius: 18px; padding: 20px 24px; margin: 0 0 8px; }
.doc .summary p, .doc .summary li { color: var(--text); }
.doc .summary p { margin: 0 0 8px; }
.doc .summary ul { margin: 0; }
.doc .caps { text-transform: uppercase; font-size: 14.5px; letter-spacing: .01em; }

/* Sub-page header and pricing page */
.page-top { position: relative; isolation: isolate; padding: 36px 0 0; }
.page-top::before { content: ""; position: absolute; inset: -72px 0 auto 0; height: 760px; z-index: -1; pointer-events: none;
  background: radial-gradient(700px 480px at 80% 0%, rgba(155, 92, 255, .26), transparent 70%), radial-gradient(560px 420px at 6% 40%, rgba(61, 139, 255, .16), transparent 70%); }
.page-top h1 { font-size: clamp(40px, 5.4vw, 68px); line-height: 1.02; }
.crumbs { font-size: 13px; color: var(--faint); margin: 0 0 36px; text-align: left; }
.crumbs a { color: var(--accent); text-decoration: none; }
.plan-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.plan-card { padding: 30px; position: relative; display: flex; flex-direction: column; }
.plan-card.best { background: linear-gradient(var(--card-solid), var(--card-solid)) padding-box, var(--spectrum) border-box; border: 1.5px solid transparent; box-shadow: 0 0 60px -20px rgba(155, 92, 255, .45); }
.plan-card .name { font: 700 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0; }
.plan-card .amount { font: 800 42px/1 var(--mono); letter-spacing: -.03em; margin: 18px 0 0; }
.plan-card .per { color: var(--dim); font-size: 15px; margin: 8px 0 0; }
.plan-card .list { margin-top: 22px; font-size: 15px; }
.badge { position: absolute; top: -12px; left: 28px; color: #fff; font: 800 11px/1 var(--sans); letter-spacing: .02em; padding: 6px 10px; border-radius: 8px; background: linear-gradient(100deg, #FF5A5F, #C74BFF 55%, #3D8BFF); }
.plan-note { max-width: 760px; margin: 28px auto 0; text-align: center; color: var(--faint); font-size: 14px; }
.compare-wrap { margin-top: 52px; padding: 4px 32px 12px; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.compare-table th, .compare-table td { padding: 14px 0; border-bottom: .5px solid var(--hairline); text-align: left; font-weight: 400; vertical-align: middle; }
.compare-table thead th {
  position: sticky; top: 72px; z-index: 1; background: var(--card-solid);
  font: 700 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); padding: 22px 0 14px;
}
.compare-table thead th.pro { color: var(--accent); }
.compare-table .col { width: 160px; text-align: center; }
.compare-table td b { font-weight: 600; }
.compare-table td small { display: block; color: var(--dim); font-size: 13.5px; margin-top: 2px; }
.compare-table tr.group th { padding: 30px 0 10px; font: 700 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.compare-table tbody tr:last-child td { border-bottom: 0; }
.yes svg { width: 19px; height: 19px; color: var(--accent); vertical-align: middle; }
.no { color: var(--faint); font-weight: 700; }
.val { font: 700 13px/1.2 var(--mono); }
.val.hl { background: none; color: var(--accent); }

/* Motion */
.tile, .mode, .tier, .plan-card, .perm, .reel { transition: translate .35s var(--ease-out), box-shadow .35s var(--ease-out); }
@media (hover: hover) {
  .tile:hover, .mode:hover, .plan-card:hover, .perm:hover { translate: 0 -4px; }
}
/* Scroll reveal (classes are added by site.js only when motion is allowed). */
html.js-reveal .reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s var(--ease-out) var(--d, 0ms), transform .8s var(--ease-out) var(--d, 0ms), translate .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
html.js-reveal .reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  nav.top .wrap { gap: 10px; height: 60px; }
  section, header { scroll-margin-top: 60px; }
  .menu-btn { display: grid; }
  .links { display: none; }
  nav.top .btn { margin-left: auto; }
  .split, .tiers { grid-template-columns: 1fr; gap: 44px; }
  .plan-cards { grid-template-columns: 1fr; }
  section { padding: 76px 0; }
  .center-m { text-align: center; }
  .center-m .eyebrow, .center-m .nots { justify-content: center; }
  .center-m .lede { margin-left: auto; margin-right: auto; }
  footer .wrap { flex-direction: column; justify-content: center; text-align: center; gap: 10px; }
  footer .foot-links { margin-left: 0; justify-content: center; }
  .compare-table thead th { top: 60px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  section { padding: 60px 0; }
  .tier { padding: 24px; }
  .tier.pro .list { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .faq { padding: 4px 18px; }
  summary { font-size: 16.5px; }
  .note { padding: 28px 22px 24px; }
  .note p:not(.eyebrow) { font-size: 16.5px; }
  .sign { flex-wrap: wrap; }
  .sign .btn { margin-left: 0; width: 100%; }
  .final .btn { width: 100%; padding: 0 16px; font-size: 16px; }
  .final-box { padding: 60px 20px 52px; border-radius: 28px; }
  .doc { padding: 26px 20px 20px; }
  .doc h2 { font-size: 19px; }
  .doc p, .doc li { font-size: 15.5px; }
  .page-top { padding-top: 22px; }
  .crumbs { margin-bottom: 28px; }
  .plan-card { padding: 24px; }
  .compare-wrap { padding: 0 16px 8px; }
  .compare-table { font-size: 14.5px; }
  .compare-table .col { width: 64px; }
  .compare-table td small { font-size: 12.5px; }
  .val { font-size: 11.5px; }
}
@media (min-width: 961px) { .mobile-menu { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dot.live { animation: none; }
  html.js-reveal .reveal { opacity: 1; transform: none; transition: none; }
  .tile, .mode, .tier, .plan-card, .perm, .btn, .reel { transition: none; }
}
