/* LanternLit marketing pages. Tokens and shared chrome are in app.css (loaded first). */

@media (max-width: 349px) { .hide-xs { display: none; } }
.btn-lg { min-height: 54px; padding: 0 24px; font-size: 1.125rem; }
.btn-night { background: rgba(255, 255, 255, .05); border-color: #3A4A68; color: var(--night-text); }
.btn-night:hover { background: rgba(255, 255, 255, .1); border-color: var(--night-muted); color: #FFFFFF; }
.btn-night svg { color: var(--lamp); }
/* on night surfaces the primary button is the lit thing: a short warm spill under it */
.hero .btn-primary, .band .btn-primary { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 30px -12px rgba(245, 168, 59, .7); }
.hero .btn-primary:hover, .band .btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 12px 34px -10px rgba(245, 168, 59, .85); }

/* ---------- hero: the shop after dark, one light on ---------- */
/* Night surfaces get a faint film grain so the dark reads as a material, not a flat fill. */
.hero, .band { --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"); }
.hero::after, .band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grain); opacity: .035; pointer-events: none; }
/* The only light in the hero is the phone: its screen halo and the lead notification (see .lock). */
.hero {
  position: relative; overflow: hidden; isolation: isolate; color: var(--night-text); padding: 44px 0 0;
  background: linear-gradient(180deg, var(--night) 40%, color-mix(in srgb, var(--night) 70%, var(--night-2)));
  border-bottom: 1px solid var(--night-line);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: end; }
.hero h1 { font-size: clamp(3rem, 12.5vw, 5.75rem); line-height: .9; letter-spacing: -.012em; margin: 0 0 22px; max-width: 10.5ch; color: #F6F8FB; }
.hero-lead { font-size: 1.25rem; line-height: 1.5; color: var(--night-muted); max-width: 33rem; margin: 0 0 28px; }
.hero-ctas { display: flex; flex-direction: column; gap: 12px; }
.hero-note { color: var(--night-muted); font-size: .95rem; margin: 14px 0 0; }
.hero-facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; border-top: 1px solid var(--night-line); padding-top: 20px; }
.hero-facts li { margin: 0; display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--night-text); font-size: 1rem; line-height: 1.3; }
.hero-facts li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 0 4px rgba(245, 168, 59, .18); }
.hero-copy { padding-bottom: 8px; }
@media (min-width: 560px) {
  .hero-ctas { flex-direction: row; flex-wrap: wrap; }
  .hero-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; }
}
@media (min-width: 960px) {
  .hero { padding-top: 72px; }
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; }
  .hero-copy { padding-bottom: 72px; }
}

/* the phone rising out of the bottom of the hero */
.hero-visual { display: flex; justify-content: center; }
.lock {
  width: min(330px, 100%); height: 400px; overflow: hidden; position: relative;
  border: 10px solid transparent; border-bottom: 0; border-radius: 46px 46px 0 0;
  background:
    radial-gradient(85% 42% at 50% 80%, rgba(245, 168, 59, .17), transparent 72%) padding-box, /* the alert lighting the screen */
    linear-gradient(180deg, #1B2843 0%, #0F182B 72%) padding-box,
    linear-gradient(180deg, #3A4964, #1D283D 22%, #151E31) border-box; /* bezel, lit along the top edge */
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .06),                 /* outer hairline */
    0 0 80px -4px rgba(245, 168, 59, .28),              /* warm halo hugging the phone */
    0 40px 90px -30px rgba(0, 0, 0, .8);
  padding: 14px 14px 0; color: #F3F5F8;
}
.lock::before { /* dynamic island */
  content: ""; position: absolute; top: 10px; left: 50%; width: 84px; height: 24px; margin-left: -42px;
  border-radius: 999px; background: #05080F; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
}
.lock-status { display: flex; justify-content: space-between; align-items: center; font: 600 .875rem/1 var(--font-body); padding: 2px 10px 0; }
.lock-icons { display: inline-flex; gap: 3px; align-items: flex-end; }
.lock-icons i { display: block; width: 4px; background: #F3F5F8; border-radius: 1px; }
.lock-icons i:nth-child(1) { height: 6px; } .lock-icons i:nth-child(2) { height: 9px; } .lock-icons i:nth-child(3) { height: 12px; }
.lock-time { text-align: center; font: 600 4.75rem/1 var(--font-display); letter-spacing: -.01em; margin-top: 22px; }
.lock-date { text-align: center; color: #B9C3D2; font-weight: 500; margin-top: 4px; }
.notif { margin-top: 12px; border-radius: 18px; padding: 11px 14px 12px; background: rgba(42, 55, 80, .82); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); font-size: .9375rem; line-height: 1.35; }
.notif-head { display: flex; align-items: center; gap: 8px; font-size: .8125rem; color: #B9C3D2; margin-bottom: 4px; }
.notif-when { margin-left: auto; }
.notif-app { width: 18px; height: 18px; border-radius: 5px; background: var(--lamp) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 9c3.4 3.9 5 6.6 5 9.2a5 5 0 0 1-10 0C11 15.6 12.6 12.9 16 9z' fill='%231A1206'/%3E%3C/svg%3E") center/14px no-repeat; }
.notif-app-phone { background: #34C759 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center/12px no-repeat; }
.notif-missed { opacity: .62; }
.notif-lead { background: linear-gradient(180deg, rgba(58, 66, 82, .96), rgba(48, 58, 80, .96)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 0 1px rgba(245, 168, 59, .6), 0 0 36px -4px rgba(245, 168, 59, .4); }
.notif-lead strong { color: #FFFFFF; }
@media (prefers-reduced-motion: no-preference) {
  .notif-lead { animation: notif-in .7s var(--ease) .5s both; }
  @keyframes notif-in { from { opacity: 0; transform: translateY(-14px) scale(.97); } to { opacity: 1; transform: none; } }
}
@media (max-width: 559px) { .lock { height: 400px; } .lock-time { font-size: 4.25rem; margin-top: 16px; } }

/* ---------- sections ---------- */
.section { padding: 64px 0; }
@media (min-width: 760px) { .section { padding: 96px 0; } }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section h2 { font-size: clamp(2.1rem, 7vw, 3.25rem); line-height: .98; margin-bottom: 14px; }
.section-head { max-width: 42rem; margin-bottom: 36px; }
.section-head .lead { margin: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
  .split-even { align-items: start; }
  .split-faq { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); align-items: start; }
}

/* how it works: a real sequence, so it is numbered */
.how { list-style: none; padding: 0; margin: 0; counter-reset: how; display: grid; grid-template-columns: minmax(0, 1fr); }
.how li { counter-increment: how; position: relative; margin: 0; padding: 0 0 30px 62px; }
.how li::before {
  content: counter(how); position: absolute; left: 0; top: -4px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font: 700 1.375rem/1 var(--font-display);
  background: var(--night); color: var(--lamp); box-shadow: 0 0 0 5px var(--tint);
}
.how li:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 50px; bottom: 6px; width: 2px; background: var(--line); }
.how h3 { font-size: 1.5rem; margin: 4px 0 6px; }
.how p { color: var(--muted); margin: 0; max-width: 30rem; }
@media (min-width: 900px) {
  .how { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
  .how li { padding: 68px 0 0; }
  .how li::before { top: 0; }
  .how li:not(:last-child)::after { left: 60px; right: -18px; top: 21px; bottom: auto; width: auto; height: 2px; }
}

/* check and cross lists */
.ticks, .crosses { list-style: none; padding: 0; margin: 0 0 8px; }
.ticks li, .crosses li { position: relative; padding-left: 34px; margin: 0; }
.ticks li + li, .crosses li + li { margin-top: 12px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .28em; width: 8px; height: 14px; border: solid var(--accent-ink); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.crosses li::before, .crosses li::after { content: ""; position: absolute; left: 2px; top: .72em; width: 17px; height: 3px; border-radius: 2px; background: var(--bad); transform: rotate(45deg); }
.crosses li::after { transform: rotate(-45deg); }
.crosses li + li { margin-top: 16px; }
.section .lead + .ticks { margin-top: 24px; }

/* the full lead text, on a night stage */
.stage { position: relative; background: var(--night); border: 1px solid var(--night-line); border-radius: 24px; padding: 32px 20px; overflow: hidden; isolation: isolate; display: flex; justify-content: center; }
@media (min-width: 640px) { .stage { padding: 48px 40px; } }
.sms {
  margin: 0; width: 100%; max-width: 360px; background: #FFFFFF; color: #111418; border-radius: 30px;
  border: 9px solid #1C273C; padding: 18px 14px 16px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 0 44px -6px rgba(245, 168, 59, .34); /* the screen's own light */
}
.sms-top { display: grid; justify-items: center; gap: 4px; padding-bottom: 14px; border-bottom: 1px solid #E5E7EB; margin-bottom: 14px; }
.sms-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--night) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 9c3.4 3.9 5 6.6 5 9.2a5 5 0 0 1-10 0C11 15.6 12.6 12.9 16 9z' fill='%23F5A83B'/%3E%3C/svg%3E") center/26px no-repeat; }
.sms-name { font-weight: 600; font-size: .95rem; }
.sms-meta { font-size: .75rem; color: #6B7280; }
.sms-bubble { white-space: pre-line; background: #E9E9EB; border-radius: 20px 20px 20px 6px; padding: 12px 15px; font-size: .9875rem; line-height: 1.42; max-width: 94%; }
.sms-urgent { color: #B42318; letter-spacing: .02em; }
.sms-bubble u { color: #0A66D9; text-decoration-thickness: 1px; }
.sms-caption { font-size: .8125rem; color: #6B7280; margin-top: 12px; padding-left: 4px; }
/* the phone matches the theme: dark by default, light when the visitor chose light */
:root:not([data-theme="light"]) .sms { background: #000000; color: #F2F2F7; border-color: #263247; }
:root:not([data-theme="light"]) .sms-top { border-color: #2A2A2E; }
:root:not([data-theme="light"]) .sms-meta, :root:not([data-theme="light"]) .sms-caption { color: #9A9AA2; }
:root:not([data-theme="light"]) .sms-bubble { background: #26262A; }
:root:not([data-theme="light"]) .sms-urgent { color: #FF8A7A; }
:root:not([data-theme="light"]) .sms-bubble u { color: #5EA8FF; }

/* greeting */
.greeting { margin: 8px 0 20px; padding: 2px 0 2px 22px; border-left: 4px solid var(--lamp); }
.greeting p { font: 600 clamp(1.5rem, 4.6vw, 2rem)/1.2 var(--font-display); color: var(--text); margin: 0; letter-spacing: 0; }
#calls h2 { font-size: clamp(1.9rem, 5.5vw, 2.5rem); }
#calls .split > div + div { padding-top: 8px; }
@media (min-width: 900px) { #calls .split > div + div { border-left: 1px solid var(--line); padding: 0 0 0 56px; margin-left: -16px; } }

/* pricing */
.pricing { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 900px) { .pricing { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px; align-items: stretch; } }
.price-card { background: var(--bg); border: 1px solid var(--line); border-radius: 22px; padding: 28px 22px; }
@media (min-width: 640px) { .price-card { padding: 40px; } }
.price { font: 700 5.5rem/0.9 var(--font-display); letter-spacing: -.02em; margin: 0 0 10px; display: flex; align-items: flex-start; flex-wrap: wrap; }
.price-cur { font-size: 2.5rem; margin: 8px 4px 0 0; }
.price-per { font: 500 1.25rem/1 var(--font-body); color: var(--muted); align-self: flex-end; margin: 0 0 12px 12px; letter-spacing: 0; }
.price-card .ticks { margin: 22px 0 28px; }
.price-fine { margin: 14px 0 0; }
.guarantee { position: relative; overflow: hidden; isolation: isolate; background: var(--night); border: 1px solid var(--night-line); color: var(--night-text); border-radius: 22px; padding: 28px 22px; --focus: var(--lamp-hi); }
@media (min-width: 640px) { .guarantee { padding: 40px; } }
.guarantee h3 { font-size: 2rem; font-weight: 700; color: #FFFFFF; margin: 22px 0 10px; }
.guarantee p { color: var(--night-text); font-size: 1.125rem; }
.guarantee .guarantee-fine { color: var(--night-muted); font-size: .975rem; margin: 0; }
.guarantee a { color: var(--night-text); }
.guarantee a:hover { color: var(--lamp-hi); }
.seal { width: 112px; height: 112px; border-radius: 50%; border: 2px dashed rgba(245, 168, 59, .7); display: grid; place-content: center; justify-items: center; text-align: center; color: var(--lamp);
  background: radial-gradient(closest-side, rgba(245, 168, 59, .16), rgba(245, 168, 59, .04));
  box-shadow: 0 0 0 7px rgba(245, 168, 59, .08), 0 0 56px 4px rgba(245, 168, 59, .2); }
.seal-n { font: 700 3rem/0.85 var(--font-display); }
.seal-l { font: 600 .8125rem/1.15 var(--font-body); color: var(--night-text); margin-top: 4px; }

/* faq */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 2px; min-height: 60px; font-weight: 600; font-size: 1.125rem; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line-strong);
  background: linear-gradient(var(--text), var(--text)) center/12px 2px no-repeat, linear-gradient(var(--text), var(--text)) center/2px 12px no-repeat;
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--tint); }
.faq summary:hover { color: var(--accent-ink); }
.faq details p { color: var(--muted); margin: -4px 0 0; padding: 0 44px 22px 2px; max-width: 44rem; }

/* contact */
.contact-form { max-width: 560px; width: 100%; justify-self: end; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
#form-msg { margin: 16px 0 0; }
#form-msg[hidden] { display: none; }
.cf-turnstile { margin: 0 0 8px; }

/* closing band */
.band { background: var(--night); color: var(--night-text); padding: 64px 0; position: relative; overflow: hidden; isolation: isolate; border-top: 1px solid var(--night-line); }
.band h2 { font-size: clamp(2.1rem, 7vw, 3.5rem); line-height: .98; color: #F6F8FB; max-width: 18ch; margin: 0 0 28px; }
@media (min-width: 900px) { .band { padding: 88px 0; } .band-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; } .band h2 { margin: 0; } .band .hero-ctas { flex: none; } }

/* legal and simple pages */
.legal { max-width: 46rem; padding: 48px 0 80px; }
.legal h1 { font-size: clamp(2.5rem, 8vw, 3.5rem); line-height: .95; margin-bottom: 10px; }
.legal h2 { font-size: 1.625rem; margin: 40px 0 10px; }
.legal li + li { margin-top: 8px; }
.legal .updated { color: var(--muted); margin-bottom: 28px; }
.notfound { padding-block: 72px 96px; text-align: left; }
.notfound .mark-big { width: 88px; height: 88px; color: var(--text); margin-bottom: 20px; }
.notfound h1 { font-size: clamp(2.75rem, 9vw, 4.5rem); line-height: .92; max-width: 12ch; }
.notfound .lead { margin-bottom: 28px; }

/* ---------- refinements after visual review ---------- */
.hero-facts li::before { margin-left: 4px; }
@media (min-width: 960px) {
  .hero h1 { max-width: 12.5ch; }
  .hero-visual { align-self: end; }
  .lock { width: 350px; height: 470px; }
}
.guarantee { display: flex; flex-direction: column; justify-content: center; }
.guarantee .guarantee-fine { padding-top: 16px; }
#contact .split { align-items: start; }
.contact-form { background: var(--bg); box-shadow: none; }
@media (min-width: 900px) { #contact .split > div:first-child { position: sticky; top: 32px; padding-top: 24px; } }
