/* droplogs.org front page (signed out). The staff site never shows it. */

body.public #signin { display: block; min-height: 0; padding: 0; width: 100%; }
body.public #landing { width: 100%; }
body.public #signin[hidden] { display: none !important; }
body.public #landing { overflow-x: hidden; }

#landing { --max: 1120px; }
#landing a { color: inherit; }
#landing h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 12px; }
#landing section { max-width: var(--max); margin: 0 auto; padding: 72px 20px; }

.lp-nav { max-width: var(--max); margin: 0 auto; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lp-nav nav { display: flex; gap: 22px; align-items: center; font-size: 14px; }
.lp-nav nav a { text-decoration: none; color: var(--muted); }
.lp-nav nav a:hover { color: var(--text); }
.lp-nav .lp-signin { color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; }

/* hero */
.lp-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding-top: 40px !important; position: relative; }
#landing { position: relative; isolation: isolate; }
#landing::before { content: ""; position: absolute; top: -200px; right: -200px; width: 1000px; height: 1000px; border-radius: 50%;
  background: radial-gradient(circle, rgba(79,124,255,.26), rgba(60,207,142,.08) 45%, transparent 70%); z-index: -1; pointer-events: none; }
.lp-kicker { display: inline-block; font-size: 13px; font-weight: 600; color: var(--green); background: rgba(60,207,142,.1);
  border: 1px solid rgba(60,207,142,.3); border-radius: 999px; padding: 5px 12px; margin-bottom: 18px; }
.lp-hero h1 { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.02; letter-spacing: -0.035em; margin: 0 0 18px; }
.lp-hero h1 em { font-style: normal; background: linear-gradient(90deg, #4f7cff, #3ccf8e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-lead { font-size: 18px; color: #c3cbe0; max-width: 34em; margin: 0 0 26px; }

.lp-join { display: flex; gap: 8px; max-width: 460px; }
.lp-join input { flex: 1; min-width: 0; padding: 13px 16px; border-radius: 12px; font-size: 16px; }
.lp-join button { padding: 13px 20px; border-radius: 12px; font-size: 16px; white-space: nowrap; }
.lp-join.done input, .lp-join.done button { display: none; }
.lp-note { font-size: 13px; color: var(--muted); margin: 10px 0 0; max-width: 460px; }
.lp-note.ok { color: var(--green); font-size: 15px; font-weight: 600; }
.lp-note.bad { color: var(--red); }
.center-join { margin: 28px auto 0; }
.lp-pricing .lp-note { margin: 10px auto 0; text-align: center; }

.lp-works { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 30px; font-size: 13px; color: var(--muted); align-items: center; }
.lp-works span { width: 100%; text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }
.lp-works b { color: #c3cbe0; font-weight: 600; }

/* the phone */
.lp-visual { position: relative; height: 600px; display: grid; place-items: center; }
.phone { width: 290px; height: 590px; border-radius: 48px; background: #05070f; padding: 12px;
  box-shadow: 0 0 0 2px #2a3352, 0 40px 90px rgba(0,0,0,.55), 0 0 120px rgba(79,124,255,.18); position: relative; transform: rotate(-4deg); }
.island { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 190px; height: 34px; border-radius: 20px; background: #000;
  display: flex; align-items: center; gap: 8px; padding: 0 12px; font-size: 12px; font-weight: 700; color: var(--green); z-index: 2; }
.island .isl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.island .isl-r { margin-left: auto; color: #fff; }
.screen { height: 100%; border-radius: 38px; background: linear-gradient(180deg, #111a33, #0a1022 60%); padding: 66px 16px 16px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.ph-top { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.ph-top .live { color: var(--green); font-weight: 700; }
.ph-big { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.ph-big small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: 6px; }
.ph-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ph-stats div { background: rgba(255,255,255,.05); border-radius: 12px; padding: 9px 6px; text-align: center; }
.ph-stats b { display: block; font-size: 16px; }
.ph-stats span { font-size: 10px; color: var(--muted); }
.ph-orders { display: grid; gap: 7px; }
.ord { display: grid; grid-template-columns: 30px 1fr auto; gap: 9px; align-items: center; background: rgba(255,255,255,.04); border-radius: 12px; padding: 8px 10px; }
.ord i { font-style: normal; font-size: 10px; font-weight: 800; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; }
.ord b { display: block; font-size: 13px; }
.ord span { font-size: 11px; color: var(--muted); }
.ord em { font-style: normal; font-weight: 700; font-size: 14px; }
.ord em.good { color: var(--green); } .ord em.meh { color: var(--amber); } .ord em.bad { color: var(--red); }

.watch { position: absolute; right: 2%; bottom: 70px; width: 118px; height: 140px; border-radius: 34px; background: #05070f;
  box-shadow: 0 0 0 2px #2a3352, 0 24px 50px rgba(0,0,0,.5); padding: 9px; transform: rotate(6deg); }
.w-face { height: 100%; border-radius: 26px; background: #000; display: grid; place-content: center; text-align: center; gap: 2px; }
.w-face span { font-size: 10px; color: var(--muted); }
.w-face b { font-size: 26px; color: var(--green); letter-spacing: -0.02em; }
.w-face small { font-size: 9px; color: #c3cbe0; }

.bubble { position: absolute; background: rgba(28,38,66,.92); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px; padding: 10px 13px; font-size: 13px; box-shadow: 0 16px 40px rgba(0,0,0,.45); max-width: 230px; }
.bubble .sub { color: var(--muted); font-size: 12px; }
.bubble.b1 { top: 70px; left: -4%; animation: float 6s ease-in-out infinite; }
.bubble.b2 { bottom: 150px; left: -8%; animation: float 7s ease-in-out infinite reverse; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* band */
.lp-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; padding: 0 20px !important; }
.lp-band div { background: var(--card); padding: 22px; display: grid; gap: 4px; border: 1px solid var(--line); }
.lp-band div:first-child { border-radius: 16px 0 0 16px; } .lp-band div:last-child { border-radius: 0 16px 16px 0; }
.lp-band b { font-size: 20px; }
.lp-band span { color: var(--muted); font-size: 14px; }

/* features */
.lp-features .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.lp-features article { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; transition: transform .2s, border-color .2s; }
.lp-features article:hover { transform: translateY(-3px); border-color: rgba(79,124,255,.45); }
.lp-features .ic { font-size: 26px; }
.lp-features h3 { color: var(--text); font-size: 17px; margin: 10px 0 6px; }
.lp-features p { margin: 0; color: var(--muted); font-size: 14px; }

/* driving safety */
.lp-safety { margin-top: 18px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; padding: 30px;
  border-radius: 22px; border: 1px solid rgba(60,207,142,.35); background: linear-gradient(135deg, rgba(60,207,142,.12), rgba(19,28,51,.8) 55%); }
.lp-safety h3 { color: var(--text); font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.02em; margin: 0 0 10px; }
.lp-safety p { color: #c3cbe0; margin: 0; font-size: 15px; }
.lp-safety .lp-kicker { margin-bottom: 12px; }
.lp-safety-screen { justify-self: center; width: 230px; border-radius: 34px; background: #000; padding: 22px 18px; display: grid; gap: 8px; text-align: center;
  box-shadow: 0 0 0 2px #2a3352, 0 24px 60px rgba(0,0,0,.5); }
.ds-pill { justify-self: start; font-size: 12px; font-weight: 700; color: var(--green); background: rgba(60,207,142,.15); border-radius: 999px; padding: 4px 10px; }
.ds-money { font-size: 46px; font-weight: 800; letter-spacing: -0.03em; margin-top: 10px; }
.ds-rate { font-size: 16px; font-weight: 700; color: var(--green); }
.ds-next { font-size: 18px; font-weight: 700; margin-top: 14px; }
.ds-btn { background: var(--green); color: #fff; font-size: 22px; font-weight: 800; border-radius: 16px; padding: 30px 0; margin-top: 4px; }

/* how */
.lp-how ol { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: s; }
.lp-how li { counter-increment: s; padding: 22px; border-radius: 18px; background: linear-gradient(160deg, rgba(79,124,255,.14), rgba(19,28,51,.6)); border: 1px solid var(--line); display: grid; gap: 6px; }
.lp-how li::before { content: counter(s); width: 30px; height: 30px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; font-weight: 800; margin-bottom: 6px; }
.lp-how b { font-size: 17px; }
.lp-how span { color: var(--muted); font-size: 14px; }

/* pricing */
.lp-pricing { text-align: center; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; align-items: end; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px 20px; position: relative; }
.plan h3 { color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 8px; }
.plan .price { font-size: 38px; font-weight: 800; letter-spacing: -0.03em; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.plan p { margin: 8px 0 0; color: var(--green); font-size: 14px; font-weight: 600; }
.plan.best { border-color: var(--blue); box-shadow: 0 20px 60px rgba(79,124,255,.25); padding: 36px 20px; background: linear-gradient(180deg, rgba(79,124,255,.18), var(--card) 60%); }
.tag-best { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--blue); font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }

/* faq */
.lp-faq { max-width: 760px !important; }
.lp-faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.lp-faq summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.lp-faq summary::after { content: "+"; color: var(--muted); font-size: 20px; line-height: 1; }
.lp-faq details[open] summary::after { content: "–"; }
.lp-faq p { color: var(--muted); margin: 10px 0 0; }

/* sign in */
.lp-account { text-align: center; }
.lp-account #signinSlot { display: grid; place-items: center; margin-top: 20px; }
.lp-account .card { text-align: left; }

.lp-foot { max-width: var(--max); margin: 0 auto; padding: 30px 20px 50px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.lp-foot a { text-decoration: none; }

@media (max-width: 900px) {
  .lp-hero { grid-template-columns: 1fr; }
  .lp-visual { height: 540px; }
  .lp-features .grid, .lp-how ol, .plans { grid-template-columns: 1fr; }
  .plan.best { order: -1; }
  .lp-band { grid-template-columns: 1fr; }
  .lp-safety { grid-template-columns: 1fr; padding: 22px; }
  .lp-band div:first-child { border-radius: 16px 16px 0 0; } .lp-band div:last-child { border-radius: 0 0 16px 16px; }
  #landing section { padding: 52px 16px; }
}
@media (max-width: 560px) {
  .lp-nav nav a:not(.lp-signin) { display: none; }
  .lp-join { flex-direction: column; }
  .lp-visual { height: 520px; transform: scale(.88); transform-origin: top center; margin-bottom: -60px; }
  .bubble.b1 { left: 0; } .bubble.b2 { left: 0; }
  .watch { right: 0; }
}
@media (prefers-reduced-motion: reduce) { .bubble { animation: none; } }

/* language switch */
.lp-lang { background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 6px 11px; font-size: 13px; font-weight: 700; color: var(--muted); }
.lp-lang:hover { color: var(--text); }

/* friend invite (?ref=CODE) */
.lp-invite { max-width: 1120px; margin: 4px auto 0; padding: 14px 18px; display: flex; gap: 14px; align-items: center;
  border-radius: 16px; border: 1px solid rgba(245,181,68,.45); background: linear-gradient(90deg, rgba(245,181,68,.16), rgba(19,28,51,.6));
  width: calc(100% - 40px); }
.lp-invite-gift { font-size: 30px; }
.lp-invite > div > b { display: block; font-size: 16px; }
.lp-invite span { color: #c3cbe0; font-size: 14px; }
.lp-invite code { font: 700 14px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--amber); background: rgba(245,181,68,.15); padding: 2px 7px; border-radius: 6px; letter-spacing: .08em; }

/* calculator */
.lp-calc .calc-head { max-width: 640px; }
.lp-calc .calc-head .lp-kicker { margin-bottom: 14px; }
.calc-body { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.calc-inputs { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: grid; gap: 22px; }
.calc-inputs label { display: grid; grid-template-columns: 1fr auto; gap: 10px 8px; align-items: center; font-weight: 600; }
.calc-inputs output { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 18px; }
.calc-inputs input[type=range] { grid-column: 1 / -1; padding: 0; border: none; background: transparent; accent-color: var(--blue); height: 28px; }
.calc-result { border-radius: 20px; padding: 26px; display: grid; gap: 16px; align-content: center; text-align: center;
  border: 1px solid var(--line); background: var(--card); transition: background .3s, border-color .3s; --tone: var(--green); }
.calc-result[data-level=yes] { --tone: var(--green); }
.calc-result[data-level=maybe] { --tone: var(--amber); }
.calc-result[data-level=no] { --tone: var(--red); }
.calc-result { border-color: color-mix(in srgb, var(--tone) 55%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--tone) 16%, transparent), var(--card) 70%); }
.verdict { justify-self: center; font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--tone);
  border: 1.5px solid var(--tone); border-radius: 999px; padding: 6px 16px; }
.calc-big b { display: block; font-size: clamp(48px, 6vw, 68px); font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--tone); line-height: 1.05; }
.calc-big span { color: var(--muted); }
.calc-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.calc-row div { background: rgba(255,255,255,.04); border-radius: 12px; padding: 12px 6px; display: grid; gap: 2px; }
.calc-row b { font-size: 20px; font-variant-numeric: tabular-nums; }
.calc-row span { font-size: 12px; color: var(--muted); }
.calc-foot { margin: 0; font-size: 12px; color: var(--muted); }

/* sticky button on phones */
.lp-sticky { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30; display: none;
  align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px 10px 16px; border-radius: 16px;
  background: rgba(28,38,66,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 50px rgba(0,0,0,.5); transform: translateY(140%); transition: transform .3s ease; font-size: 14px; font-weight: 600; }
.lp-sticky a.primary { background: var(--blue); color: #fff; text-decoration: none; border-radius: 11px; padding: 11px 14px; white-space: nowrap; font-weight: 700; }
.lp-sticky.show { transform: none; }
@media (max-width: 760px) { .lp-sticky { display: flex; } }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 900px) {
  .calc-body { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .lp-invite { flex-direction: row; align-items: flex-start; width: calc(100% - 32px); }
  .lp-nav nav { gap: 8px; }
}

/* platforms: iOS now, Android soon */
.lp-platforms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.plat { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; border-radius: 999px; padding: 6px 12px; border: 1px solid var(--line); }
.plat svg { width: 15px; height: 15px; }
.plat.on { color: var(--text); background: rgba(255,255,255,.06); }
.plat.soon { color: var(--muted); border-style: dashed; }
