/*
 * style.css — landing site shared styles.
 *
 * Design tokens are copied verbatim from the extension's own panel (content/panel.js,
 * the PANEL_CSS constant) so the marketing site and the actual product look like the
 * same thing, not a separately-designed wrapper around it. Colors/radii/shadows/font
 * stack are identical; only the page-level layout (nav, hero, sections) is new.
 *
 * No IKEA logo asset is used anywhere on this site (brand colors only — see the inline
 * heart mark in the header, which is this project's own icon, not IKEA's trademark).
 */

:root {
  color-scheme: light;
  --ikea-blue: #0058A3;
  --ikea-blue-hover: #004F93;
  --ikea-blue-press: #003E72;
  --ikea-yellow: #FFDB00;
  --ink: #111111;
  --ink-secondary: #484848;
  --ink-disabled: #929292;
  --border-disabled: #DFDFDF;
  --surface: #FFFFFF;
  --surface-alt: #F7F8FA;
  --surface-hover: #F5F5F5;
  --offer-red: #CC0008;
  --success: #0A8A00;
  --pill: 999px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --shadow-pop: 0 8px 24px rgba(17, 17, 17, .16);
  --shadow-soft: 0 2px 10px rgba(17, 17, 17, .06);
  --ease: cubic-bezier(.4, 0, .2, 1);
  --max-width: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface-alt);
  color: var(--ink);
  font-family: "Noto IKEA Latin", "Noto Sans", "Noto Sans TC", "Noto Sans SC", "Roboto", "Open Sans", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ---- header / nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-disabled);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 15px; min-width: 0; }
.brand-mark {
  width: 34px; height: 34px; border-radius: var(--pill); background: var(--ikea-blue);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.brand-mark svg { width: 18px; height: 18px; fill: var(--ikea-yellow); }
.brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.nav-spacer { flex: 1; }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a { text-decoration: none; font-size: 13.5px; font-weight: 600; color: var(--ink-secondary); }
.nav-links a:hover { color: var(--ink); }
.lang-select {
  all: unset; box-sizing: border-box; font-size: 12.5px; font-weight: 600; color: var(--ink-secondary);
  padding: 7px 30px 7px 12px; border-radius: var(--pill); box-shadow: inset 0 0 0 1px var(--border-disabled);
  cursor: pointer; background: var(--surface) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23484848" stroke-width="2"><path d="M6 9l6 6 6-6"/></svg>') no-repeat right 9px center / 13px;
  flex: none; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lang-select:hover { box-shadow: inset 0 0 0 1px var(--ink-secondary); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 26px; border-radius: var(--pill); font-size: 14px; font-weight: 700;
  cursor: pointer; text-decoration: none; border: none; transition: transform .2s var(--ease), background .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--ikea-blue); color: #fff; }
.btn-primary:hover { background: var(--ikea-blue-hover); }
.btn-primary:active { background: var(--ikea-blue-press); }
.btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--border-disabled); }
.btn-outline:hover { box-shadow: inset 0 0 0 1.5px var(--ink-secondary); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 12.5px; }

/* ---- hero ---- */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700;
  color: var(--ikea-blue); background: color-mix(in srgb, var(--ikea-blue) 10%, transparent);
  padding: 6px 12px; border-radius: var(--pill); margin-bottom: 18px;
}
.hero h1 { font-size: 42px; line-height: 1.15; margin: 0 0 16px; letter-spacing: -.01em; }
.hero p.lead { font-size: 16px; color: var(--ink-secondary); margin: 0 0 28px; max-width: 46ch; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 14px; }
.hero .fine-print { font-size: 12px; color: var(--ink-disabled); }

/* ---- panel mockup (decorative, mirrors the real extension UI) ---- */
.mockup { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-pop); overflow: hidden; border: 1px solid var(--border-disabled); }
.mockup-head { padding: 18px 18px 14px; border-bottom: 1px solid var(--border-disabled); display: flex; align-items: center; gap: 10px; }
.mockup-head .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-disabled); }
.mockup-head strong { font-size: 14px; }
.mockup-chips { display: flex; gap: 8px; padding: 12px 18px; overflow: hidden; border-bottom: 1px solid var(--border-disabled); }
.mockup-chip { flex: none; font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: var(--pill); box-shadow: inset 0 0 0 1px var(--border-disabled); color: var(--ink-secondary); }
.mockup-chip.active { background: var(--ikea-blue); color: #fff; box-shadow: none; }
.mockup-row { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--border-disabled); }
.mockup-thumb { width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--surface-hover); flex: none; }
.mockup-lines { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.mockup-line { height: 8px; border-radius: 4px; background: var(--border-disabled); }
.mockup-line.short { width: 55%; }
.mockup-price { font-size: 13px; font-weight: 700; color: var(--ink); flex: none; }
.mockup-foot { padding: 16px 18px; display: flex; justify-content: space-between; align-items: baseline; }
.mockup-foot .label { font-size: 12px; color: var(--ink-secondary); }
.mockup-foot .value { font-size: 20px; font-weight: 800; color: var(--ikea-blue); }

/* ---- sections ---- */
section { padding: 56px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head h2 { font-size: 28px; margin: 0 0 10px; }
.section-head p { font-size: 15px; color: var(--ink-secondary); margin: 0; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: var(--surface); border-radius: var(--radius-lg); padding: 26px 22px; box-shadow: var(--shadow-soft); }
.step-num {
  width: 32px; height: 32px; border-radius: var(--pill); background: var(--ikea-yellow); color: var(--ikea-blue-press);
  font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.step h3 { font-size: 16px; margin: 0 0 8px; }
.step p { font-size: 13.5px; color: var(--ink-secondary); margin: 0; line-height: 1.6; }

/* features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--surface); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-soft); }
.feature-icon {
  width: 40px; height: 40px; border-radius: var(--radius-md); background: color-mix(in srgb, var(--ikea-blue) 10%, transparent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.feature-icon svg { width: 20px; height: 20px; stroke: var(--ikea-blue); fill: none; stroke-width: 1.8; }
.feature h3 { font-size: 14.5px; margin: 0 0 6px; }
.feature p { font-size: 13px; color: var(--ink-secondary); margin: 0; line-height: 1.6; }

/* faq */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin: 0 auto; }
.faq-item { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: none; text-align: left; cursor: pointer; color: var(--ink);
  padding: 18px 22px; font-size: 14.5px; font-weight: 700;
}
.faq-q:hover { background: var(--surface-hover); }
.faq-chevron { width: 18px; height: 18px; flex: none; stroke: var(--ink-secondary); transition: transform .25s var(--ease); }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s var(--ease); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a-inner p { margin: 0; padding: 0 22px 18px; font-size: 13.5px; color: var(--ink-secondary); line-height: 1.7; }

/* cta band */
.cta-band { background: var(--ikea-blue); color: #fff; text-align: center; border-radius: var(--radius-lg); margin: 0 24px; padding: 48px 24px; }
.cta-band .wrap { max-width: 640px; padding: 0; }
.cta-band h2 { font-size: 26px; margin: 0 0 12px; }
.cta-band p { font-size: 14.5px; opacity: .9; margin: 0 0 26px; }
.cta-band .btn-primary { background: var(--ikea-yellow); color: var(--ikea-blue-press); }
.cta-band .btn-primary:hover { background: #ffe233; }
.cta-band .btn-outline { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); color: #fff; }
.cta-band .btn-outline:hover { box-shadow: inset 0 0 0 1.5px #fff; }

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--border-disabled); padding: 28px 0; margin-top: 24px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.footer-copyright { font-size: 12px; color: var(--ink-disabled); margin: 0; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-link { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-size: 13px; font-weight: 600; color: var(--ink-secondary); }
.footer-link:hover { color: var(--ink); }
.footer-link-icon { width: 16px; height: 16px; flex: none; }

/* ---- privacy page ---- */
.legal { padding: 48px 0 80px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: 32px; margin: 0 0 6px; }
.legal .updated { font-size: 12.5px; color: var(--ink-disabled); margin: 0 0 32px; }
.legal .intro { background: var(--surface); border-radius: var(--radius-lg); padding: 20px 22px; box-shadow: var(--shadow-soft); font-size: 13.5px; color: var(--ink-secondary); margin-bottom: 36px; line-height: 1.7; }
.legal section { padding: 0; margin-bottom: 30px; }
.legal h2 { font-size: 17px; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 2px solid var(--ikea-blue); }
.legal p { font-size: 14px; color: var(--ink-secondary); line-height: 1.75; margin: 0; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ikea-blue); text-decoration: none; margin-bottom: 28px; }
.back-link:hover { text-decoration: underline; }
.back-link svg { width: 15px; height: 15px; }

/* ---- responsive ---- */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero { padding: 44px 0 40px; text-align: center; }
  .hero .cta-row, .hero .fine-print { justify-content: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .steps, .features-grid { grid-template-columns: 1fr; }
  .nav-links a { display: none; }
  .hero h1 { font-size: 32px; }
  .lang-select { max-width: 120px; }
}

@media (max-width: 480px) {
  .brand { font-size: 12px; }
  .brand-name { max-width: 34vw; }
  .lang-select { max-width: 96px; }
}
