/* Clearloft website — plain CSS, no build step, no external fonts.
   Colours match the app (Brand in mac/Sources/Reclaim/SmartCare.swift). */
:root {
  --bg: #07102a;
  --bg2: #0b0b2e;
  --glow: #00ccff;
  --glow2: #1a66ff;
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.70);
  --soft: rgba(255, 255, 255, 0.52);
  --faint: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.12);
  --card: rgba(255, 255, 255, 0.05);
  --radius: 20px;
  --max: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg); scroll-padding-top: 80px; }
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1100px 700px at 75% -10%, rgba(26, 102, 255, 0.26), transparent 60%),
    radial-gradient(900px 700px at -5% 25%, rgba(0, 204, 255, 0.13), transparent 60%),
    linear-gradient(160deg, var(--bg), var(--bg2));
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* A faint grid, like graph paper, so the dark reads as designed rather than empty. */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.sprite { position: absolute; }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; }
.grad {
  background: linear-gradient(90deg, #fff 0%, var(--glow) 55%, #86b6ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 10px; z-index: 100; padding: 10px 16px; border-radius: 10px;
  background: #fff; color: #000; font-weight: 700; }
.skip:focus { left: 10px; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  background: rgba(7, 16, 42, 0.5); border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-color: var(--line); background: rgba(7, 16, 42, 0.82); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.links { display: flex; gap: 26px; font-size: 15px; color: var(--muted); margin-left: auto; }
.links a { position: relative; transition: color .2s; }
.links a:hover, .links a.active { color: #fff; }
.links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px;
  border-radius: 2px; background: linear-gradient(90deg, var(--glow), var(--glow2)); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font: 700 15px/1 var(--font);
  border: 1px solid var(--line); background: var(--faint); color: #fff; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); background: rgba(255,255,255,.12); }
.btn.primary { border: none; background: linear-gradient(90deg, var(--glow), var(--glow2));
  box-shadow: 0 10px 30px rgba(0, 170, 255, 0.32); }
.btn.primary:hover { box-shadow: 0 14px 40px rgba(0, 170, 255, 0.5); }
.btn.big { padding: 16px 28px; font-size: 17px; }
.btn.sm { padding: 10px 18px; font-size: 14px; }
.btn .i { width: 18px; height: 18px; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.menu-toggle .i { width: 24px; height: 24px; }

/* hero */
.hero { position: relative; padding: 70px 0 40px; text-align: center; }
.hero-art { position: relative; width: 360px; height: 290px; margin: 0 auto 22px; }
.hero-art .halo { position: absolute; inset: 50px 80px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,204,255,.45), transparent 70%); filter: blur(30px);
  animation: breathe 5s ease-in-out infinite; }
.hero-art .mark { position: absolute; left: 50%; top: 50%; width: 150px; height: 150px; margin: -75px 0 0 -75px;
  filter: drop-shadow(0 20px 40px rgba(26, 102, 255, .55)); animation: float 6s ease-in-out infinite; }
.floaty { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border-radius: 13px; display: grid; place-items: center; color: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.3); transition: transform 2.8s cubic-bezier(.45,.05,.55,.95); }
.floaty .i { width: 21px; height: 21px; }
h1 { font-size: clamp(40px, 6.2vw, 76px); line-height: 1.03; letter-spacing: -0.035em; font-weight: 800; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 660px; margin: 22px auto 32px; }
.ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.fine { margin-top: 16px; font-size: 13px; color: var(--soft); }

.trust { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px;
  margin: 34px auto 0; color: var(--muted); font-size: 14px; font-weight: 600; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust .i { color: var(--glow); width: 18px; height: 18px; }
.trust.small { margin-top: 28px; font-size: 13px; }

/* product shot */
.shot-frame { margin: 56px auto 0; max-width: 1100px; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line); background: #0a1230;
  box-shadow: 0 40px 120px rgba(0, 60, 200, .35);
  transform: perspective(1600px) rotateX(7deg) scale(.98); transform-origin: 50% 0;
  transition: transform 1s cubic-bezier(.2,.8,.2,1); }
.shot-frame.in { transform: none; }
.shot-bar { display: flex; gap: 7px; padding: 11px 14px; background: rgba(255,255,255,.04); border-bottom: 1px solid var(--line); }
.shot-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.shot-bar i:nth-child(2) { background: #febc2e; } .shot-bar i:nth-child(3) { background: #28c840; }

/* sections */
section { padding: 96px 0; }
section.tight { padding: 56px 0; }
.kicker { color: var(--glow); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
h2 { font-size: clamp(30px, 4.2vw, 50px); letter-spacing: -0.03em; line-height: 1.1; margin: 12px 0 16px; font-weight: 800; }
h3 { letter-spacing: -0.01em; }
.sub { color: var(--muted); font-size: 18px; max-width: 620px; }
.center { text-align: center; } .center .sub { margin: 0 auto; }

.tile { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: #fff; margin-bottom: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.tile .i { width: 22px; height: 22px; }
.t-brand { background: linear-gradient(135deg, var(--glow), var(--glow2)); }
.t-pink { background: linear-gradient(135deg, #f472b6, #db2777); }
.t-teal { background: linear-gradient(135deg, #2dd4bf, #0d9488); }
.t-orange { background: linear-gradient(135deg, #fb923c, #ea580c); }
.t-cyan { background: linear-gradient(135deg, #22d3ee, #0891b2); }
.t-indigo { background: linear-gradient(135deg, #818cf8, #4f46e5); }
.t-green { background: linear-gradient(135deg, #4ade80, #16a34a); }
.t-stone { background: linear-gradient(135deg, #a8a29e, #57534e); }
.t-blue { background: linear-gradient(135deg, #60a5fa, #1d4ed8); }
.t-sky { background: linear-gradient(135deg, #38bdf8, #0284c7); }
.t-red { background: linear-gradient(135deg, #f87171, #dc2626); }
.t-purple { background: linear-gradient(135deg, #c084fc, #7c3aed); }

/* steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; counter-reset: s; }
.steps li { position: relative; padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.steps .num { position: absolute; top: 22px; right: 24px; font-size: 44px; font-weight: 800; line-height: 1;
  color: rgba(255,255,255,.07); }
.steps h3 { font-size: 20px; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 15px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 46px; }
.card { position: relative; padding: 26px; border-radius: var(--radius); background: var(--card);
  border: 1px solid var(--line); transition: transform .3s, border-color .3s, background .3s; }
.card:hover { transform: translateY(-4px); border-color: rgba(0, 204, 255, .4); background: rgba(255,255,255,.075); }
.card h3 { font-size: 18px; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 15px; }
.pro-tag { position: absolute; top: 20px; right: 20px; font-size: 10px; font-weight: 800; letter-spacing: .08em;
  padding: 4px 8px; border-radius: 999px; background: rgba(0,204,255,.14); color: var(--glow); }

/* feature rows */
.row { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; margin-top: 96px; }
.row.flip { grid-template-columns: 1.25fr 1fr; }
.row.flip .copy { order: 2; }
.row .shot { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 40, 160, .35); }
.ticks { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; color: var(--muted); }
.ticks li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%;
  background: rgba(0,204,255,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300ccff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat; }

/* safety */
.safety { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 46px; }
.never { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: center; margin-top: 16px;
  padding: 34px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.never h3 { font-size: 26px; margin: 8px 0 8px; }
.never .sub { font-size: 16px; }
.never ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.never li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 15px; }
.never li .i { color: #ff8a8a; width: 18px; height: 18px; margin-top: 3px; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 46px; align-items: stretch; }
/* One plan while Clearloft is free during early access. */
.plans.one { grid-template-columns: minmax(0, 440px); justify-content: center; }
.plan { padding: 30px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; }
.plan.best { border: 2px solid var(--glow); background: linear-gradient(180deg, rgba(0,204,255,.1), rgba(26,102,255,.04)); position: relative; }
.plan.best::before { content: "Best value"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(90deg, var(--glow), var(--glow2)); padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.plan h3 { font-size: 19px; }
.price { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; margin: 12px 0 0; }
.price small { font-size: 16px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.per { color: var(--soft); font-size: 14px; }
.plan ul { list-style: none; margin: 20px 0 26px; display: grid; gap: 10px; color: var(--muted); font-size: 15px; flex: 1; }
.plan li { display: flex; gap: 9px; }
.plan li::before { content: "✓"; color: var(--glow); font-weight: 800; }

/* faq */
.faq { max-width: 780px; margin: 40px auto 0; }
details { border-bottom: 1px solid var(--line); padding: 20px 4px; }
summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--glow); font-size: 22px; line-height: 1; transition: transform .3s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin-top: 10px; }

/* maker */
.maker { display: flex; align-items: center; gap: 20px; padding: 26px 30px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); }
.maker div { flex: 1; }
.maker h3 { font-size: 19px; margin-bottom: 4px; }
.maker p { color: var(--muted); font-size: 15px; }

/* final cta */
.final { text-align: center; padding: 76px 30px; border-radius: 32px; margin: 30px 0 90px;
  background: radial-gradient(600px 300px at 50% 0%, rgba(0,204,255,.22), transparent 70%), var(--card);
  border: 1px solid var(--line); }
.final img { margin: 0 auto 18px; animation: float 6s ease-in-out infinite; }
.final .sub { margin: 0 auto 28px; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 50px 0 40px; color: var(--muted); font-size: 14px; }
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
footer .about p { margin-top: 10px; }
footer .muted { color: var(--soft); font-size: 13px; }
footer nav { display: flex; flex-direction: column; gap: 10px; }
footer h4 { color: #fff; font-size: 14px; margin-bottom: 4px; }
footer nav a:hover { color: #fff; }
footer .base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 40px;
  padding-top: 24px; border-top: 1px solid var(--line); color: var(--soft); font-size: 13px; }

/* legal pages */
.legal { max-width: 760px; padding: 70px 0 90px; }
.legal h1 { font-size: 44px; margin-bottom: 8px; }
.legal h2 { font-size: 22px; margin: 34px 0 8px; }
.legal p, .legal li { color: var(--muted); margin-bottom: 10px; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--glow); }

.notfound { text-align: center; margin: 0 auto; }
.notfound img { margin: 40px auto 24px; }
.notfound .go { margin-top: 26px; }

/* motion */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@keyframes float { 0%,100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes breathe { 0%,100% { opacity: .75; scale: .94; } 50% { opacity: 1; scale: 1.06; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .shot-frame { opacity: 1; transform: none; }
}

/* responsive */
@media (max-width: 960px) {
  .links { gap: 18px; }
  .grid, .safety, .plans, .steps { grid-template-columns: 1fr 1fr; }
  .row, .row.flip, .never { grid-template-columns: 1fr; gap: 26px; }
  .row.flip .copy { order: 0; }
  footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .links { display: none; }
  .links.open { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; gap: 18px;
    background: rgba(7,16,42,.97); padding: 22px 20px; border-bottom: 1px solid var(--line); margin: 0; }
  .links.open a.active::after { display: none; }
  .menu-toggle { display: block; }
  .nav .btn.primary { display: none; }
}
@media (max-width: 640px) {
  .grid, .safety, .plans, .steps, .never ul { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .hero-art { width: 300px; height: 250px; }
  .shot-frame { transform: none; }
  section { padding: 64px 0; }
  .maker { flex-direction: column; text-align: center; }
  footer .cols { grid-template-columns: 1fr; }
}
