/* Wierdr landing. Colors after the app's dark theme (Atom One Dark) and the icon's ivory. */
:root {
  --bg: #0b0c0f;
  --bg-2: #111318;
  --card: rgba(255, 255, 255, 0.035);
  --card-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #eeede9;
  --muted: #a1a5ad;
  --dim: #6f747d;
  --ivory: #f4f1e8;
  --red: #ef6f78;
  --green: #9fd07f;
  --yellow: #ebc57c;
  --blue: #6cb6f5;
  --purple: #c387f0;
  --radius: 22px;
  --wrap: 1180px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
main { overflow-x: hidden; overflow-x: clip; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; line-height: 1.08; font-weight: 700; }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; line-height: 1.3; font-weight: 650; }
p { margin: 0; }
code, .mono { font-family: var(--mono); }
::selection { background: rgba(108, 182, 245, 0.35); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ivory); color: #111; padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; margin-inline: auto; }
.grad {
  background: linear-gradient(100deg, #f7e7c6 0%, #f2a6ab 45%, #b58cf3 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Dots */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot-red { background: var(--red); box-shadow: 0 0 12px rgba(239, 111, 120, 0.7); }
.dot-green { background: var(--green); box-shadow: 0 0 12px rgba(159, 208, 127, 0.6); }
.dot-yellow { background: var(--yellow); box-shadow: 0 0 12px rgba(235, 197, 124, 0.6); }
.pulse { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.55; transform: scale(0.8); } }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 12, 15, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.12rem; letter-spacing: -0.02em; }
.brand img { border-radius: 8px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 0.94rem; }
.nav-links a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 16px;
  font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: transform 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn-sm { min-height: 38px; padding: 0 14px; border-radius: 12px; font-size: 0.9rem; gap: 8px; }
.btn-ghost { border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.22); transform: translateY(-1px); }
.btn-store {
  background: var(--ivory); color: #15161a; padding: 0 22px 0 16px; cursor: default;
  box-shadow: 0 10px 40px -10px rgba(244, 241, 232, 0.35);
}
.btn-stack { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.btn-stack small { font-size: 0.7rem; font-weight: 500; opacity: 0.7; letter-spacing: 0.01em; }
.btn-stack strong { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.01em; }
.i { width: 18px; height: 18px; flex: none; }
.i-lg { width: 26px; height: 26px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.cta.center { justify-content: center; }

/* Pills and kickers */
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04);
  font-size: 0.88rem; color: var(--muted); font-weight: 500;
}
.kicker {
  font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 16px;
}
.k-blue { color: var(--blue); } .k-green { color: var(--green); } .k-purple { color: var(--purple); } .k-yellow { color: var(--yellow); }
.sub { color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.6; margin-top: 20px; }

/* Glows */
.glow { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: 0; }
.glow-a { width: 620px; height: 620px; top: -220px; right: -120px; background: radial-gradient(circle, rgba(124, 106, 245, 0.42), transparent 65%); }
.glow-b { width: 520px; height: 520px; top: 260px; left: -260px; background: radial-gradient(circle, rgba(239, 111, 120, 0.22), transparent 65%); }
.glow-c { width: 900px; height: 600px; left: 50%; top: 10%; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(181, 140, 243, 0.25), transparent 65%); }

/* Hero */
.hero { position: relative; padding: clamp(40px, 7vw, 96px) 0 clamp(60px, 8vw, 120px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.8rem, 6.4vw, 5.4rem); letter-spacing: -0.04em; line-height: 1.0; margin: 26px 0 0; }
.lead { color: var(--muted); font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.6; margin: 26px 0 34px; max-width: 34em; }
.works { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 36px; color: var(--dim); font-size: 0.9rem; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 500; }
.logo svg { width: 22px; height: 22px; border-radius: 5px; }

.hero-visual { position: relative; height: clamp(560px, 52vw, 680px); }
.phone-front { position: absolute; width: clamp(250px, 24vw, 310px); left: 8%; top: 0; z-index: 2; }
.phone-back { position: absolute; width: clamp(220px, 21vw, 272px); right: 2%; top: 9%; z-index: 1; transform: rotate(7deg); opacity: 0.9; }
.phone-back .frame { filter: saturate(1.05); }

/* Devices: the screenshots in a frame, sized by width (container units). */
.device { container-type: inline-size; }
.frame {
  position: relative; padding: 3.2cqw; border-radius: 15.5cqw;
  background: linear-gradient(150deg, #3a3d44, #1a1c20 40%, #2a2c31);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) inset, 0 0 0 1px rgba(0, 0, 0, 0.6), 0 50px 100px -30px rgba(0, 0, 0, 0.85), 0 30px 60px -40px rgba(124, 106, 245, 0.35);
}
.screen { position: relative; overflow: hidden; border-radius: 12.5cqw; background: #000; }
.screen img { width: 100%; }
.ipad .frame { padding: 1.6cqw; border-radius: 3.4cqw; }
.ipad .screen { border-radius: 2cqw; }

/* Dynamic Island on the hero phone */
.island {
  position: absolute; left: 50%; top: 1.7cqw; transform: translateX(-50%);
  width: 34cqw; height: 10.5cqw; border-radius: 6cqw; background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05);
  animation: island 9s cubic-bezier(0.32, 0.72, 0, 1) infinite 1.2s;
  overflow: hidden; z-index: 3;
}
.island-compact, .island-full { position: absolute; inset: 0; display: flex; align-items: center; }
.island-compact { justify-content: space-between; padding: 0 3.2cqw; animation: compact 9s infinite 1.2s; }
.island-compact img { width: 6.4cqw; height: 6.4cqw; border-radius: 1.6cqw; }
.island-compact .dot { width: 3cqw; height: 3cqw; }
.island-full { gap: 3.4cqw; padding: 0 4.6cqw; opacity: 0; animation: full 9s infinite 1.2s; }
.island-full img { width: 11cqw; height: 11cqw; border-radius: 2.6cqw; flex: none; }
.island-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.island-text small { color: #9a9ea6; font-size: 3.6cqw; white-space: nowrap; }
.island-text strong { color: #fff; font-size: 4.4cqw; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.island-badge { margin-left: auto; display: inline-flex; align-items: center; gap: 1.6cqw; color: var(--red); font-size: 3.4cqw; font-weight: 600; white-space: nowrap; }
.island-badge .dot { width: 2.4cqw; height: 2.4cqw; }
@keyframes island {
  0%, 8% { width: 34cqw; height: 10.5cqw; border-radius: 6cqw; }
  14%, 62% { width: 90cqw; height: 21cqw; border-radius: 9cqw; }
  70%, 100% { width: 34cqw; height: 10.5cqw; border-radius: 6cqw; }
}
@keyframes full { 0%, 12% { opacity: 0; } 18%, 58% { opacity: 1; } 64%, 100% { opacity: 0; } }
@keyframes compact { 0%, 8% { opacity: 1; } 11%, 66% { opacity: 0; } 72%, 100% { opacity: 1; } }

/* Floating status chips */
.float {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 16px; font-size: 0.88rem; white-space: nowrap;
  background: rgba(30, 32, 38, 0.72); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
  animation: bob 6s ease-in-out infinite;
}
.float b { font-weight: 650; }
.float span:last-child { color: var(--muted); }
.float code { color: var(--text); font-size: 0.85em; }
.float-1 { left: -6%; top: 46%; }
.float-2 { right: 0; bottom: 8%; animation-delay: -3s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Sections */
.section { position: relative; padding: clamp(72px, 10vw, 140px) 0; }
.problem { background: radial-gradient(70% 45% at 50% 0%, rgba(124, 106, 245, 0.07), transparent 75%); }
.status-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.status-card {
  position: relative; padding: 24px 24px 22px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); overflow: hidden;
}
.status-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; }
.s-red::before { background: linear-gradient(90deg, var(--red), transparent); }
.s-green::before { background: linear-gradient(90deg, var(--green), transparent); }
.s-yellow::before { background: linear-gradient(90deg, var(--yellow), transparent); }
.s-red { background: radial-gradient(120% 120% at 0 0, rgba(239, 111, 120, 0.1), transparent 55%), var(--card); }
.status-card header { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.95rem; }
.s-red header { color: var(--red); } .s-green header { color: var(--green); } .s-yellow header { color: var(--yellow); }
.status-card p { margin: 16px 0 14px; font-size: 1rem; color: var(--text); }
.status-card .hl { color: var(--red); }
.status-card footer { color: var(--dim); font-size: 0.86rem; }
.caret { display: inline-block; width: 0.55em; height: 1.1em; margin-left: 4px; vertical-align: text-bottom; background: var(--yellow); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.feature + .feature { margin-top: clamp(100px, 13vw, 180px); }
.feature.flip .feature-copy { order: 2; }
.feature-copy { max-width: 500px; }
.feature.flip .feature-copy { justify-self: end; }
.feature-visual { position: relative; display: flex; justify-content: center; }
.feature-visual .phone { width: clamp(260px, 27vw, 340px); position: relative; z-index: 1; }
.halo { position: absolute; width: 130%; aspect-ratio: 1; top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 50%; filter: blur(60px); z-index: 0; }
.halo-blue { background: radial-gradient(circle, rgba(108, 182, 245, 0.26), transparent 60%); }
.halo-green { background: radial-gradient(circle, rgba(159, 208, 127, 0.2), transparent 60%); }
.halo-purple { background: radial-gradient(circle, rgba(146, 120, 245, 0.32), transparent 60%); }
.checks { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 34px; color: var(--text); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.2em; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.07) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23f4f1e8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.ipad-section { background: radial-gradient(80% 50% at 50% 70%, rgba(235, 197, 124, 0.08), transparent 70%); }
.ipad-section .ipad { width: min(1100px, 100%); margin: 60px auto 0; }
.keys { display: flex; justify-content: center; gap: 10px; margin-top: 30px; flex-wrap: wrap; }
kbd {
  font: 600 0.95rem var(--sans); color: var(--text);
  min-width: 56px; padding: 10px 14px; border-radius: 12px; text-align: center;
  background: linear-gradient(180deg, #2a2d33, #1c1e23); border: 1px solid var(--line-2);
  box-shadow: 0 3px 0 #0c0d10, 0 8px 20px -8px rgba(0, 0, 0, 0.8);
}

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.card {
  padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}
.card:hover { border-color: var(--line-2); background: var(--card-2); transform: translateY(-2px); }
.card h3 { margin-top: 20px; }
.card p { color: var(--muted); margin-top: 8px; font-size: 0.98rem; }
.card-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; }
.card-icon svg { width: 22px; height: 22px; }
.c-yellow { color: var(--yellow); background: rgba(235, 197, 124, 0.12); }
.c-blue { color: var(--blue); background: rgba(108, 182, 245, 0.12); }
.c-purple { color: var(--purple); background: rgba(195, 135, 240, 0.12); }
.c-green { color: var(--green); background: rgba(159, 208, 127, 0.12); }
.c-red { color: var(--red); background: rgba(239, 111, 120, 0.12); }
.c-ivory { color: var(--ivory); background: rgba(244, 241, 232, 0.1); }

.privacy-box {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center;
  padding: clamp(32px, 5vw, 64px); border-radius: 32px; border: 1px solid var(--line);
  background: radial-gradient(90% 120% at 0% 0%, rgba(159, 208, 127, 0.1), transparent 55%), linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
}
.lock { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: var(--green); background: rgba(159, 208, 127, 0.12); margin-bottom: 24px; }
.lock svg { width: 26px; height: 26px; }
.privacy-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.privacy-list li { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.privacy-list li:last-child { border-bottom: 0; }
.privacy-list b { font-weight: 600; }
.privacy-list span { color: var(--muted); font-size: 0.97rem; }

.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; counter-reset: none; }
.step { position: relative; padding: 30px 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.step-n {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; margin-bottom: 22px;
  font: 700 1.05rem var(--mono); color: #15161a; background: var(--ivory);
}
.step p { color: var(--muted); margin-top: 8px; font-size: 0.98rem; }
.step a { color: var(--text); text-decoration-color: var(--dim); text-underline-offset: 3px; }
.step a:hover { text-decoration-color: var(--text); }

.final { overflow: hidden; padding-bottom: clamp(90px, 12vw, 160px); }
.final .wrap { position: relative; z-index: 1; }
.final-icon { width: 112px; height: 112px; margin: 0 auto 36px; border-radius: 26px; box-shadow: 0 30px 80px -20px rgba(181, 140, 243, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.1); }
.big { font-size: clamp(2.4rem, 5.8vw, 4.6rem); letter-spacing: -0.04em; line-height: 1.04; }
.final .cta { margin-top: 36px; }

.footer { border-top: 1px solid var(--line); padding: 34px 0 calc(34px + env(safe-area-inset-bottom)); color: var(--dim); font-size: 0.9rem; }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer .brand { font-size: 1rem; color: var(--text); }
.footer .brand img { border-radius: 6px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }
.footer-links { margin-left: auto; display: flex; gap: 20px; }

/* Reveal on scroll (only with JS and motion allowed) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* Layout: tablets */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .lead { margin-inline: auto; }
  .cta, .works { justify-content: center; }
  .hero-visual { width: min(560px, 100%); margin: 30px auto 0; height: clamp(520px, 92vw, 640px); }
  .phone-front { left: 6%; width: clamp(240px, 46vw, 300px); }
  .phone-back { width: clamp(210px, 40vw, 262px); }
  .float-1 { left: -2%; }
  .feature, .feature.flip { grid-template-columns: 1fr; text-align: center; }
  .feature.flip .feature-copy { order: 0; justify-self: auto; }
  .feature-copy { margin: 0 auto; }
  .checks { width: fit-content; max-width: 100%; margin-inline: auto; text-align: left; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .privacy-box { grid-template-columns: 1fr; }
}

/* Layout: phones */
@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap { width: min(var(--wrap), 100% - 36px); }
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
  .hero h1 { font-size: clamp(2.5rem, 11.5vw, 3.4rem); }
  .cta { flex-direction: column; align-items: stretch; width: 100%; max-width: 340px; margin-inline: auto; }
  .cta .btn { justify-content: center; }
  .hero-visual { height: 132vw; max-height: 560px; }
  .phone-front { width: 58vw; max-width: 260px; left: 4%; }
  .phone-back { width: 48vw; max-width: 220px; right: 0; top: 10%; }
  .float { font-size: 0.8rem; padding: 10px 12px; gap: 8px; }
  .float-1 { left: 0; top: auto; bottom: 22%; }
  .float-2 { right: 0; bottom: 2%; }
  .status-row, .grid, .steps { grid-template-columns: 1fr; }
  .works { gap: 10px 16px; }
  .works > span:first-child { flex-basis: 100%; text-align: center; }
  .card { display: grid; grid-template-columns: 46px 1fr; column-gap: 16px; padding: 22px 20px; }
  .card-icon { grid-row: span 2; }
  .card h3 { margin-top: 2px; }
  .card p { margin-top: 4px; }
  .step { padding: 24px 22px; }
  .status-row { gap: 14px; }
  .ipad-section .ipad { margin-top: 44px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-links { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .js .reveal { opacity: 1; transform: none; }
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.notfound { min-height: 100vh; display: grid; place-items: center; }
.notfound .cta { margin-top: 36px; }
