/* ── Landing page — rebuilt 2026-07-12 to match MASTER FLOW mockup
      "1. LANDING PAGE" (see MASTER FLOW/1. LANDING PAGE.png):
      white top bar (logo + LOG IN), grey hero band with copy left and a
      slanted image placeholder right, TRUSTED BY logo strip, white footer.
      Placeholders (.landing-placeholder) mark spots awaiting final assets.
      Depends on shared.css design tokens (--blue, --gray-*, --font).      ── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Top bar ─────────────────────────────────────── */
.landing-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--gray-900);
}

.landing-brand img { height: 40px; width: auto; display: block; }

.landing-brand span {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.landing-brand em { color: var(--red); font-style: normal; }

/* ── Buttons ─────────────────────────────────────── */
.landing-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.landing-btn-primary {
  background: var(--blue);
  color: var(--white);
  border: 2px solid var(--blue);
}
.landing-btn-primary:hover { background: #1447c2; border-color: #1447c2; }

.landing-btn-outline {
  background: var(--white);
  color: var(--blue);
  border: 2px solid var(--blue);
}
.landing-btn-outline:hover { background: #eef3fe; }

.landing-btn-lg { padding: 16px 34px; font-size: 15px; }

/* ── Hero band ───────────────────────────────────── */
.landing-hero {
  flex: 1;
  background: var(--gray-100);
  border-top: 1px solid var(--gray-200);
  padding: 72px 48px 40px;
}

.landing-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 620px);
  gap: 48px;
  align-items: center;
}

.landing-hero-copy h1 {
  line-height: 1.15;
  margin-bottom: 18px;
}

.hero-line-dark {
  display: block;
  color: var(--gray-900);
  font-size: 40px;
  font-weight: 700;
}

.hero-line-blue {
  display: block;
  color: var(--blue);
  font-size: 48px;
  font-weight: 800;
}

.hero-sub {
  color: var(--gray-600);
  font-size: 19px;
  margin-bottom: 36px;
}

.landing-hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Slanted hero media — parallelogram clip like the mockup photo */
.landing-hero-media {
  clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
  min-height: 400px;
  display: flex;
}

/* ── Placeholders (swap for real assets) ─────────── */
.landing-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--gray-200);
  border: 2px dashed var(--gray-400);
  color: var(--gray-600);
  font-weight: 700;
}

.landing-hero-placeholder { flex: 1; min-height: 400px; }
.landing-hero-placeholder .ph-icon { font-size: 42px; }
.landing-hero-placeholder .ph-label { font-size: 15px; }
.landing-hero-placeholder .ph-hint { font-size: 12px; font-weight: 600; color: var(--gray-400); }

/* ── TRUSTED BY strip ────────────────────────────── */
.landing-trusted {
  max-width: 1280px;
  margin: 64px auto 0;
}

.landing-trusted-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 32px;
}

.landing-trusted-title .label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gray-600);
}

.landing-trusted-title .rule {
  width: 70px;
  height: 1px;
  background: var(--gray-400);
}

.landing-trusted-logos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
  align-items: center;
}

.trusted-logo-ph {
  height: 64px;
  border-radius: 6px;
  font-size: 13px;
  background: transparent;
  border: 2px dashed var(--gray-300);
  color: var(--gray-400);
}

/* ── Footer ──────────────────────────────────────── */
/* Footer — 2026-07-12 smoke-test tweaks: font −1 (14→13px), no link
   underlines, layout "Help and contact | Twendeshop © 2026 | Terms". */
.landing-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 24px;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  font-size: 13px;
}

.landing-footer a { color: var(--blue); text-decoration: none; }
.landing-footer a:hover { text-decoration: underline; }
.landing-footer .footer-brand { font-weight: 800; }
.landing-footer .footer-copy { color: var(--gray-600); }
.landing-footer .footer-sep { color: var(--gray-300); }

/* ══════════════════════════════════════════════════
   TERMS & CONDITIONS PAGE (pages/portal/terms.html) — added 2026-07-12.
   Same top bar/footer as the landing page; the body is a TWO-COLUMN
   layout: sticky section index on the left, the terms text on the right.
   Linked from every registration form's "I accept the General Terms and
   Conditions" checkbox and from every page footer.
   ══════════════════════════════════════════════════ */
.terms-titleband {
  background: var(--gray-100);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: 44px 48px;
}
.terms-titleband .inner { max-width: 1280px; margin: 0 auto; }
.terms-titleband h1 { font-size: 38px; font-weight: 800; color: var(--gray-900); }
.terms-titleband p  { font-size: 14px; color: var(--gray-600); margin-top: 6px; }

.terms-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px;
  display: grid;
  grid-template-columns: 280px 1fr;   /* the two columns */
  gap: 56px;
  align-items: start;
  flex: 1;
}

/* Left column — section index */
.terms-toc {
  position: sticky;
  top: 24px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 18px 20px;
  background: var(--white);
}
.terms-toc .toc-title {
  font-size: 12px; font-weight: 800; letter-spacing: 1px;
  color: var(--gray-600); text-transform: uppercase; margin-bottom: 10px;
}
.terms-toc ol { margin: 0; padding-left: 18px; }
.terms-toc li { margin: 7px 0; font-size: 13.5px; }
.terms-toc a { color: var(--blue); text-decoration: none; }
.terms-toc a:hover { text-decoration: underline; }

/* Right column — the terms text */
.terms-content section { margin-bottom: 34px; }
.terms-content h2 {
  font-size: 20px; font-weight: 800; color: var(--gray-900);
  margin-bottom: 10px; padding-top: 6px;
}
.terms-content p, .terms-content li {
  font-size: 15px; line-height: 1.65; color: var(--gray-700); margin-bottom: 10px;
}
.terms-content ul { padding-left: 22px; margin-bottom: 10px; }
.terms-content strong { color: var(--gray-900); }
.terms-accept-note {
  background: #eef3fe; border: 1.5px solid var(--blue); border-radius: 10px;
  padding: 14px 18px; font-size: 14px; color: var(--gray-700);
}

@media (max-width: 900px) {
  .terms-titleband { padding: 30px 20px; }
  .terms-titleband h1 { font-size: 28px; }
  .terms-layout { grid-template-columns: 1fr; padding: 24px 20px; gap: 24px; }
  .terms-toc { position: static; }
}

/* ══════════════════════════════════════════════════
   CONTACTS PAGE (pages/portal/contacts.html) — added 2026-07-12 per the
   Contacts mockup: dark hero with a background-image placeholder and a big
   white "Contacts" heading; three white support cards with a floating blue
   icon badge overlap the hero's bottom edge; same top bar + footer as the
   landing page (this stylesheet is shared by both pages).
   ══════════════════════════════════════════════════ */
.contacts-hero {
  position: relative;
  background: #16181d;                /* dark photo tone from the mockup */
  min-height: 440px;
  padding: 90px 48px 200px;           /* bottom padding = card overlap room */
}

/* Background-image placeholder — swap for the final photo by setting
   background-image on .contacts-hero and deleting this label block. */
.contacts-hero-ph {
  position: absolute;
  inset: 12px;
  border: 2px dashed rgba(255,255,255,0.25);
  border-radius: 8px;
  pointer-events: none;
}
.contacts-hero-ph span {
  position: absolute;
  top: 10px; right: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.45);
}

.contacts-hero h1 {
  position: relative;
  color: var(--white);
  font-size: 64px;
  font-weight: 800;
  max-width: 1280px;
  margin: 0 auto;
}

/* ── Cards row — overlaps the hero via negative top margin ── */
.contact-cards {
  max-width: 1280px;
  margin: -160px auto 0;
  padding: 0 48px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.contact-card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 10px 34px rgba(0,0,0,0.14);
  padding: 0;
  display: flex;
  flex-direction: column;
}

.contact-card-badge {
  width: 60px; height: 60px;
  background: var(--blue);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  margin: -30px 0 0 32px;            /* floats above the card's top edge */
  box-shadow: 0 6px 16px rgba(26,86,232,0.35);
}

.contact-card-body { padding: 22px 32px 26px; flex: 1; }
.contact-card-body h3 { font-size: 20px; font-weight: 700; color: var(--gray-900); margin-bottom: 10px; }
.contact-card-body p  { font-size: 14.5px; color: var(--gray-600); line-height: 1.55; }

.contact-card-links {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  border-radius: 0 0 10px 10px;
  padding: 18px 32px;
  display: flex; flex-direction: column; gap: 12px;
}
.contact-card-links a {
  display: flex; align-items: center; gap: 10px;
  color: var(--blue);
  font-size: 14.5px; font-weight: 600;
  text-decoration: none;
}
.contact-card-links a:hover { text-decoration: underline; }
.contact-card-links svg { flex-shrink: 0; color: var(--gray-700); }

.contacts-below { background: var(--gray-100); padding: 56px 0 64px; flex: 1; }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 900px) {
  .contacts-hero { padding: 56px 20px 150px; min-height: 300px; }
  .contacts-hero h1 { font-size: 40px; }
  .contact-cards { grid-template-columns: 1fr; padding: 0 20px; margin-top: -120px; gap: 44px; }
}

@media (max-width: 900px) {
  .landing-topbar { padding: 14px 20px; }
  .landing-hero { padding: 40px 20px 32px; }
  .landing-hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-line-dark { font-size: 30px; }
  .hero-line-blue { font-size: 36px; }
  .landing-hero-media { min-height: 240px; clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%); }
  .landing-hero-placeholder { min-height: 240px; }
  .landing-trusted-logos { grid-template-columns: repeat(2, 1fr); }
  .landing-footer { flex-wrap: wrap; gap: 10px; }
}
