/* =========================================================
   The WiFi Dad — Homepage styles (move to styles.css)
   Plain CSS, no framework.
   ========================================================= */

: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; }
.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); }

/* 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); }

/* Hero */
.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; }

/* Phone mockup */
.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; }
.router-preview { width: 210px; max-width: 90%; padding: 6px; border: 1px solid rgba(213,223,238,.95); border-radius: 16px; background: #FFF; box-shadow: 0 14px 28px -24px rgba(15,30,58,.65); animation: rise .5s both; }
.router-preview img { width: 100%; height: 118px; border-radius: 11px; object-fit: cover; object-position: center top; }
.router-preview span { display: block; padding: 7px 4px 2px; color: var(--ink-2); font-family: var(--mono); font-size: 10px; }
.msg.screenshot { padding: 6px; background: #E6EEF8; border-radius: 14px; align-self: flex-start; max-width: 88%; }
.msg.screenshot img { width: 190px; height: 118px; border-radius: 10px; object-fit: cover; object-position: center top; box-shadow: 0 8px 18px -14px rgba(15,30,58,.65); }
.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 { background: var(--ink); color: var(--paper); padding: 16px 0; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ticker-track { 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%); } }

/* Sections */
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 */
.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 { width: 100%; height: 160px; margin: 18px 0; border: 1px solid rgba(213,223,238,.9); border-radius: 12px; object-fit: cover; object-position: center; background: #DCE7F6; box-shadow: 0 18px 34px -30px rgba(15,30,58,.7); }
.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 (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); }

/* Responsive */
@media (max-width: 900px) {
  .container, nav.top { padding-left: 22px; padding-right: 22px; }
  .hero-grid, .pricing .container, .compat .container, footer .container { grid-template-columns: 1fr; gap: 40px; }
  .layers, .quotes { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  section.block, .pricing, .faq { padding: 60px 0; }
  .phone { transform: scale(.9); }
}
