/* WeightPlot landing page. Builds on app.css (palette, type, buttons, fields). Phone first:
   most visitors arrive from a social media link on a phone. */

body.stsc-landing-page { margin: 0; background: #eff2ec; }
@media (prefers-color-scheme: dark) { body.stsc-landing-page { background: #15111d; } }

.stsc.stsc-landing { max-width: none; margin: 0; padding: 0; --hero: #5b2e7a; --hero-ink: #ffffff; --hero-soft: #e8ddf0; }
.stsc-landing a { color: var(--plum-text); }

/* Shared section width. */
.lp-bar, .lp-hero, .lp-facts, .lp-section, .lp-final, .lp-foot { box-sizing: border-box; width: 100%; max-width: 1100px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }

/* Top bar and hero sit on one plum band. */
.lp-top { background: var(--hero); padding-bottom: 8px; }
.lp-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; padding-bottom: 8px; }
.lp-brand { display: flex; align-items: center; gap: 10px; color: var(--hero-ink) !important; text-decoration: none; font-weight: 700; font-size: 19px; min-height: 48px; }
.lp-brand .stsc-logo { border-radius: 10px; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25); }
.lp-login { color: var(--hero-ink) !important; font-weight: 700; font-size: 17px; padding: 12px 4px; text-underline-offset: 4px; }

.lp-hero { display: grid; grid-template-columns: 1fr; grid-template-areas: "copy" "form" "phone"; gap: 24px; padding-top: 16px; padding-bottom: 32px; }
.lp-hero-copy { grid-area: copy; color: var(--hero-ink); }
.lp-hero-form { grid-area: form; }
.lp-hero-phone { grid-area: phone; display: flex; justify-content: center; }
.lp-h1 { margin: 0; font-size: 40px; line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; max-width: 14ch; }
.stsc-landing .lp-lead { margin: 14px 0 0; font-size: 19px; line-height: 1.5; color: var(--hero-soft); max-width: 34em; }
.stsc-landing .lp-ticks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.lp-ticks li { display: flex; gap: 10px; align-items: center; font-size: 17px; font-weight: 700; }
.lp-ticks li::before { content: ''; width: 20px; height: 20px; flex: none; border-radius: 50%; background: var(--citrus) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%231a1430' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }

.lp-hero .stsc-auth { margin: 0; box-shadow: 0 18px 40px rgba(26, 20, 48, 0.22); }

/* The app preview: a drawn phone, not a screenshot, so it is crisp at any size. */
.lp-phone { width: 270px; border-radius: 42px; padding: 12px; background: #1a1430; box-shadow: 0 24px 50px rgba(26, 20, 48, 0.28); }
.lp-phone-screen { border-radius: 32px; background: #eff2ec; padding: 22px 16px 18px; color: #1a1430; }
.lp-phone-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.lp-phone-top span { color: #554e6b; font-size: 13px; }
.lp-plate { display: block; width: 190px; height: 190px; margin: 12px auto 6px; }
.lp-plate-big { font: 700 44px 'Atkinson Hyperlegible', sans-serif; fill: #1a1430; }
.lp-plate-small { font: 400 14px 'Atkinson Hyperlegible', sans-serif; fill: #554e6b; }
.stsc-landing .lp-phone-rows { list-style: none; margin: 8px 0 0; padding: 0; background: #fff; border-radius: 16px; }
.lp-phone-rows li { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: 13px; border-top: 1px solid #e3e6df; }
.lp-phone-rows li:first-child { border-top: 0; }
.lp-phone-rows i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.lp-phone-rows b { margin-left: auto; font-variant-numeric: tabular-nums; }

/* Facts strip. */
.lp-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: 22px; overflow: hidden; padding: 0; width: calc(100% - 40px); margin-top: 24px; }
.lp-facts > div { background: var(--surface); padding: 18px 16px; display: flex; flex-direction: column; gap: 8px; }
.stsc-landing .lp-facts p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.4; }
.lp-facts b { display: block; color: var(--ink); font-size: 18px; }
.lp-ico { color: var(--plum-text); flex: none; }

/* Sections. */
.lp-section { padding-top: 48px; }
.lp-h2 { margin: 0; font-size: 30px; line-height: 1.15; letter-spacing: -0.01em; font-weight: 700; }
.stsc-landing .lp-h3 { margin: 10px 0 0; font-size: 21px; line-height: 1.25; font-weight: 700; }
.stsc-landing .lp-section p { font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 36em; }

.stsc-landing .lp-steps { list-style: none; counter-reset: step; margin: 20px 0 0; padding: 0; display: grid; gap: 14px; }
.lp-steps li { counter-increment: step; position: relative; padding: 18px 18px 18px 72px; background: var(--surface); border-radius: 22px; }
.lp-steps li::before { content: counter(step); position: absolute; left: 18px; top: 18px; width: 38px; height: 38px; border-radius: 50%; background: var(--plum); color: #fff; font-weight: 700; font-size: 19px; display: grid; place-items: center; }
.lp-steps b { font-size: 19px; }
.stsc-landing .lp-steps p { margin: 6px 0 0; font-size: 17px; }

.lp-features { display: grid; gap: 0; }
.lp-features article { padding: 24px 0; border-top: 1px solid var(--line); }
.lp-features article:first-child { border-top: 0; padding-top: 4px; }
.stsc-landing .lp-features p { margin: 6px 0 0; }

.lp-safe, .lp-install { display: flex; gap: 16px; align-items: flex-start; }
.lp-safe { margin-top: 40px; padding: 26px 22px; border-radius: 26px; background: var(--plum-soft); width: calc(100% - 40px); }
.lp-safe .lp-ico, .lp-install .lp-ico { width: 36px; height: 36px; margin-top: 2px; }
.stsc-landing .lp-safe p, .stsc-landing .lp-install p { margin: 8px 0 0; }
.lp-safe .lp-h2, .lp-install .lp-h2 { font-size: 24px; }

.lp-faq details { background: var(--surface); border-radius: 18px; margin-top: 10px; }
.lp-faq details:first-of-type { margin-top: 20px; }
.lp-faq summary { list-style: none; cursor: pointer; padding: 18px 52px 18px 18px; font-weight: 700; font-size: 18px; position: relative; min-height: 24px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 400; color: var(--plum-text); }
.lp-faq details[open] summary::after { content: '−'; }
.stsc-landing .lp-faq details p { margin: 0; padding: 0 18px 18px; font-size: 17px; }
.lp-faq summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 18px; }

.lp-final { margin-top: 56px; padding: 40px 24px; background: var(--hero); color: #fff; border-radius: 28px; text-align: center; width: calc(100% - 40px); }
.lp-final .lp-h2 { color: #fff; }
.stsc-landing .lp-final p { color: var(--hero-soft); margin: 10px auto 22px; font-size: 18px; }
.lp-cta { min-width: 240px; }

.lp-foot { padding-top: 32px; padding-bottom: calc(40px + env(safe-area-inset-bottom)); text-align: center; color: var(--muted); font-size: 15px; }
.stsc-landing .lp-foot p { margin: 6px 0; }
.lp-foot-links { display: flex; justify-content: center; gap: 18px; }
.lp-foot a { color: var(--muted); }
.lp-disclaimer { font-size: 14px; }

@media (min-width: 600px) {
	.lp-h1 { font-size: 50px; }
	.lp-facts { grid-template-columns: repeat(4, 1fr); }
	.lp-features { grid-template-columns: 1fr 1fr; column-gap: 40px; }
	.lp-features article:nth-child(2) { border-top: 0; padding-top: 4px; }
}

@media (min-width: 920px) {
	.lp-hero { grid-template-columns: 1.1fr 0.9fr; grid-template-areas: "copy form" "phone form"; column-gap: 56px; align-items: start; padding-top: 32px; }
	.lp-h1 { font-size: 60px; }
	.lp-hero-phone { justify-content: flex-start; }
	.lp-hero-form { position: sticky; top: 24px; }
	.lp-steps { grid-template-columns: repeat(3, 1fr); }
}

/* Privacy policy and other reading pages. */
.lp-top-slim { padding-bottom: 0; }
.lp-legal { box-sizing: border-box; width: 100%; max-width: 760px; margin: 0 auto; padding: 36px 20px 8px; color: var(--ink); }
.stsc-landing .lp-legal-title { font-size: 36px; line-height: 1.1; margin: 0 0 8px; }
.lp-legal-body { font-size: 18px; line-height: 1.65; }
.stsc-landing .lp-legal-body p { margin: 14px 0 0; }
.stsc-landing .lp-legal-body h2 { margin: 36px 0 0; font-size: 24px; line-height: 1.25; font-weight: 700; }
.stsc-landing .lp-legal-body h3 { margin: 22px 0 0; font-size: 19px; line-height: 1.3; font-weight: 700; }
.stsc-landing .lp-legal-body ul { margin: 12px 0 0; padding-left: 22px; list-style: disc; }
.stsc-landing .lp-legal-body li { margin-top: 8px; }
.lp-legal-body a { font-weight: 700; text-underline-offset: 3px; overflow-wrap: anywhere; }
.lp-legal-body em { color: var(--muted); }
@media (min-width: 600px) { .stsc-landing .lp-legal-title { font-size: 44px; } }
