/* ==========================================================================
   Ternah Pharmacy — product page (templates/landing.html)
   Marketing scale from the Ternah kit: hero 72, section h2 40, CTA h2 48,
   card h3 22, lead 19/20, body 17, buttons 16/17; 1200px width, 40px
   gutter, 120px between sections. Colours come from style.css tokens.
   ========================================================================== */

:root { --maxw: 1200px; --gutter: 40px; --sec-gap: 120px; }

.lp { background: var(--bg); color: var(--ink); font-size: 17px; }
.lp-wrap { max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.lp h1, .lp h2, .lp h3 { font-weight: 600; margin: 0; color: var(--ink); }
.lp p { margin: 0; }

/* Header */
.lp-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,243,242,.85); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.lp-header-inner { display: flex; align-items: center; gap: var(--sp-6); min-height: 72px; }
.lp-brand { display: inline-flex; align-items: center; gap: var(--sp-3); color: var(--ink); font-weight: 600; font-size: 17px; }
.lp-brand:hover { color: var(--ink); }
.lp-mark { width: 36px; height: 36px; padding: 7px; border-radius: 10px; background: var(--nav); display: inline-flex; flex-shrink: 0; }
.lp-mark img { width: 100%; height: 100%; object-fit: contain; }
.lp-nav { display: flex; gap: var(--sp-2); margin-left: auto; }
.lp-nav a { color: var(--ink); font-weight: 500; font-size: 15px; padding: 8px 14px; border-radius: var(--r-pill); }
.lp-nav a:hover { background: rgba(36,26,30,.05); color: var(--ink); }
.lp-header-actions { display: flex; gap: var(--sp-2); }
.lp .btn { font-size: 16px; min-height: 48px; padding: 0 22px; }
.lp .btn-lg { font-size: 17px; min-height: 56px; padding: 0 30px; }

/* Eyebrow + lead */
.lp-eyebrow {
  display: inline-flex; align-items: center; padding: 6px 14px; margin-bottom: var(--sp-5);
  border-radius: var(--r-pill); background: var(--icon-bg); color: var(--nav);
  font-size: 14px; font-weight: 500;
}
.lp-lead { font-size: 19px; line-height: 1.5; color: var(--muted); }

/* Hero */
.lp-hero { padding: 88px 0 var(--sec-gap); overflow: hidden; }
.lp-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.lp-hero h1 { font-size: 72px; line-height: 1.04; letter-spacing: -0.03em; margin-bottom: var(--sp-6); }
.lp-hero .lp-lead { font-size: 20px; max-width: 520px; }
.lp-cta-row { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-7); }
.lp-hero-points { list-style: none; padding: 0; margin: var(--sp-7) 0 0; display: flex; flex-direction: column; gap: 10px; color: var(--muted); font-size: 15px; }
.lp-hero-points li, .lp-list li { display: flex; align-items: center; gap: 10px; }
.lp-hero-points svg, .lp-list svg { width: 18px; height: 18px; color: var(--nav); flex-shrink: 0; }

.lp-hero-visual { position: relative; padding-bottom: 40px; }
.lp-frame { background: var(--surface); border-radius: var(--r-photo); box-shadow: var(--shadow-frame); overflow: hidden; border: 1px solid var(--border); }
.lp-frame img { display: block; width: 100%; height: auto; }
.lp-frame-desktop { width: 112%; aspect-ratio: 16 / 10; }
.lp-frame-desktop img { height: 100%; object-fit: cover; object-position: left top; }
.lp-frame-phone {
  position: absolute; right: -8px; bottom: 0; width: 34%;
  border-radius: 28px; border: 6px solid var(--nav); aspect-ratio: 390 / 760;
}
.lp-frame-phone img { height: 100%; object-fit: cover; object-position: top; }

/* Sections */
.lp-section { padding: 0 0 var(--sec-gap); }
.lp-section-head { max-width: 720px; margin-bottom: 56px; }
.lp-section h2 { font-size: 40px; line-height: 1.12; letter-spacing: -0.02em; margin-bottom: var(--sp-4); }
.lp h3 { font-size: 22px; line-height: 1.25; margin-bottom: var(--sp-2); }

.lp-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); }
.lp-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card);
  padding: var(--sp-7); transition: box-shadow var(--motion), border-color var(--motion);
}
.lp-card:hover { box-shadow: var(--shadow-lift); border-color: var(--border-hover); }
.lp-card p, .lp-role p { color: var(--muted); font-size: 17px; line-height: 1.5; }
.lp-icon {
  width: 48px; height: 48px; border-radius: var(--r-pill); flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--icon-bg); color: var(--nav); margin-bottom: var(--sp-5);
}
.lp-icon svg { width: 22px; height: 22px; }

/* Showcase */
.lp-showcase-inner { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 64px; align-items: center; }
.lp-list { list-style: none; padding: 0; margin: var(--sp-6) 0 0; display: flex; flex-direction: column; gap: 12px; }
.lp-frame-wide { aspect-ratio: 16 / 10; }
.lp-frame-wide img { height: 100%; object-fit: cover; object-position: left top; }

/* Roles */
.lp-roles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sp-4); }
.lp-role { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: var(--sp-6); }
.lp-role h3 { font-size: 19px; }
.lp-role p { font-size: 15px; }
.lp-phone-pair {
  display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; align-items: center;
  margin-top: 56px; padding: var(--sp-10) var(--sp-12); border-radius: var(--r-card);
  background: var(--icon-bg);
}
.lp-phone-copy h3 { font-size: 28px; margin-bottom: var(--sp-3); }
.lp-phone-copy p { font-size: 19px; color: var(--muted); max-width: 460px; }
.lp-frame-phone-static { position: static; width: 230px; justify-self: center; aspect-ratio: 390 / 800; }
.lp-frame-phone-static img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Steps */
.lp-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); counter-reset: step; }
.lp-steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: var(--sp-7); }
.lp-steps p { color: var(--muted); }
.lp-step-num {
  display: inline-flex; width: 40px; height: 40px; border-radius: var(--r-pill);
  align-items: center; justify-content: center; margin-bottom: var(--sp-5);
  background: var(--nav); color: #FFFFFF; font-weight: 600;
}

/* CTA band */
.lp-cta-band { background: var(--nav); padding: 104px 0; }
.lp-cta-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.lp-cta-band h2 { color: #FFFFFF; font-size: 48px; line-height: 1.1; letter-spacing: -0.02em; max-width: 760px; margin-bottom: var(--sp-4); }
.lp-cta-band p { color: var(--nav-text); font-size: 19px; max-width: 600px; }
.lp-cta-band .lp-cta-row { justify-content: center; }
.lp-btn-inverse { background: #FFFFFF; color: var(--nav); }
.lp-btn-inverse:hover { background: var(--icon-bg); color: var(--nav); }
.lp-btn-ghost-inverse { background: transparent; color: #FFFFFF; border-color: rgba(255,255,255,.28); }
.lp-btn-ghost-inverse:hover { border-color: rgba(255,255,255,.6); color: #FFFFFF; }

/* Footer */
.lp-footer { background: var(--nav); color: var(--nav-text); font-size: 15px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 56px; }
.lp-footer-inner { display: flex; justify-content: space-between; gap: var(--sp-10); flex-wrap: wrap; padding-bottom: 40px; }
.lp-footer p { margin-top: var(--sp-3); max-width: 360px; }
.lp-brand-inverse, .lp-brand-inverse:hover { color: #FFFFFF; }
.lp-brand-inverse .lp-mark { background: rgba(255,255,255,.08); }
.lp-footer-links { display: flex; flex-direction: column; gap: 10px; }
.lp-footer-links a { color: var(--nav-text); display: inline-flex; align-items: center; gap: 10px; }
.lp-footer-links a:hover { color: #FFFFFF; }
.lp-footer-links svg { width: 16px; height: 16px; }
.lp-legal { border-top: 1px solid rgba(255,255,255,.10); padding-top: 20px; padding-bottom: 28px; font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .lp-hero h1 { font-size: 56px; }
  .lp-roles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lp-nav { display: none; }
  .lp-header-actions { margin-left: auto; }
}
@media (max-width: 900px) {
  :root { --gutter: 20px; --sec-gap: 72px; }
  .lp-hero { padding: 48px 0 var(--sec-gap); }
  .lp-hero-inner, .lp-showcase-inner { grid-template-columns: 1fr; gap: 40px; }
  .lp-frame-desktop { width: 100%; }
  .lp-feature-grid, .lp-steps { grid-template-columns: 1fr; }
  .lp-phone-pair { grid-template-columns: 1fr; padding: var(--sp-7); gap: var(--sp-7); }
  .lp-frame-phone-static { margin: 0 auto; }
}
@media (max-width: 640px) {
  .lp { font-size: 16px; }
  .lp-header-inner { min-height: 64px; gap: var(--sp-3); }
  .lp-header-actions .btn-outline { display: none; }
  .lp .btn { min-height: 44px; padding: 0 18px; font-size: 15px; }
  .lp .btn-lg { min-height: 52px; padding: 0 24px; font-size: 16px; width: 100%; }
  .lp-brand { font-size: 16px; }
  .lp-hero h1 { font-size: 40px; }
  .lp-hero .lp-lead, .lp-lead { font-size: 17px; }
  .lp-section h2 { font-size: 30px; }
  .lp-section-head { margin-bottom: 32px; }
  .lp h3 { font-size: 20px; }
  .lp-card, .lp-steps li { padding: var(--sp-6); }
  .lp-card p { font-size: 16px; }
  .lp-roles { grid-template-columns: 1fr; gap: 10px; }
  .lp-role { display: flex; gap: var(--sp-4); align-items: flex-start; padding: var(--sp-5); }
  .lp-role .lp-icon { margin-bottom: 0; width: 40px; height: 40px; }
  .lp-frame-phone { width: 38%; border-width: 4px; border-radius: 20px; right: 0; }
  .lp-cta-band { padding: 72px 0; }
  .lp-cta-band h2 { font-size: 32px; }
  .lp-phone-copy h3 { font-size: 24px; }
  .lp-phone-copy p { font-size: 17px; }
}
