/* Landing page styles. Mobile-first: base rules are for phones, @media blocks add desktop layout. */
:root {
  --bg: #F7F3EC;
  --bg-alt: #EFE9FF;
  --card: #FFFFFF;
  --ink: #1C1A2E;
  --muted: #5C5872;
  --line: #E4DDF0;
  --accent: #5B47E0;
  --accent-ink: #FFFFFF;
  --accent-soft: #E7E2FF;
  --warm: #FF8A5B;
  --hl: #BBA9FF;
  --ok: #1E9E6A;
  --err: #C2362B;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(40, 28, 110, .10), 0 2px 6px rgba(40, 28, 110, .06);
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 8.5vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 5.5vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.sub { color: var(--muted); margin-top: -.4em; }
.fine { font-size: .85rem; color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 700; color: var(--accent); margin-bottom: .8em; }
:focus-visible { outline: 3px solid var(--warm); outline-offset: 3px; border-radius: 6px; }

/* placeholder banner */
.placeholder-banner { background: repeating-linear-gradient(45deg, #E7E2FF, #E7E2FF 12px, #F3F0FF 12px, #F3F0FF 24px);
  color: #5a4300; text-align: center; font-size: .85rem; padding: 8px 14px; border-bottom: 1px solid #E8C860; }
.placeholder-banner code { background: rgba(255,255,255,.7); padding: 1px 5px; border-radius: 4px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 2px solid var(--accent); background: var(--accent); color: var(--accent-ink);
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(91, 71, 224, .3); }
.btn:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); box-shadow: none; }
.btn-small { min-height: 42px; padding: 0 18px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(247, 243, 236, .88); backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid rgba(0,0,0,.05); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--ink); text-decoration: none; margin: 0; }
.logo-img { height: 46px; width: auto; display: block; }
@media (min-width: 900px) { .nav .logo-img { height: 54px; } }
.footer .logo-img { height: 54px; }
.logo-mark { width: 32px; height: 32px; border-radius: 10px; background: var(--accent); display: grid; place-items: center; }
.logo-mark svg { width: 20px; height: 20px; fill: #fff; }
.nav-links { display: none; gap: 28px; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: var(--ink); }

/* hero */
.hero { padding: 40px 0 56px; overflow: hidden; }
.hero-grid { display: grid; gap: 44px; }
.hl { background: linear-gradient(transparent 58%, var(--hl) 58%, var(--hl) 90%, transparent 90%); padding: 0 .08em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero-cta { display: flex; flex-direction: column; gap: 12px; margin: 26px 0 14px; }

/* phone mockup */
.phone { position: relative; width: 100%; max-width: 340px; margin: 0 auto; background: #fff; border-radius: 40px;
  border: 10px solid #1C1A2E; box-shadow: var(--shadow), 0 30px 60px rgba(40,28,110,.18); padding: 34px 14px 18px; transform: rotate(1.5deg); }
.phone-notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 90px; height: 22px; background: #1C1A2E; border-radius: 12px; }
.phone-head { display: flex; align-items: center; gap: 10px; padding: 4px 6px 12px; border-bottom: 1px solid var(--line); }
.phone-head small { display: block; color: var(--muted); font-size: .72rem; line-height: 1.2; }
.phone-head b { font-size: .95rem; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; object-fit: cover; }
.chat { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; font-size: .9rem; line-height: 1.45; }
.time { text-align: center; color: var(--muted); font-size: .7rem; margin: 6px 0 0; }
.msg { max-width: 86%; padding: 9px 13px; border-radius: 18px; }
.msg.in { background: #EFEDF5; align-self: flex-start; border-bottom-left-radius: 6px; }
.msg.out { background: var(--accent); color: #fff; align-self: flex-end; border-bottom-right-radius: 6px; }
.msg.urgent { background: #FFE6DA; border: 1px solid #FFC2A6; }
.chips { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.chips span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: .78rem; font-weight: 600; color: var(--accent); }

/* problem */
.problem { background: var(--ink); color: #E9E6F5; padding: 56px 0; }
.big-quote { font-size: clamp(1.4rem, 5vw, 2rem); line-height: 1.3; color: #fff; font-weight: 600; letter-spacing: -.01em; }
.big-quote b { color: var(--hl); }

/* sections */
.section { padding: 64px 0; }
.section.alt { background: var(--bg-alt); }

.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 18px; }
.steps li { background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.steps p { color: var(--muted); margin: 0; }
.step-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft);
  color: var(--accent); font-weight: 800; margin-bottom: 14px; }

.cards { display: grid; gap: 16px; margin-top: 32px; }
.card { background: var(--card); border-radius: var(--radius); padding: 22px 22px 18px; box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; }
.ic { font-size: 1.6rem; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 14px; background: var(--bg); margin-bottom: 12px; }
.safety { margin: 28px auto 0; max-width: 640px; text-align: center; background: #fff; border-radius: 999px; padding: 14px 22px; font-size: .95rem; box-shadow: var(--shadow); }

/* founder */
.founder-grid { display: grid; gap: 28px; align-items: center; }
.founder-photo { width: 150px; height: 150px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; text-align: center;
  background: radial-gradient(circle at 30% 30%, #8E7DFF, var(--accent)); color: rgba(255,255,255,.85); font-size: .85rem; font-weight: 600;
  box-shadow: 0 0 0 8px var(--accent-soft); }
.founder-photo.has-img { object-fit: cover; background: var(--accent-soft); }
.founder p { color: #3A3650; }
.sig { font-weight: 700; color: var(--ink) !important; font-style: italic; }

/* pricing */
.plans { display: grid; gap: 18px; margin-top: 32px; }
.plan { position: relative; background: var(--card); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); border: 2px solid transparent; }
.plan.pro { border-color: var(--accent); }
.tag { position: absolute; top: -13px; right: 20px; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.price { margin: 0 0 4px; color: var(--muted); }
.price span { font-size: 2.6rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.plan-desc { color: var(--muted); }
.plan ul, .no-tax ul { list-style: none; padding: 0; margin: 0; }
.plan li { padding: 7px 0 7px 30px; position: relative; border-top: 1px solid var(--line); }
.plan li::before { content: "✓"; position: absolute; left: 4px; color: var(--ok); font-weight: 800; }
.no-tax { margin-top: 26px; background: #FBFAFF; border: 2px dashed var(--hl); border-radius: var(--radius); padding: 24px; }
.no-tax li { padding: 6px 0; }

/* privacy */
.promises { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.promises li { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow); }
.promises li > span { font-size: 1.4rem; line-height: 1.2; }

/* faq */
.faq { margin-top: 28px; display: grid; gap: 10px; }
.faq details { background: var(--card); border-radius: 14px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 18px 50px 18px 20px; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--accent); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

/* waitlist form */
.waitlist { background: linear-gradient(180deg, var(--bg) 0%, var(--accent-soft) 100%); }
.form-card { background: var(--card); border-radius: 24px; box-shadow: var(--shadow); padding: 30px 20px; }
form { margin-top: 22px; }
.field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 6px; padding: 0; }
.req { color: var(--err); }
.opt { color: var(--muted); font-weight: 400; }
input[type=email], input[type=text], select, .share-row input {
  width: 100%; min-height: 52px; padding: 0 16px; font: inherit; font-size: 16px; color: var(--ink);
  border: 2px solid var(--line); border-radius: 14px; background: #FCFBFF; transition: border-color .15s; }
select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
input:focus, select:focus { outline: none; border-color: var(--accent); }
input.invalid { border-color: var(--err); }
.err { color: var(--err); font-size: .85rem; margin: 6px 0 0; min-height: 0; }
.err:empty { display: none; }
.two { display: grid; gap: 18px; }
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 2px solid var(--line); font-weight: 600; font-size: .92rem; background: #FCFBFF; transition: all .15s; user-select: none; }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--warm); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; font-size: .95rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); flex: none; }
#submitBtn { margin-top: 10px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.success { text-align: center; padding: 20px 0 4px; }
.success:focus { outline: none; }
.check-big { width: 70px; height: 70px; margin: 0 auto 14px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 2.2rem; display: grid; place-items: center; }
.share { margin-top: 20px; background: var(--bg); border-radius: 16px; padding: 18px; }
.share-row { display: flex; gap: 8px; }
.share-row input { min-height: 42px; font-size: .9rem; }
#nativeShare { margin-top: 10px; }

/* footer */
.footer { background: var(--ink); color: #B9B4D0; padding: 40px 0 48px; font-size: .9rem; }
.footer .logo { color: #fff; margin-bottom: 10px; }
.disclaimer { max-width: 680px; }
.footer .fine { color: #8E89A8; }
.footer a { color: var(--dark-accent, #A99BFF); }
.footer a:hover { color: #fff; }
.nowrap { white-space: nowrap; }

/* admin (owner-only local view) */
.admin { background: #fff; border-top: 4px solid var(--warm); padding: 30px 0 60px; }
.table-wrap { overflow-x: auto; }
.admin table { border-collapse: collapse; font-size: .85rem; width: 100%; }
.admin th, .admin td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; white-space: nowrap; }

/* ---------- tablet / desktop ---------- */
@media (min-width: 640px) {
  .hero-cta { flex-direction: row; }
  .two { grid-template-columns: 1fr 1fr; }
  .form-card { padding: 40px 44px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr 1fr; max-width: 820px; margin-left: auto; margin-right: auto; }
  .no-tax { max-width: 820px; margin-left: auto; margin-right: auto; }
}
@media (min-width: 900px) {
  body { font-size: 18px; }
  .nav-links { display: flex; }
  .hero { padding: 72px 0 96px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 56px; }
  .phone { max-width: 360px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 96px 0; }
  .problem { padding: 80px 0; }
  .founder-grid { grid-template-columns: 220px 1fr; gap: 56px; max-width: 900px; margin: 0 auto; }
  .founder-photo { width: 200px; height: 200px; }
}
