:root {
  --navy: #01285F;
  --deep: #011B42;
  --teal: #18B7A8;
  --teal-dark: #0E8C83;
  --glow: #4FE0D2;
  --ink: #0A2A52;
  --sub: #5B6B7D;
  --bg: #F3F7FB;
  --line: #DCE4EE;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal-dark); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 22px; }

/* ---------- Header ---------- */
.top {
  color: #fff;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 78% 38%, rgba(79, 224, 210, 0.30), transparent 62%),
    radial-gradient(700px 420px at 8% 0%, rgba(79, 224, 210, 0.12), transparent 60%),
    linear-gradient(140deg, #031B3F 0%, #04305F 45%, #0A5470 100%);
}
.top .ribbons { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.top .wrap { position: relative; }
.top .wave { position: relative; z-index: 1; display: block; width: 100%; height: 170px; margin-top: -150px; }
.top .hero { position: relative; z-index: 2; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .icon { width: 52px; height: 52px; border-radius: 14px; }
.brand .word { height: 46px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: #D7E6F7; text-decoration: none; font-weight: 700; font-size: 15.5px; padding: 6px 0; }
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: #fff; box-shadow: inset 0 -3px 0 var(--glow); }
.nav-links .pill {
  background: var(--glow); color: var(--deep); padding: 11px 20px; border-radius: 12px; font-weight: 800;
  box-shadow: 0 8px 24px rgba(79, 224, 210, 0.35);
}
.nav-links .pill:hover { color: var(--deep); background: #7FECE1; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 0; align-items: end; padding: 20px 0 0; }
.hero-text { padding-bottom: 140px; position: relative; z-index: 2; }
.kicker { letter-spacing: 2.5px; font-size: 14px; font-weight: 600; color: #BFD3EE; margin: 0 0 14px; }
.hero h1 { white-space: nowrap; font-size: clamp(40px, 5.6vw, 70px); line-height: 1.02; margin: 0 0 24px; letter-spacing: -1.2px; font-weight: 900; }
.hero h1 .accent { color: var(--glow); position: relative; display: inline-block; }
.hero h1 .accent::after {
  content: ""; position: absolute; left: 34%; right: 3%; bottom: -18px; height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 24' preserveAspectRatio='none'%3E%3Cpath d='M10 13 C 70 3, 170 0, 256 17 C 170 8, 80 10, 14 22 C 2 24, 0 15, 10 13 Z' fill='%234FE0D2'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.hero p.lead-white { font-size: 19px; color: #D2E2F4; margin: 0 0 28px; max-width: 470px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800;
  padding: 15px 26px; border-radius: 14px; font-size: 17px;
}
.btn-glow { background: var(--glow); color: var(--deep); box-shadow: 0 10px 30px rgba(79, 224, 210, 0.4); }
.btn-glow:hover { background: #7FECE1; }
.btn-ghost { border: 2px solid rgba(255, 255, 255, 0.65); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.play { width: 0; height: 0; border-left: 12px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 34px; max-width: 480px; }
.trust div { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; font-size: 13px; font-weight: 600; color: #D7E6F7; }
.trust svg { width: 32px; height: 32px; }
.devices {
  width: 128%; max-width: none; margin: 0 -14% 0 -14%; display: block; border-radius: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 14%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 14%);
}

/* ---------- Sections ---------- */
body.home { background: #EAF6F8; }
section { padding: 60px 0; }
.eyebrow { color: var(--teal-dark); font-weight: 800; letter-spacing: 2px; font-size: 13px; text-transform: uppercase; margin: 0 0 8px; }
.eyebrow.center { text-align: center; margin-bottom: 18px; }
h2 { font-size: clamp(28px, 3.6vw, 42px); margin: 0 0 14px; line-height: 1.15; letter-spacing: -0.4px; color: var(--ink); }
.lead { color: var(--sub); font-size: 18px; max-width: 660px; margin: 0 0 24px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.card {
  background: rgba(255, 255, 255, 0.92); border-radius: 20px; padding: 26px 24px; border: 1px solid #D5EAEE;
  box-shadow: 0 14px 40px rgba(6, 48, 95, 0.08);
}
.card svg { width: 46px; height: 46px; margin-bottom: 10px; }
.card h3 { margin: 0 0 6px; font-size: 21px; color: var(--ink); font-weight: 900; }
.card p { margin: 0; color: var(--sub); font-size: 15.5px; }

.features-top { padding: 0 0 30px; margin-top: -30px; position: relative; z-index: 3; }

/* Folders */
.folders-band { padding: 50px 0; }
.folders-section { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 40px; align-items: center; }
.folder-panel { background: #fff; border-radius: 24px; padding: 22px; border: 1px solid #D5EAEE; box-shadow: 0 24px 60px rgba(6, 48, 95, 0.12); }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.panel-head b { font-size: 15px; letter-spacing: 1px; text-transform: uppercase; color: var(--teal-dark); }
.panel-head span { font-size: 13.5px; color: var(--sub); font-weight: 600; }
.folder-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.folder { border-radius: 16px; padding: 14px 12px; display: flex; flex-direction: column; gap: 2px; min-height: 104px; }
.folder i { font-style: normal; font-size: 24px; line-height: 1; margin-bottom: 6px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,0.75); }
.folder b { font-size: 14.5px; color: var(--ink); line-height: 1.25; }
.folder small { font-size: 12.5px; color: var(--sub); }
.f-yellow { background: #FFF4D6; } .f-blue { background: #E3EEFF; } .f-orange { background: #FFE8D9; }
.f-pink { background: #FFE3EC; } .f-green { background: #E2F6E6; } .f-purple { background: #EEE6FF; }
.f-mint { background: #DDF7F2; } .f-rose { background: #FDE4F3; }
.f-navy { background: linear-gradient(135deg, #06305F, #0A5470); }
.f-navy b { color: #fff; } .f-navy small { color: #9FE9E0; }
.month-row { margin-top: 14px; display: flex; justify-content: space-between; align-items: center; background: #F2F8FA; border-radius: 14px; padding: 12px 16px; }
.month-row b { display: block; font-size: 15px; } .month-row small { color: var(--sub); font-size: 13px; }
.month-row span { background: var(--teal); color: #fff; font-weight: 800; font-size: 13.5px; padding: 8px 14px; border-radius: 10px; }

/* More features */
.more-band { padding: 20px 0 50px; }
.grid.more { grid-template-columns: repeat(4, 1fr); }
.mini { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid #D5EAEE; border-radius: 18px; padding: 18px; }
.mini svg { width: 36px; height: 36px; flex: none; }
.mini b { display: block; font-size: 16px; margin-bottom: 2px; }
.mini span { color: var(--sub); font-size: 14.5px; line-height: 1.45; }

.who { background: #fff; border-top: 1px solid #D5EAEE; border-bottom: 1px solid #D5EAEE; }
.who .card { background: #EEF8FA; border: none; box-shadow: none; }
.who .tag { display: inline-block; font-size: 12px; font-weight: 800; color: var(--teal-dark); background: #D6F3EF; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }

/* ---------- Meet Flo ---------- */
.flo-band { background: linear-gradient(180deg, #EAF6F8, #F5FBFC); }
.flo-section { display: grid; grid-template-columns: 0.85fr 1.1fr 1fr; gap: 30px; align-items: center; }
.flo-pic-wrap { position: relative; display: grid; place-items: center; }
.flo-pic-wrap::before { content: ""; position: absolute; width: 92%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(79, 224, 210, 0.45), rgba(79, 224, 210, 0.08) 65%, transparent 70%); }
.flo-pic { position: relative; width: 100%; max-width: 320px; filter: drop-shadow(0 24px 40px rgba(24, 183, 168, 0.35)); }
.flo-title { font-size: clamp(38px, 5vw, 60px); margin-bottom: 0; font-weight: 900; }
.flo-title span:first-child { color: var(--teal); }
.flo-section h3 { margin: 0 0 12px; font-size: 24px; color: var(--ink); }
.checks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.checks li {
  display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #D5EAEE;
  border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: 15px; width: fit-content;
}
.checks li::before {
  content: "\2713"; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; flex: none;
  background: var(--teal); color: #fff; font-weight: 900; font-size: 14px;
}

.chat-card { background: #fff; border-radius: 22px; overflow: hidden; border: 2px solid #BFEDE7; box-shadow: 0 24px 60px rgba(24, 183, 168, 0.22); }
.chat-head { background: linear-gradient(135deg, #031B3F, #06305F 60%, #0A5470); color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.chat-head img { width: 42px; height: 42px; background: #fff; border-radius: 50%; padding: 2px; }
.chat-head b { display: block; font-size: 17px; }
.chat-head small { color: #C9DBF0; font-size: 12.5px; display: flex; align-items: center; gap: 6px; }
.chat-head small i { width: 8px; height: 8px; border-radius: 50%; background: #3BDB7A; display: inline-block; }
.chat-body { padding: 16px; display: grid; gap: 10px; background: #F7FBFC; }
.bubble { padding: 10px 14px; border-radius: 16px; font-size: 14.5px; max-width: 88%; }
.bubble.flo { background: #fff; border: 1px solid #D5EAEE; border-bottom-left-radius: 4px; }
.bubble.me { background: var(--teal); color: #fff; justify-self: end; border-bottom-right-radius: 4px; font-weight: 600; }
.try { margin: 4px 0 -2px; font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--teal-dark); }
.suggest { justify-self: end; background: #fff; border: 1px solid #BFEDE7; border-radius: 12px; padding: 8px 12px; font-size: 14px; font-weight: 600; color: var(--ink); }
.chat-input { display: flex; justify-content: space-between; align-items: center; margin: 0 14px 10px; border: 1px solid #D5EAEE; border-radius: 999px; padding: 8px 8px 8px 16px; color: #8A9AAC; font-size: 14px; background: #fff; }
.chat-input b { width: 34px; height: 34px; border-radius: 50%; background: #06305F; display: grid; place-items: center; font-size: 16px; }
.chat-foot { padding: 0 16px 14px; font-size: 12.5px; color: var(--sub); text-align: center; }

/* ---------- Final band ---------- */
.final-band {
  padding: 0;
  background:
    radial-gradient(700px 300px at 85% 20%, rgba(79, 224, 210, 0.22), transparent 60%),
    linear-gradient(140deg, #06305F 0%, #04305F 50%, #0A5470 100%);
}
.band-wave { display: block; width: 100%; height: 90px; }
.band-inner {
  color: #fff; padding: 10px 0 50px;
}
.band-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.band-head h2 { color: #fff; font-size: clamp(32px, 4.4vw, 50px); font-weight: 900; margin: 0 0 6px; }
.band-head p { color: #C9DBF0; font-size: 17.5px; margin: 0; max-width: 680px; }
.soon-badge { flex: none; background: rgba(79, 224, 210, 0.15); border: 1px solid var(--glow); color: var(--glow); font-weight: 800; padding: 10px 18px; border-radius: 999px; }
.made { color: var(--glow); font-weight: 700; font-size: 15px; text-align: center; margin: 22px 0 0; }

/* Early-access form */
.signup { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 22px; padding: 24px 22px; scroll-margin-top: 20px; }
.signup .fields { display: grid; grid-template-columns: 1fr 1.3fr 1.2fr; gap: 12px; }
.signup .field span { display: block; color: #D7E6F7; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.signup .field em { font-weight: 400; color: #9FB3C8; font-style: normal; }
.signup input[type=text], .signup input[type=email], .signup select {
  width: 100%; font: inherit; font-size: 16px; padding: 13px 14px; border-radius: 12px; height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.25); background: #fff; color: var(--ink);
}
.signup input:focus, .signup select:focus { outline: 3px solid var(--glow); outline-offset: 1px; }
.signup .consent { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 18px; color: #C9DBF0; font-size: 14.5px; line-height: 1.45; }
.signup .consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--teal); flex: none; }
.signup .consent a { color: var(--glow); }
.signup button { border: 0; cursor: pointer; font-family: inherit; }
.hp { position: absolute; left: -9999px; }

/* Thank-you page and shared dark card */
.final {
  background:
    radial-gradient(600px 300px at 80% 0%, rgba(79, 224, 210, 0.18), transparent 60%),
    linear-gradient(135deg, #031B3F, #06305F 60%, #0A5470);
  color: #fff; border-radius: 28px; padding: 48px 28px; text-align: center;
}
.final .big { font-size: clamp(32px, 5vw, 56px); margin: 0 0 12px; letter-spacing: -0.5px; color: #fff; }
.final .big span { color: var(--glow); }
.final p { color: #C9DBF0; font-size: 17px; margin: 0 auto 10px; max-width: 640px; }
.thanks { text-align: center; padding: 40px 28px; margin: 30px 0; }
.thanks img { width: 160px; margin-bottom: 10px; }

footer { background: var(--deep); color: #9FB3C8; padding: 28px 0; font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; }
footer a { color: #D7E6F7; text-decoration: none; margin-right: 16px; }

/* ---------- Policy page ---------- */
.page-head { padding: 22px 0 36px; }
.page-head h1 { font-size: clamp(30px, 4.5vw, 44px); margin: 0 0 6px; }
.page-head p { color: #C9DBF0; margin: 0; }
.policy { background: #fff; border-radius: 20px; padding: 34px; margin: -10px auto 50px; border: 1px solid var(--line); max-width: 860px; }
.policy h2 { font-size: 24px; margin: 32px 0 10px; }
.policy h2:first-child { margin-top: 0; }
.policy p, .policy li { color: #33475B; font-size: 16px; }
.policy table { width: 100%; border-collapse: collapse; margin: 10px 0 6px; font-size: 15px; }
.policy th, .policy td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.policy th { background: var(--bg); color: var(--ink); }
.note { background: #E2F6F4; border-radius: 14px; padding: 14px 16px; color: var(--ink); }
.table-scroll { overflow-x: auto; }

/* ---------- Early-access form ---------- */
.signup { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 22px; padding: 26px 22px; max-width: 760px; margin: 8px auto 0; text-align: left; scroll-margin-top: 20px; }
.signup h3 { color: #fff; font-size: 24px; margin: 0 0 6px; text-align: center; }
.signup > p { text-align: center; margin: 0 auto 18px; }
.signup .fields { display: grid; grid-template-columns: 1fr 1.3fr 1.2fr; gap: 12px; }
.signup .field span { display: block; color: #D7E6F7; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.signup .field em { font-weight: 400; color: #9FB3C8; font-style: normal; }
.signup input[type=text], .signup input[type=email], .signup select {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; padding: 13px 14px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25); background: #fff; color: var(--ink); height: 50px;
}
.signup input:focus, .signup select:focus { outline: 3px solid var(--glow); outline-offset: 1px; }
.signup .consent { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 18px; color: #C9DBF0; font-size: 14.5px; line-height: 1.45; }
.signup .consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--teal); flex: none; }
.signup .consent a { color: var(--glow); }
.signup button { border: 0; cursor: pointer; font-family: inherit; display: flex; margin: 0 auto; }
.hp { position: absolute; left: -9999px; }
.thanks { text-align: center; padding: 40px 28px; }
.thanks img { width: 160px; margin-bottom: 10px; }

@media (max-width: 980px) {
  .grid.four, .grid.more { grid-template-columns: repeat(2, 1fr); }
  .flo-section { grid-template-columns: 1fr 1fr; }
  .chat-card { grid-column: 1 / -1; max-width: 460px; justify-self: center; width: 100%; }
}
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .grid, .grid.four, .grid.more { grid-template-columns: 1fr; }
  .folders-section, .flo-section { grid-template-columns: 1fr; }
  .flo-pic { max-width: 220px; }
  .nav-links a.hide-sm { display: none; }
  .nav-links { gap: 14px; }
  .brand .word { height: 34px; }
  .brand .icon { width: 40px; height: 40px; }
  .trust { gap: 8px; }
  .devices { width: 100%; margin-right: 0; }
  .hero-text { padding-bottom: 0; }
  .hero h1 { white-space: normal; }
  .devices { margin: 10px 0 0; }
  .top .wave { margin-top: -90px; height: 120px; }
  .features-top { margin-top: -40px; }
  .band-head { flex-direction: column; align-items: flex-start; }
  .signup .fields { grid-template-columns: 1fr; }
  .final { padding: 26px; }
  .policy { padding: 22px; margin: -10px 14px 40px; }
}
