/* FrameBee website. Palette matches the app icon (docs/branding). */
:root {
  --navy: #05244D;
  --navy-deep: #031a39;
  --white: #F8FAFF;
  --teal: #20E6C6;
  --blue: #32B8F0;
  --gold: #FFBE16;

  --bg: #F8FAFF;
  --surface: #ffffff;
  --text: #0b1b33;
  --muted: #4f5d73;
  --border: #dde3ee;
  --link: #0b6fa8;
  --focus: #32B8F0;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #020f22;
    --surface: #0a1f3d;
    --text: #eef3fb;
    --muted: #a7b3c7;
    --border: #1b3358;
    --link: #6fd0f7;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}
a { color: var(--link); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; display: block; }

.skip-link { position: absolute; left: 16px; top: -64px; z-index: 10; background: var(--white); color: var(--navy); padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }

/* Header */
.site-header { background: var(--navy); color: var(--white); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 0 0 1px rgba(248, 250, 255, .28); }
.site-nav { display: flex; gap: 8px; font-size: 15px; margin-right: -8px; }
/* Padding keeps each link a comfortable 44px touch target. */
.site-nav a { color: #cfdcf0; text-decoration: none; padding: 10px 8px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }

/* Hero */
.hero { background: var(--navy); color: var(--white); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 32px; padding-top: 48px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(36px, 6vw, 58px); line-height: 1.05; letter-spacing: -0.025em; margin: 0 0 18px; }
.hero h1 .accent { color: var(--gold); }
.hero p.lede { font-size: clamp(18px, 2.2vw, 21px); color: #d6e2f5; margin: 0 0 28px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.store-soon {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--white); color: var(--navy);
  border-radius: 12px; padding: 12px 18px; font-weight: 650; font-size: 16px;
}
.store-soon svg { width: 20px; height: 20px; }
.hero .text-link { color: var(--teal); font-weight: 600; text-decoration: none; padding: 8px 0; }
.hero .text-link:hover { text-decoration: underline; }
.fine { font-size: 14px; color: #a9bbd6; margin-top: 18px; }

/* Zoom frames visual, drawn like the app icon */
.frames { position: relative; width: min(100%, 380px); aspect-ratio: 590 / 688; margin: 0 auto; }
.frames span { position: absolute; border: 3px solid; inset: 0; margin: auto; }
.frames .f4 { width: 100%;   height: 100%;   border-color: var(--gold); }
.frames .f3 { width: 66.1%;  height: 66.1%;  border-color: var(--blue); }
.frames .f2 { width: 37.3%;  height: 37.3%;  border-color: var(--teal); }
.frames .f1 { width: 21.7%;  height: 21.7%;  border-color: var(--white); }
.frames img.bee { position: absolute; inset: 0; margin: auto; width: 17%; height: auto; }
/* Zooming in: the view starts wide on the gold frame, each tighter frame closes in from the one
   outside it, and the bee grows as the zoom lands on it. Width and height are animated (not scale)
   so the frame lines stay 3 px thick. */
@media (prefers-reduced-motion: no-preference) {
  .frames .f4 { animation: wide-view .6s ease-out both; }
  .frames .f3 { animation: close-to-f3 .8s .25s cubic-bezier(.3,.6,.2,1) both; }
  .frames .f2 { animation: close-to-f2 .8s .5s cubic-bezier(.3,.6,.2,1) both; }
  .frames .f1 { animation: close-to-f1 .8s .75s cubic-bezier(.3,.6,.2,1) both; }
  .frames img.bee { animation: magnify .8s 1.1s cubic-bezier(.2,.8,.3,1.15) both; }
}
@keyframes wide-view { from { transform: scale(1.06); opacity: 0; } }
@keyframes close-to-f3 { from { width: 100%; height: 100%; opacity: 0; } 25% { opacity: 1; } }
@keyframes close-to-f2 { from { width: 66.1%; height: 66.1%; opacity: 0; } 25% { opacity: 1; } }
@keyframes close-to-f1 { from { width: 37.3%; height: 37.3%; opacity: 0; } 25% { opacity: 1; } }
@keyframes magnify { from { transform: scale(.3); opacity: 0; } 50% { opacity: 1; } }

/* Sections */
section { padding: 64px 0; }
section.flush { padding-top: 0; }
section h2 { font-size: clamp(26px, 3.6vw, 34px); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 12px; }
section .sub { color: var(--muted); margin: 0 0 32px; max-width: 40em; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px; counter-increment: step; }
.steps li::before {
  content: counter(step); display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%; margin-bottom: 12px;
  background: var(--navy); color: var(--gold); font-weight: 700;
}
@media (prefers-color-scheme: dark) { .steps li::before { background: var(--gold); color: var(--navy); } }
.steps h3, .features h3 { margin: 0 0 6px; font-size: 19px; }
.steps p, .features p { margin: 0; color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; border-top: 4px solid var(--c, var(--gold)); }
.feature.teal { --c: var(--teal); }
.feature.blue { --c: var(--blue); }
.feature ul { margin: 10px 0 0; padding-left: 20px; color: var(--muted); }
.feature li + li { margin-top: 4px; }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.plan.pro { background: var(--navy); color: var(--white); border-color: var(--navy); }
.plan h3 { margin: 0; font-size: 21px; }
.plan .price { margin: 4px 0 14px; color: var(--muted); }
.plan.pro .price { color: #cfdcf0; }
.plan.pro .price strong { color: var(--gold); }
.plan ul { margin: 0; padding-left: 20px; }
.plan li + li { margin-top: 6px; }
.note { font-size: 14px; color: var(--muted); margin-top: 16px; }

.privacy-band { background: var(--navy); color: var(--white); text-align: center; }
.privacy-band h2 { color: var(--white); }
.privacy-band p { color: #d6e2f5; max-width: 38em; margin: 0 auto 18px; }
.privacy-band a { color: var(--teal); font-weight: 600; display: inline-block; padding: 10px 0; }

/* Document pages (privacy, support) */
.doc { padding: 48px 0 72px; }
.doc h1 { font-size: clamp(30px, 5vw, 40px); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 6px; }
.doc .meta { color: var(--muted); margin: 0 0 28px; }
.doc h2 { font-size: 22px; margin: 36px 0 8px; letter-spacing: -0.01em; }
.doc p, .doc li { color: var(--text); }
.doc .summary { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--teal); border-radius: 12px; padding: 16px 18px; }
.doc ul { padding-left: 22px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.site-footer a { color: var(--muted); padding: 10px 0; }
.site-footer a:hover { color: var(--text); }

@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 32px; padding-bottom: 48px; }
  .hero .visual { order: -1; }
  .frames { width: min(46%, 170px); }
  .steps, .features, .plans { grid-template-columns: 1fr; }
  section { padding: 48px 0; }
  .site-nav { gap: 4px; }
}
