/* Public home page (/welcome). New look approved by the owner on 18 Oct 2026 (mock-up: Notes/Product/CLAUDE_RESEARCH/
   ui_redesign_18Oct2026/ui1_home_mockup.html). Colours and fonts are app.css's; the spacing and type scale, the top bar,
   panels, the "Good to know" box and the questions list come from visitor.css. Nothing moves on its own. */
body.landing { background: var(--bg); color: var(--text); margin: 0; overflow-x: hidden; }
body.landing main { max-width: none; padding: 0; }
.landing .skip { position: absolute; left: -999px; top: 8px; }
.landing .skip:focus { left: 16px; z-index: 60; background: var(--surface); padding: 12px 16px; border-radius: 8px; min-height: 44px; }
.landing section { scroll-margin-top: 76px; }
.lp-nav .brand, .lp-foot .brand { margin: 0; font-size: 20px; display: inline-flex; align-items: center; min-height: 44px; }

/* ---- the first screen: headline, then the three doors in one panel ---- */
.lp-doors { padding-block: var(--s8) var(--s7); }
.lp-hero { margin-bottom: var(--s7); }
.lp-hero h1 { font-size: var(--t-h1); line-height: 1.05; letter-spacing: -0.02em; max-width: 14ch; }
.lp-lead { font-size: 20px; line-height: 1.5; color: var(--text-2); margin-top: var(--s4); max-width: 34ch; }
.lp-free-sample { display: flex; align-items: center; gap: 8px; margin-top: var(--s4); font-size: var(--t-small); color: var(--text-2); }
.lp-free-sample i { width: 8px; height: 8px; border-radius: 50%; background: var(--pos); flex: none; }

.lp-door-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden; }
.lp-door { display: flex; flex-direction: column; gap: var(--s3); padding: var(--s6); }
.lp-door + .lp-door { border-left: 1px solid var(--border); }
.lp-who { font-size: var(--t-small); color: var(--text-2); }
.lp-door h2 { font-size: 24px; letter-spacing: -0.01em; }
.lp-door p:not(.lp-who) { color: var(--text-2); }
.lp-door-go { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; margin-top: auto; padding-top: var(--s3); }
.lp-door-go .button.primary { padding: 0 16px; }
.lp-door-go .button.quiet { padding: 0 8px; }

.lp-guard { display: flex; gap: var(--s5); align-items: center; justify-content: space-between; margin-top: var(--s4);
  padding: var(--s5) var(--s6); background: var(--surface); border: 1px solid var(--border); border-radius: 20px; }
.lp-guard h2 { font-size: var(--t-h3); }
.lp-guard p { color: var(--text-2); margin-top: 4px; max-width: 70ch; }

/* ---- strategy tools: title left, three plain rows right ---- */
.lp-build .v-sec { border-top: 0; padding-block: var(--s8); }
.lp-build h2 { font-size: var(--t-h2); letter-spacing: -0.015em; }
.lp-side-text { color: var(--text-2); margin: var(--s3) 0 var(--s5); max-width: 40ch; }
.lp-build-list { margin: 0; padding: 0; list-style: none; }
.lp-build-list li { display: grid; grid-template-columns: 160px 1fr; gap: var(--s4); padding: var(--s4) 0; border-top: 1px solid var(--border); }
.lp-build-list li:last-child { border-bottom: 1px solid var(--border); }
.lp-build-list span { color: var(--text-2); }

/* ---- the free line beside "Good to know" ---- */
.lp-alt .v-sec { border-top: 0; padding-block: 0 var(--s8); }
.lp-free { font-size: var(--t-h2); letter-spacing: -0.015em; line-height: 1.2; font-weight: 500; }
.lp-free + .lp-side-text { margin-bottom: 0; }
.lp-know-on { margin: 0 0 var(--s7); }

/* plans (only while pricing is on): unchanged content, calmer boxes */
.lp-plans-h { font-size: var(--t-h2); letter-spacing: -0.015em; margin-bottom: var(--s5); }
.lp-periods { display: inline-flex; margin-bottom: var(--s5); }
.lp-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); align-items: stretch; }
.lp-plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: var(--s5); }
.lp-plan.hot { border: 2px solid var(--primary-edge); }
.lp-flag { position: absolute; top: -12px; right: 20px; background: var(--primary); color: var(--on-primary); font-size: var(--t-small); padding: 2px 10px; border-radius: 999px; }
.lp-plan h3 { font-size: var(--t-h3); }
.lp-price { font-size: 30px; font-weight: 500; margin: var(--s4) 0; }
.lp-price small, .lp-price em { font-size: var(--t-small); color: var(--text-2); font-weight: 400; }
.lp-price em { display: block; font-style: normal; margin-top: 4px; }
.lp-plan ul { list-style: none; padding: 0; margin: 0 0 var(--s5); display: grid; gap: 8px; flex: 1; }
.lp-plan li::before { content: "✓"; color: var(--pos); margin-right: 8px; }
.lp-note { margin-top: var(--s5); color: var(--text-2); font-size: var(--t-small); }
.lp-offer { margin-bottom: var(--s5); }

/* ---- questions ---- */
.lp-faq-sec { grid-template-areas: "head list" "more list"; grid-template-rows: min-content 1fr; row-gap: var(--s3); }
.lp-faq-more { align-self: start; }
.lp-faq-head { grid-area: head; }
.lp-faq-head h2 { font-size: var(--t-h2); letter-spacing: -0.015em; }
.lp-faq { grid-area: list; }
.lp-faq-more { grid-area: more; color: var(--text-2); }

/* ---- last call ---- */
.lp-final { padding-block: var(--s8) var(--s9); text-align: center; }
.lp-final h2 { font-size: var(--t-h2); letter-spacing: -0.015em; }
.lp-final p { color: var(--text-2); margin: var(--s3) 0 var(--s5); }

/* ---- footer ---- */
.lp-foot { border-top: 1px solid var(--border); background: var(--surface); padding-block: var(--s7) var(--s6); font-size: var(--t-small); }
.lp-foot-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: var(--s6); }
.lp-foot p { color: var(--text-2); line-height: 1.7; margin-top: var(--s2); }
.lp-foot nav { display: flex; flex-direction: column; }
.lp-foot nav b { margin-bottom: var(--s2); }
.lp-foot nav a, .lp-foot p a { color: var(--text-2); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.lp-foot nav a:hover { color: var(--text); }
.lp-foot .follow-col { gap: 0; }
.lp-legal { border-top: 1px solid var(--border); margin-top: var(--s6); padding-top: var(--s5); max-width: 90ch; }

/* ---- phones and small tablets ---- */
@media (max-width: 900px) {
  .lp-doors { padding-block: var(--s6); }
  .lp-hero { margin-bottom: var(--s5); }
  .lp-lead { font-size: 18px; }
  .lp-door-grid { grid-template-columns: 1fr; border-radius: 16px; }
  .lp-door { padding: var(--s5); }
  .lp-door + .lp-door { border-left: 0; border-top: 1px solid var(--border); }
  .lp-door h2 { font-size: 22px; }
  .lp-guard { flex-direction: column; align-items: stretch; padding: var(--s5); border-radius: 16px; }
  .lp-build .v-sec { padding-block: var(--s7) var(--s6); }
  .lp-build-list li { grid-template-columns: 1fr; gap: 2px; }
  .lp-alt .v-sec { padding-bottom: var(--s7); }
  .lp-plans { grid-template-columns: 1fr; }
  .lp-faq-sec { grid-template-areas: "head" "list" "more"; grid-template-rows: auto; row-gap: var(--s4); }
  .lp-final { padding-block: var(--s7); }
  .lp-foot-grid { grid-template-columns: 1fr 1fr; gap: var(--s5) var(--s4); }
  .lp-foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .lp-door-go .button.primary, .lp-guard .button, .lp-final .button { width: 100%; justify-content: center; } }

/* 320 px phones (phone sweep, 16 Oct 2026): the logo, Get started and Menu fit without a sideways scroll */
@media (max-width: 360px) { .lp-nav { gap: 10px; } .lp-cta { gap: 6px; } .lp-nav .brand { font-size: 18px; } }
/* widescreen (19 Oct 2026, product lead): from 1200 px the hero text sits in the left third and the three doors stack in the right two
   thirds, so the right of the hero is not left empty; Trade Guardian stays full width below. Under 1200 px nothing changes. */
@media (min-width: 1200px) {
  .lp-doors .v-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: var(--s7); align-items: start; }
  .lp-doors .lp-hero { grid-column: 1; grid-row: 1; margin-bottom: 0; }
  .lp-doors .lp-door-grid { grid-column: 2; grid-row: 1; grid-template-columns: minmax(0, 1fr); }
  .lp-doors .lp-door + .lp-door { border-left: 0; border-top: 1px solid var(--border); }
  .lp-doors .lp-door { padding: var(--s5) var(--s6); gap: var(--s2); }
  .lp-doors .lp-hero { padding-top: var(--s4); }                    /* top-aligned with the first door's first line */
  .lp-doors .lp-guard { grid-column: 1 / -1; grid-row: 2; }
}

/* from 1600 px there is room for the three doors side by side in the right two thirds (about 330 px each), so the panel is short and Trade
   Guardian shows on the first screen; 1200 to 1599 px keeps them stacked */
@media (min-width: 1600px) {
  .lp-doors .v-wrap { grid-template-columns: minmax(0, .8fr) minmax(0, 2.2fr); column-gap: var(--s6); }     /* ~ 265 px for each door */
  .lp-doors .lp-door-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lp-doors .lp-door + .lp-door { border-top: 0; border-left: 1px solid var(--border); }
  .lp-doors .lp-door { padding: var(--s5) var(--s4); }
  .lp-doors .lp-door-go .button { white-space: normal; text-align: center; }
  .lp-doors .lp-door-go { min-height: calc(var(--tap) * 2 + var(--s2) + var(--s3)); align-content: flex-start; }   /* the three primary buttons share one height */
}
