/* =========================================================
   The WiFi Dad — Shared Site Styles
   Plain CSS, no framework. Used by every page.
   ========================================================= */

:root {
  /* Color tokens — WiFi Dad blue palette (matches logo) */
  --paper:      #F4F7FB;
  --paper-2:    #E6EEF8;
  --ink:        #0F1E3A;
  --ink-2:      #3F506E;
  --muted:      #8B97AE;
  --line:       #D5DFEE;
  --accent:     #1E78F0;
  --accent-soft:#DCEEFF;
  --safe:       #19A77C;

  /* Type tokens */
  --display: "Bricolage Grotesque", "Schibsted Grotesk", system-ui, sans-serif;
  --body:    "DM Sans", system-ui, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { padding: 0; margin: 0; list-style: none; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.container.narrow { max-width: 820px; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
em.hl { font-style: normal; background: linear-gradient(transparent 60%, var(--accent-soft) 60% 95%, transparent 95%); padding: 0 4px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 10px; font-weight: 600; font-size: 15px; font-family: var(--body); border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.lg { padding: 18px 28px; font-size: 17px; border-radius: 12px; }
.btn.sm { padding: 10px 16px; font-size: 14px; }
.btn.block { width: 100%; justify-content: center; }

.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: 13px; font-weight: 500; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea, .field select { padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); font-family: var(--body); font-size: 15px; color: var(--ink); outline: none; transition: border-color .15s; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); }
.field .hint { font-size: 12px; color: var(--muted); }
.field textarea { min-height: 120px; resize: vertical; }

/* ---------- Nav ---------- */
nav.top { display: flex; align-items: center; justify-content: space-between; padding: 22px 40px; max-width: 1240px; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 19px; font-weight: 700; }
.logo .mark { width: 44px; height: 44px; border-radius: 10px; background: url('assets/logo.png') center/cover no-repeat, var(--accent); font-size: 0; color: transparent; box-shadow: 0 4px 14px -4px rgba(30,120,240,.4); flex: 0 0 auto; }
.nav-links { display: flex; gap: 30px; font-size: 14.5px; color: var(--ink-2); font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.mis-menu { position: relative; }
.mis-menu summary { list-style: none; cursor: pointer; color: var(--ink); font-weight: 700; }
.mis-menu summary::-webkit-details-marker { display: none; }
.mis-menu summary::after { content: "▾"; margin-left: 6px; color: var(--muted); font-size: 11px; }
.mis-menu-panel {
  position: absolute;
  z-index: 20;
  top: calc(100% + 10px);
  left: 0;
  display: grid;
  gap: 8px;
  min-width: 190px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 18px 36px -24px rgba(15,30,58,.55);
}
.mis-menu:not([open]) .mis-menu-panel { display: none; }
.mis-menu-panel a { padding: 7px 8px; border-radius: 8px; white-space: nowrap; }
.mis-menu-panel a:hover,
.mis-menu-panel a.active { background: var(--paper-2); color: var(--ink); }

/* ---------- Hero (homepage) ---------- */
.hero { padding: 30px 0 70px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 70px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5vw, 68px); margin-bottom: 22px; }
.hero .sub { font-size: 19px; color: var(--ink-2); max-width: 500px; margin-bottom: 30px; }
.hero-ctas { display: flex; gap: 12px; align-items: center; margin-bottom: 30px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 22px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.hero-trust span::before { content: "✓"; color: var(--accent); margin-right: 6px; font-weight: 700; }

/* ---------- Page header (simpler) ---------- */
.page-head { padding: 50px 0 40px; }
.page-head .eyebrow { margin-bottom: 14px; }
.page-head h1 { font-size: clamp(40px, 5vw, 64px); margin-bottom: 18px; max-width: 760px; }
.page-head .lead { font-size: 19px; color: var(--ink-2); max-width: 620px; }

/* ---------- Phone mockup (homepage hero) ---------- */
.phone-wrap { position: relative; display: flex; justify-content: center; }
.phone { width: 340px; height: 660px; background: var(--ink); border-radius: 44px; padding: 14px; box-shadow: 0 30px 60px -20px rgba(20,15,5,0.35), 0 0 0 0.5px rgba(255,255,255,0.08) inset; position: relative; }
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 110px; height: 28px; background: #000; border-radius: 20px; z-index: 2; }
.screen { width: 100%; height: 100%; background: var(--paper); border-radius: 32px; overflow: hidden; display: flex; flex-direction: column; position: relative; }
.status { display: flex; justify-content: space-between; padding: 14px 24px 8px; font-size: 12px; font-weight: 600; }
.chat-header { padding: 12px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.chat-header .av { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 14px; }
.chat-header .name { font-weight: 600; font-size: 14px; }
.chat-header .status-text { font-size: 11px; color: var(--safe); }
.messages { flex: 1; padding: 14px 14px 8px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.msg { padding: 9px 12px; border-radius: 14px; font-size: 12.5px; line-height: 1.4; max-width: 82%; animation: rise .5s both; }
.msg.them { background: #E6EEF8; color: var(--ink); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.you  { background: var(--ink); color: var(--paper); border-bottom-right-radius: 4px; align-self: flex-end; }
.msg.screenshot { padding: 6px; background: #E6EEF8; border-radius: 14px; align-self: flex-start; max-width: 86%; }
.msg.screenshot .shot { height: 90px; border-radius: 10px; background: repeating-linear-gradient(135deg, #BCD0EC 0 6px, #AABFE0 6px 12px); display: flex; align-items: flex-end; padding: 6px 8px; color: #3B4A6B; font-size: 10px; font-family: var(--mono); }
.typing { padding: 9px 14px; background: #E6EEF8; border-radius: 14px 14px 14px 4px; align-self: flex-start; display: flex; gap: 4px; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
.input-bar { display: flex; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--line); align-items: center; }
.input-bar .field-fake { flex: 1; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; color: var(--muted); }
.input-bar .send { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: white; display: grid; place-items: center; font-size: 14px; }

@keyframes blink { 0%,80%,100% { opacity: .3; } 40% { opacity: 1; } }
@keyframes rise  { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Ticker ---------- */
.ticker { position: relative; height: 56px; background: var(--ink); color: var(--paper); overflow: hidden; overflow-x: clip; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); contain: inline-size paint; max-width: 100vw; }
.ticker-track { position: absolute; top: 16px; left: 0; display: flex; gap: 50px; white-space: nowrap; animation: scroll 40s linear infinite; font-size: 14px; color: #C5CFE2; font-family: var(--mono); }
.ticker-track > span { display: inline-flex; align-items: center; gap: 10px; }
.ticker-track .dotg { width: 6px; height: 6px; border-radius: 50%; background: var(--safe); }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Generic section ---------- */
section.block { padding: 90px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 48px; gap: 40px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(32px, 4vw, 50px); max-width: 700px; }
.section-head .lead { color: var(--ink-2); font-size: 17px; max-width: 360px; }

/* ---------- Layer cards (homepage + what's included) ---------- */
.layers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.layer { border: 1px solid var(--line); border-radius: 18px; padding: 26px; background: var(--paper); transition: transform .2s, border-color .2s; }
.layer:hover { transform: translateY(-3px); border-color: var(--ink); }
.layer .num { font-family: var(--display); font-size: 56px; line-height: 1; color: var(--accent); margin-bottom: 14px; font-weight: 700; }
.layer h3 { font-size: 24px; margin-bottom: 8px; }
.layer .meta { font-size: 13px; color: var(--muted); margin-bottom: 18px; font-family: var(--mono); }
.layer .shot { border-radius: 10px; height: 140px; margin: 18px 0; background: repeating-linear-gradient(135deg, #DCE7F6 0 8px, #C9D7EC 8px 16px); display: flex; align-items: flex-end; padding: 10px; color: var(--muted); font-family: var(--mono); font-size: 11px; }
.layer ul li { font-size: 14px; color: var(--ink-2); padding: 4px 0; }
.layer li::before { content: "→ "; color: var(--accent); font-weight: 700; }

/* ---------- Compatibility band ---------- */
.compat { padding: 50px 0; background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.compat .container { display: grid; grid-template-columns: 220px 1fr; gap: 30px; align-items: center; }
.compat h4 { font-family: var(--display); font-size: 17px; font-weight: 600; line-height: 1.3; }
.compat .brands { display: flex; flex-wrap: wrap; gap: 10px; }
.compat .brand { padding: 10px 16px; border: 1px solid var(--line); background: var(--paper); border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--ink-2); }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.quote { padding: 26px; border-radius: 18px; background: var(--paper-2); }
.stars { color: var(--accent); margin-bottom: 14px; letter-spacing: 2px; }
.quote p { font-size: 16px; line-height: 1.5; margin-bottom: 20px; font-family: var(--display); font-weight: 500; letter-spacing: -0.01em; }
.author { display: flex; align-items: center; gap: 12px; }
.author .av { width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.author .name { font-weight: 600; font-size: 14px; }
.author .role { font-size: 12px; color: var(--muted); }

/* ---------- Pricing block (dark) ---------- */
.pricing { background: var(--ink); color: var(--paper); padding: 80px 0; }
.pricing .container { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.pricing h2 { font-size: clamp(34px, 4vw, 56px); margin-bottom: 18px; color: var(--paper); }
.pricing .lead { color: #C5CFE2; font-size: 17px; margin-bottom: 28px; max-width: 480px; }
.pricing ul li { font-size: 15px; color: #C5CFE2; padding: 5px 0; }
.pricing li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 10px; }
.pricecard { background: var(--paper); color: var(--ink); border-radius: 20px; padding: 32px; position: relative; }
.pricecard .ribbon { position: absolute; top: -12px; right: 24px; background: var(--accent); color: var(--paper); padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; }
.pricecard .price { display: flex; align-items: baseline; gap: 14px; margin: 12px 0 8px; }
.pricecard .now { font-family: var(--display); font-size: 64px; font-weight: 700; letter-spacing: -0.03em; }
.pricecard .was { font-size: 22px; color: var(--muted); text-decoration: line-through; }
.pricecard .code { font-family: var(--mono); font-size: 13px; color: var(--ink-2); margin-bottom: 22px; }
.pricecard .code b { background: var(--paper-2); padding: 2px 6px; border-radius: 4px; }
.pricecard .terms { margin-top: 14px; font-size: 12px; color: var(--muted); text-align: center; }

/* ---------- FAQ ---------- */
.faq { padding: 90px 0; }
.faq h2 { font-size: clamp(32px, 4vw, 50px); margin-bottom: 40px; max-width: 600px; }
.faq-item { border-top: 1px solid var(--line); padding: 22px 0; display: grid; grid-template-columns: 1fr auto; gap: 30px; font-size: 18px; cursor: pointer; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item .plus { font-family: var(--mono); color: var(--muted); transition: transform .2s; }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-item .answer { display: none; grid-column: 1 / -1; color: var(--ink-2); font-size: 16px; padding-top: 12px; }
.faq-item.open .answer { display: block; }

/* ---------- Footer ---------- */
footer { padding: 60px 0 40px; border-top: 1px solid var(--line); background: var(--paper-2); }
footer .container { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
footer h5 { font-family: var(--display); font-size: 14px; font-weight: 600; margin-bottom: 14px; }
footer ul li { font-size: 14px; color: var(--ink-2); padding: 4px 0; }
footer ul a:hover { color: var(--ink); }

/* ---------- Lesson list (What's Included) ---------- */
.lesson-group { padding: 36px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 280px 1fr; gap: 40px; }
.lesson-group .left .num { font-family: var(--display); font-size: 80px; line-height: 1; color: var(--accent); font-weight: 700; margin-bottom: 8px; }
.lesson-group .left .meta { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-top: 8px; }
.lesson-group h3 { font-size: 32px; margin-bottom: 6px; }
.lesson { display: grid; grid-template-columns: 28px 1fr 90px; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); align-items: center; font-size: 16px; }
.lesson:last-child { border-bottom: none; }
.lesson .ix { font-family: var(--mono); color: var(--muted); font-size: 13px; }
.lesson .name { color: var(--ink); }
.lesson .name small { color: var(--muted); font-size: 13px; display: block; margin-top: 2px; }
.lesson .time { color: var(--muted); font-size: 13px; text-align: right; font-family: var(--mono); }

/* ---------- Lead-magnet form (Free Guide) ---------- */
.magnet { padding: 70px 0; }
.magnet-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.magnet .form-card { background: var(--paper); border: 1.5px solid var(--ink); border-radius: 20px; padding: 32px; box-shadow: 8px 8px 0 var(--accent); }
.magnet .preview { aspect-ratio: 3/4; background: repeating-linear-gradient(135deg, #DCE7F6 0 8px, #C9D7EC 8px 16px); border-radius: 12px; display: flex; flex-direction: column; padding: 36px; color: var(--ink-2); border: 1px solid var(--line); }
.magnet .preview h4 { font-size: 28px; margin-bottom: 16px; }

/* ---------- About / Founder ---------- */
.founder { padding: 70px 0; }
.founder-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; }
.founder .photo { aspect-ratio: 4/5; border-radius: 16px; background: repeating-linear-gradient(135deg, #DCE7F6 0 8px, #C9D7EC 8px 16px); display: flex; align-items: flex-end; padding: 18px; color: var(--muted); font-family: var(--mono); font-size: 12px; }
.founder p { font-size: 18px; color: var(--ink-2); line-height: 1.6; margin-bottom: 16px; }
.founder .signature { font-family: var(--display); font-style: italic; font-size: 24px; color: var(--accent); margin-top: 22px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 50px 0; }
.stat { padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); text-align: center; }
.stat .n { font-family: var(--display); font-size: 56px; font-weight: 700; color: var(--accent); line-height: 1; }
.stat .l { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; padding: 50px 0 90px; align-items: start; }
.contact-meta .row { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-meta .row:last-child { border-bottom: none; }
.contact-meta .row h5 { font-family: var(--display); font-size: 14px; margin-bottom: 6px; }
.contact-meta .row p { color: var(--ink-2); font-size: 15px; }
.contact-form { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 32px; }

/* ---------- Auth (Login) ---------- */
.auth { padding: 80px 0; min-height: 60vh; display: flex; align-items: center; justify-content: center; }
.auth-card { width: 100%; max-width: 440px; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 20px; padding: 36px; box-shadow: 8px 8px 0 var(--accent); }
.auth-card h1 { font-size: 32px; margin-bottom: 8px; }
.auth-card .lead { color: var(--ink-2); margin-bottom: 28px; font-size: 15px; }
.auth-card .footer-link { text-align: center; margin-top: 22px; font-size: 14px; color: var(--muted); }
.auth-card .footer-link a { color: var(--accent); font-weight: 600; }

/* ---------- Checkout ---------- */
.checkout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 40px 0 90px; align-items: start; }
.summary { background: var(--paper-2); border-radius: 18px; padding: 32px; position: sticky; top: 30px; }
.summary .item { display: grid; grid-template-columns: 60px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.summary .item .ico { width: 50px; height: 50px; border-radius: 10px; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-family: var(--display); font-weight: 700; }
.summary .item .name { font-weight: 600; }
.summary .item .desc { font-size: 13px; color: var(--muted); }
.summary .total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 20px; margin-top: 10px; border-top: 2px solid var(--ink); }
.summary .total .n { font-family: var(--display); font-size: 36px; font-weight: 700; }
.summary .coupon { display: flex; gap: 8px; margin: 16px 0 8px; }
.summary .coupon input { flex: 1; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 8px; font-family: var(--mono); font-size: 13px; background: var(--paper); }
.payment-card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 32px; }
.payment-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- Blog ---------- */
.blog-list { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; padding-bottom: 70px; }
.blog-card { border: 1px solid var(--line); border-radius: 18px; padding: 24px; background: var(--paper); transition: transform .15s, border-color .15s; }
.blog-card:hover { transform: translateY(-3px); border-color: var(--ink); }
.blog-card .thumb { aspect-ratio: 16/10; background: repeating-linear-gradient(135deg, #DCE7F6 0 8px, #C9D7EC 8px 16px); border-radius: 12px; margin-bottom: 18px; }
.blog-card .cat { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.blog-card h3 { font-size: 22px; margin-bottom: 8px; }
.blog-card .excerpt { font-size: 14px; color: var(--ink-2); margin-bottom: 14px; }
.blog-card .meta { font-size: 12px; color: var(--muted); font-family: var(--mono); }

/* Post template */
.post { padding: 40px 0 90px; }
.post header { max-width: 760px; margin: 0 auto 40px; }
.post header .cat { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.post header h1 { font-size: clamp(36px, 4.5vw, 56px); margin-bottom: 16px; }
.post header .meta { font-size: 14px; color: var(--muted); display: flex; gap: 14px; }
.post .cover { max-width: 1100px; margin: 0 auto 50px; aspect-ratio: 21/9; border-radius: 16px; background: repeating-linear-gradient(135deg, #DCE7F6 0 8px, #C9D7EC 8px 16px); }
.post .body { max-width: 720px; margin: 0 auto; font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.post .body h2 { font-size: 30px; margin: 40px 0 14px; color: var(--ink); }
.post .body h3 { font-size: 22px; margin: 28px 0 10px; color: var(--ink); }
.post .body p { margin-bottom: 18px; }
.post .body blockquote { border-left: 4px solid var(--accent); padding: 4px 0 4px 20px; font-family: var(--display); font-size: 22px; color: var(--ink); margin: 24px 0; font-style: italic; }
.post .body ul.bullets li { padding: 6px 0; padding-left: 24px; position: relative; }
.post .body ul.bullets li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ---------- Legal pages ---------- */
.legal { padding: 40px 0 90px; }
.legal .container { max-width: 800px; }
.legal h1 { font-size: clamp(36px, 4.5vw, 52px); margin-bottom: 12px; }
.legal .updated { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-bottom: 40px; }
.legal h2 { font-size: 24px; margin: 36px 0 10px; }
.legal p { font-size: 16px; color: var(--ink-2); margin-bottom: 14px; line-height: 1.65; }

/* ---------- Subnav (for legal pages) ---------- */
.subnav { display: flex; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.subnav a { padding: 8px 14px; border-radius: 8px; font-size: 14px; color: var(--ink-2); font-weight: 500; }
.subnav a.active { background: var(--ink); color: var(--paper); }
.subnav a:hover:not(.active) { background: var(--paper-2); color: var(--ink); }

/* =========================================================
   PORTAL / APP layout (member dashboard, lesson viewer,
   account, admin). Lives behind login.
   ========================================================= */

.app { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar { background: var(--paper-2); border-right: 1px solid var(--line); padding: 24px 18px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.sidebar .brand { display: flex; align-items: center; gap: 10px; margin-bottom: 32px; padding: 0 8px; font-family: var(--display); font-weight: 700; font-size: 18px; }
.sidebar .brand .mark { width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-size: 15px; }
.sidebar .group { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 14px 10px 6px; }
.sidebar nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.sidebar nav a:hover { background: var(--paper); color: var(--ink); }
.sidebar nav a.active { background: var(--ink); color: var(--paper); }
.sidebar nav a .ico { width: 18px; height: 18px; display: grid; place-items: center; font-size: 14px; color: var(--accent); }
.sidebar nav a.active .ico { color: var(--paper); }
.sidebar .who { margin-top: auto; padding: 14px 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 10px; }
.sidebar .who .av { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-weight: 700; font-size: 13px; }

.app main { padding: 36px 50px 80px; max-width: 1180px; }
.app main .pageheader { display: flex; justify-content: space-between; align-items: end; margin-bottom: 32px; gap: 30px; flex-wrap: wrap; }
.app main .pageheader h1 { font-size: clamp(30px, 3vw, 40px); margin-bottom: 6px; }
.app main .pageheader .sub { color: var(--ink-2); font-size: 16px; }

/* Progress bar */
.progress { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 24px; margin-bottom: 30px; }
.progress .top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.progress .top .label { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.progress .top .pct { font-family: var(--display); font-size: 28px; font-weight: 700; color: var(--accent); }
.progress .bar { height: 12px; background: var(--paper-2); border-radius: 999px; overflow: hidden; }
.progress .bar .fill { height: 100%; background: var(--accent); border-radius: 999px; transition: width .4s; }
.progress .legend { display: flex; gap: 20px; margin-top: 14px; font-size: 13px; color: var(--ink-2); }
.progress .legend b { color: var(--ink); }

/* Module list */
.modules { display: flex; flex-direction: column; gap: 14px; }
.module { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; display: grid; grid-template-columns: 60px 1fr auto; gap: 18px; align-items: center; transition: border-color .15s, transform .15s; }
.module:hover { border-color: var(--ink); transform: translateY(-2px); }
.module .ix { font-family: var(--display); font-size: 36px; font-weight: 700; color: var(--accent); line-height: 1; }
.module h3 { font-size: 19px; margin-bottom: 4px; }
.module .meta { font-size: 13px; color: var(--muted); font-family: var(--mono); }
.module .status { display: flex; align-items: center; gap: 14px; }
.module .status .pill-status { padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.module .status .pill-status.done { background: color-mix(in srgb, var(--safe) 18%, transparent); color: var(--safe); }
.module .status .pill-status.now { background: var(--accent); color: white; }
.module .status .pill-status.next { background: var(--paper-2); color: var(--ink-2); }

/* Lesson page layout */
.lesson-app { display: grid; grid-template-columns: 240px 1fr 360px; min-height: 100vh; }
.lesson-app main { padding: 36px 50px 80px; max-width: 760px; }
.lesson-app main .crumb { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.lesson-app main h1 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 10px; }
.lesson-app main .lead { color: var(--ink-2); font-size: 17px; margin-bottom: 30px; }
.lesson-step { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 24px; margin-bottom: 16px; }
.lesson-step h3 { font-size: 20px; margin-bottom: 10px; display: flex; align-items: baseline; gap: 12px; }
.lesson-step h3 .step-num { font-family: var(--mono); color: var(--accent); font-size: 14px; }
.lesson-step p { color: var(--ink-2); font-size: 16px; margin-bottom: 12px; line-height: 1.6; }
.lesson-step .screen { aspect-ratio: 16/10; background: repeating-linear-gradient(135deg, #DCE7F6 0 8px, #C9D7EC 8px 16px); border-radius: 10px; margin: 14px 0; display: flex; align-items: flex-end; padding: 10px; color: var(--muted); font-family: var(--mono); font-size: 11px; }
.lesson-controls { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }

.helper { background: var(--paper-2); border-left: 1px solid var(--line); padding: 24px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.helper .h-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.helper .h-head .av { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-family: var(--display); font-weight: 700; }
.helper .h-head .name { font-weight: 600; font-size: 15px; }
.helper .h-head .status { font-size: 12px; color: var(--safe); }
.helper .quick { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.helper .quick button { text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); cursor: pointer; font-family: var(--body); font-size: 13px; color: var(--ink-2); }
.helper .quick button:hover { border-color: var(--ink); }
.helper .h-messages { flex: 1; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; padding-right: 4px; }
.helper .h-msg { padding: 10px 14px; border-radius: 14px; font-size: 13.5px; max-width: 90%; line-height: 1.45; }
.helper .h-msg.them { background: var(--paper); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.helper .h-msg.you { background: var(--ink); color: var(--paper); align-self: flex-end; border-bottom-right-radius: 4px; }
.helper .h-input { display: flex; gap: 6px; padding-top: 14px; border-top: 1px solid var(--line); margin-top: 14px; }
.helper .h-input input { flex: 1; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--body); font-size: 13px; background: var(--paper); }
.helper .h-input button { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: white; border: 0; cursor: pointer; }

/* Account page */
.acct-sections { display: flex; flex-direction: column; gap: 18px; }
.acct-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.acct-card h2 { font-size: 22px; margin-bottom: 6px; }
.acct-card .sub { color: var(--ink-2); font-size: 14px; margin-bottom: 18px; }
.acct-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); align-items: center; }
.acct-row .k { font-size: 13px; color: var(--muted); margin-bottom: 4px; font-family: var(--mono); }
.acct-row .v { font-size: 15px; }
.acct-card.danger { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.acct-card.danger h2 { color: var(--accent); }

.receipts { display: flex; flex-direction: column; gap: 8px; }
.receipt-row { display: grid; grid-template-columns: 100px 1fr 100px auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.receipt-row .date { font-family: var(--mono); color: var(--muted); font-size: 13px; }

/* Admin dashboard */
.admin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 30px; }
.admin-stat { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.admin-stat .label { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.admin-stat .value { font-family: var(--display); font-size: 32px; font-weight: 700; line-height: 1; }
.admin-stat .delta { font-size: 12px; margin-top: 8px; }
.admin-stat .delta.up { color: var(--safe); }
.admin-stat .delta.down { color: var(--accent); }

.admin-grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.admin-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.admin-card .h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.admin-card .h h3 { font-size: 18px; }
.admin-card .h a { font-size: 13px; color: var(--accent); font-weight: 600; }
.admin-table { width: 100%; font-size: 13.5px; }
.admin-table th { text-align: left; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 8px 0; border-bottom: 1px solid var(--line); }
.admin-table td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.admin-table td:last-child, .admin-table th:last-child { text-align: right; }
.admin-table .badge { padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--paper-2); color: var(--ink-2); display: inline-block; }
.admin-table .badge.paid { background: color-mix(in srgb, var(--safe) 18%, transparent); color: var(--safe); }
.admin-table .badge.refunded { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }

/* Email frame (for transactional email mockups) */
.email-frame { background: #ECE6DA; min-height: 100vh; padding: 40px 20px; }
.email-frame .browser { max-width: 600px; margin: 0 auto; background: var(--paper); border-radius: 12px; box-shadow: 0 10px 40px -10px rgba(0,0,0,.15); overflow: hidden; }
.email-frame .browser .bar { padding: 10px 14px; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: center; font-size: 12px; color: var(--muted); font-family: var(--mono); }
.email-frame .browser .bar .dots { display: flex; gap: 5px; }
.email-frame .browser .bar .dots span { width: 9px; height: 9px; border-radius: 50%; background: #e0d8c7; }
.email-frame .email { padding: 40px 36px; }
.email-frame .email .logo-line { display: flex; align-items: center; gap: 10px; padding-bottom: 24px; border-bottom: 1px solid var(--line); margin-bottom: 28px; font-family: var(--display); font-weight: 700; font-size: 17px; }
.email-frame .email .logo-line .mark { width: 28px; height: 28px; border-radius: 7px; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-size: 13px; }
.email-frame .email h2 { font-size: 26px; margin-bottom: 12px; }
.email-frame .email p { font-size: 16px; color: var(--ink-2); margin-bottom: 14px; line-height: 1.6; }
.email-frame .email .cta { display: inline-block; padding: 14px 24px; background: var(--accent); color: white; border-radius: 10px; font-weight: 600; margin: 18px 0; }
.email-frame .email .footer-tiny { padding-top: 24px; border-top: 1px solid var(--line); margin-top: 28px; font-size: 12px; color: var(--muted); }

@media (max-width: 1100px) {
  .lesson-app { grid-template-columns: 220px 1fr; }
  .lesson-app .helper { display: none; }
  .admin-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-grid-2 { grid-template-columns: 1fr; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .container, nav.top { padding-left: 22px; padding-right: 22px; }
  nav.top { flex-wrap: wrap; gap: 10px 12px; }
  nav.top .logo { font-size: 18px; }
  nav.top .btn.sm { padding: 8px 12px; }
  .hero-grid, .pricing .container, .compat .container, footer .container,
  .magnet-grid, .founder-grid, .contact-grid, .checkout-grid { grid-template-columns: 1fr; gap: 40px; }
  .layers, .quotes, .stats, .blog-list { grid-template-columns: 1fr; }
  .nav-links {
    order: 3;
    display: flex;
    width: 100%;
    gap: 18px;
    overflow-x: auto;
    padding: 4px 0 2px;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { flex: 0 0 auto; }
  .ticker { display: none; }
  section.block, .pricing, .faq { padding: 60px 0; }
  .phone { transform: scale(.9); }
  .lesson-group { grid-template-columns: 1fr; gap: 20px; }
}
