/* Lil Floaty Cam: a calm pond with lily pads. Shared by every page. */

:root {
  --ink: #0f3a2b;
  --ink-soft: #3f6457;
  --leaf: #1f8a4c;
  --leaf-deep: #156536;
  --lotus: #ffcc3d;
  --lotus-deep: #f5a524;
  --water-top: #eef8f3;
  --water-bottom: #cde9de;
  --glass: rgba(255, 255, 255, 0.58);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --glass-line: rgba(255, 255, 255, 0.85);
  --shadow: 0 18px 50px rgba(18, 82, 60, 0.12), 0 2px 6px rgba(18, 82, 60, 0.06);
  --radius: 28px;
  --container: min(1080px, 100% - 40px);   /* Every block lines up to this width */
  --measure: 760px;                        /* Comfortable reading width for long text */
  --font: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font: 17px/1.55 var(--font);
  background: linear-gradient(180deg, var(--water-top), var(--water-bottom)) fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.dragging, body.dragging * { cursor: grabbing !important; user-select: none !important; }
body.over-pad { cursor: grab; }

a { color: var(--leaf-deep); text-underline-offset: 3px; }
a:hover { color: var(--leaf); }
img { max-width: 100%; display: block; -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }

:focus-visible { outline: 3px solid var(--lotus-deep); outline-offset: 3px; border-radius: 8px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px;
}
.skip:focus { top: 12px; }

/* ---------- Water layers ---------- */

.water {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}
#water-pond { z-index: 0; }
#water-surface { z-index: 60; }

#pads { position: absolute; top: 0; left: 0; width: 100%; z-index: 1; pointer-events: none; overflow: hidden; }
.pad {
  position: absolute; left: 0; top: 0;
  will-change: transform;
}
.pad img { width: 100%; height: 100%; display: block; }

.content { position: relative; z-index: 2; }

/* ---------- Nav ---------- */

.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  z-index: 50;
  display: flex; align-items: center; gap: 6px;
  width: var(--container);
  padding: 8px 8px 8px 14px;
  background: var(--glass-strong);
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 17px; color: var(--ink); text-decoration: none;
  margin-right: auto;
}
.brand img { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 2px; }
.nav-links a {
  color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 8px 12px; border-radius: 999px;
}
.nav-links a:hover { background: rgba(31, 138, 76, 0.1); color: var(--ink); }
.nav .btn { padding: 10px 18px; font-size: 15px; }
@media (max-width: 720px) { .nav-links { display: none; } }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font: 700 18px/1.1 var(--font);
  text-decoration: none;
  border: 0; cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #27a05a, var(--leaf));
  box-shadow: 0 10px 24px rgba(31, 138, 76, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(31, 138, 76, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  color: var(--ink);
  background: var(--glass-strong);
  border: 1px solid var(--glass-line);
  box-shadow: 0 6px 18px rgba(18, 82, 60, 0.08);
}
.btn-ghost:hover { color: var(--ink); transform: translateY(-2px); }
@media (max-width: 420px) { .cta-row .btn { width: 100%; padding: 15px 20px; font-size: 17px; } .hero-card { padding-left: 18px; padding-right: 18px; } }
.price { font-weight: 600; opacity: 0.85; padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, 0.45); }

/* ---------- Pages (full-height sections) ---------- */

.page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 110px 20px 70px;
}
.wrap { width: min(1080px, 100%); }
.page > .panel, .page > .video { width: min(1080px, 100%); }
.panel {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
  backdrop-filter: blur(14px) saturate(1.25);
}

.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--leaf-deep);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(31, 138, 76, 0.22);
  box-shadow: 0 4px 12px rgba(18, 82, 60, 0.08);
  padding: 8px 22px 8px calc(22px + 0.14em); border-radius: 999px;
  margin: 0 0 16px;
}
h1, h2, h3, .tagline, summary { text-wrap: balance; }
p, li { text-wrap: pretty; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; }
h3 { font-size: 22px; font-weight: 750; letter-spacing: -0.01em; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.section-head p { font-size: 20px; color: var(--ink-soft); margin: 16px 0 0; }
.section-head .eyebrow { font-size: 13px; color: var(--leaf-deep); margin: 0 0 22px; }

/* ---------- Hero ---------- */

.hero { padding-top: 104px; gap: 34px; }
.hero-card { text-align: center; padding: 34px clamp(20px, 5vw, 56px) 30px; }
.hero .lede { text-align: left; max-width: 700px; }
.hero-icon {
  width: 112px; height: 112px; margin: 0 auto 14px;
  cursor: pointer;
  animation: bob 5s ease-in-out infinite;
  filter: drop-shadow(0 12px 16px rgba(12, 70, 48, 0.25));
  border: 0; background: none; padding: 0;
  touch-action: none;
  cursor: grab;
}
.hero-icon-spot { margin: 0 auto 14px; }
/* Once dragged out of the card, the logo floats over the window like the app's camera */
.hero-icon.floating {
  position: fixed; left: 0; top: 0; margin: 0; z-index: 55;
  animation: none;
  will-change: transform;
}
.hero-icon img { width: 100%; height: 100%; }
.hero h1 { font-size: clamp(46px, 8vw, 88px); font-weight: 850; letter-spacing: -0.035em; }
.tagline { font-size: clamp(22px, 3vw, 30px); font-weight: 700; margin: 12px 0 0; color: var(--leaf-deep); }
.lede { font-size: 19px; color: var(--ink-soft); max-width: 620px; margin: 16px auto 26px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.fine { font-size: 14px; color: var(--ink-soft); margin: 18px 0 0; }
.fine span + span::before { content: "·"; margin: 0 8px; opacity: 0.6; }

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}

/* ---------- Video ---------- */

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 6px solid var(--glass-strong);
  background: #0f3a2b;
}
.video button, .video iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; margin: 0;
}
.video button { cursor: pointer; background: none; }
.video button img { width: 100%; height: 100%; object-fit: cover; }
.video .play {
  position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; transform: translate(-50%, -50%);
  border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}
.video .play svg { width: 34px; height: 34px; margin-left: 6px; fill: var(--leaf); }
.video button:hover .play { transform: translate(-50%, -50%) scale(1.08); }

/* ---------- Steps ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { padding: 28px 24px; }
.step-num {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 850; font-size: 20px; color: var(--ink);
  background: radial-gradient(circle at 35% 30%, #ffe27a, var(--lotus) 60%, var(--lotus-deep));
  margin-bottom: 18px;
  box-shadow: 0 6px 14px rgba(245, 165, 36, 0.35);
}
.step p { color: var(--ink-soft); margin: 10px 0 0; }
@media (max-width: 1060px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Features ---------- */

.feature {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(20px, 4vw, 48px); align-items: center;
  padding: clamp(22px, 3vw, 36px);
}
.feature + .feature { margin-top: 22px; }
.feature.flip > :first-child { order: 2; }
.feature figure { margin: 0; }
.feature img { border-radius: 18px; box-shadow: 0 10px 30px rgba(18, 82, 60, 0.18); width: 100%; height: auto; }
.feature p { color: var(--ink-soft); margin: 12px 0 0; }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; }
.ticks li { position: relative; padding-left: 30px; margin: 9px 0; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature.flip > :first-child { order: 0; }
}


/* ---------- Use cases + story ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; list-style: none; padding: 0; margin: 0 0 36px; }
.chips li {
  padding: 10px 18px; border-radius: 999px; font-weight: 700;
  background: var(--glass-strong); border: 1px solid var(--glass-line);
  box-shadow: 0 4px 12px rgba(18, 82, 60, 0.06);
}
.story { padding: clamp(26px, 4vw, 44px); max-width: calc(var(--measure) + 88px); margin: 0 auto; }
.story > * { max-width: var(--measure); margin-left: auto; margin-right: auto; }
.story p { font-size: 19px; margin-top: 0; margin-bottom: 14px; }
.story .sig { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-weight: 700; }
.story .sig small { display: block; font-weight: 500; color: var(--ink-soft); }
.story .sig img { width: 48px; height: 48px; }

/* ---------- Private + price ---------- */

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.duo .panel { padding: clamp(26px, 3.5vw, 40px); }
.duo p { color: var(--ink-soft); }
.big-price { font-size: 64px; font-weight: 850; letter-spacing: -0.03em; line-height: 1; margin: 14px 0 6px; }
.big-price small { font-size: 20px; font-weight: 700; color: var(--ink-soft); letter-spacing: 0; }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */

.faq { padding: 10px clamp(20px, 3vw, 36px); }
details { border-bottom: 1px solid rgba(15, 58, 43, 0.12); }
details:last-of-type { border-bottom: 0; }
summary {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 0; font-weight: 750; font-size: 19px;
  cursor: pointer; list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; margin-left: auto; flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  background-color: rgba(31, 138, 76, 0.12);
  background-image: linear-gradient(var(--leaf-deep), var(--leaf-deep)), linear-gradient(var(--leaf-deep), var(--leaf-deep));
  background-size: 12px 2px, 2px 12px;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.2s ease;
}
details[open] > summary::after { transform: rotate(45deg); }
details > div { padding: 0 44px 20px 0; color: var(--ink-soft); }
details > div p { margin: 0 0 10px; }
.more { text-align: center; margin-top: 26px; font-weight: 700; }

/* ---------- Footer ---------- */

.footer { position: relative; z-index: 2; padding: 0 20px 28px; }
.footer-inner {
  width: min(1080px, 100%); margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px;
  padding: 30px clamp(22px, 3vw, 36px);
}
.footer h3 { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 6px 0; }
.footer a { text-decoration: none; font-weight: 600; }
.footer a:hover { text-decoration: underline; }
.footer .brand { margin-bottom: 8px; }
.footer p { margin: 0; color: var(--ink-soft); font-size: 15px; }
@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr 1fr; } .footer-inner > :first-child { grid-column: 1 / -1; } }

/* ---------- Document pages (FAQ, privacy, changelog) ---------- */

.doc { padding: 110px 20px 40px; }
.doc .panel { width: min(1080px, 100%); margin: 0 auto; padding: clamp(26px, 4vw, 48px); }
.doc article.panel > * { max-width: var(--measure); margin-left: auto; margin-right: auto; }
.doc h1 { font-size: clamp(36px, 6vw, 54px); font-weight: 850; letter-spacing: -0.03em; }
.doc .lede { margin: 12px 0 8px; text-align: left; max-width: none; }
.doc section { padding: 24px 0 8px; border-top: 1px solid rgba(15, 58, 43, 0.12); margin-top: 22px; }
.doc section h2 { font-size: 26px; margin-bottom: 10px; }
.doc section h2 span { font-size: 15px; font-weight: 600; color: var(--ink-soft); margin-left: 10px; letter-spacing: 0; }
.doc p { margin: 0 0 12px; }
.doc ul { margin: 0 0 12px; padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc details > div { padding-right: 0; }
.doc .eyebrow { margin: 0 0 14px; }
.doc .doc-cta { justify-content: flex-start; margin: 22px auto 6px; }
.doc figure { margin: 26px auto 4px; }
.doc figure img { border-radius: 18px; box-shadow: 0 10px 30px rgba(18, 82, 60, 0.18); width: 100%; height: auto; }
.doc ol { margin: 0 0 12px; padding-left: 24px; }
.doc .fine { font-size: 14px; color: var(--ink-soft); }
.table-wrap { overflow-x: auto; margin: 6px 0 10px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 520px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 11px 12px; border-bottom: 1px solid rgba(15, 58, 43, 0.12); }
.doc thead th { font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); }
.doc tbody th { font-weight: 700; width: 26%; }
.doc td:nth-child(2) { background: rgba(31, 138, 76, 0.07); }

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-icon { animation: none; }
  .btn, .video .play, summary::after { transition: none; }
}

/* Headings sit straight on the water: a soft halo keeps them readable when a lily pad drifts behind */
.section-head h2, .section-head p:not(.eyebrow), .more {
  text-shadow: 0 0 14px rgba(238, 248, 243, 0.95), 0 0 4px rgba(238, 248, 243, 0.9);
}
