/* ============================================================
   W Interactive AB — Encrypted Editorial
   Dark charcoal + vibrant purple, matched to the Mind Log app.
   Display: Fraunces (variable serif)
   Body:    Geist (neo-grotesque)
   Mono:    Geist Mono (labels, numerals)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght,SOFT@0,9..144,300..900,0..100;1,9..144,300..900,0..100&family=Geist:wght@300..700&family=Geist+Mono:wght@400;500&display=swap');

:root {
  /* Surfaces */
  --ink:          #0E0E10;
  --ink-deep:     #08080A;
  --surface:      #131316;
  --surface-2:    #1A1A1E;
  --surface-3:    #222228;
  --hairline:     rgba(255, 255, 255, 0.08);
  --hairline-2:   rgba(255, 255, 255, 0.14);

  /* Text */
  --text:         #FFFFFF;
  --text-70:      rgba(255, 255, 255, 0.78);
  --text-50:      rgba(255, 255, 255, 0.58);
  --text-35:      rgba(255, 255, 255, 0.38);

  /* Brand */
  --violet:       #5B4EFF;
  --violet-soft:  #A78BFA;
  --violet-glow:  rgba(91, 78, 255, 0.22);
  --violet-haze:  rgba(91, 78, 255, 0.08);

  /* Motion */
  --ease:         cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-70);
  background: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}

::selection { background: var(--violet); color: #fff; }

a { color: var(--violet-soft); text-decoration: none; transition: color 180ms var(--ease); }
a:hover { color: #fff; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* ================================================================
   HEADER — magazine masthead
   ================================================================ */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 14, 16, 0.82);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  border-bottom: 1px solid var(--hairline);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 22px;
}

.logo {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 19px;
  font-weight: 500;
  font-variation-settings: 'opsz' 12, 'SOFT' 30;
  color: var(--text);
  letter-spacing: -0.01em;
  cursor: default;
}

nav { display: flex; gap: 8px; align-items: center; }
nav a {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-50);
  padding: 10px 14px;
  border-radius: 999px;
  transition: all 180ms var(--ease);
}
nav a:hover { color: var(--text); background: var(--hairline); }
nav a.active {
  color: var(--text);
  background: var(--violet-haze);
  box-shadow: inset 0 0 0 1px rgba(91, 78, 255, 0.35);
}

/* ================================================================
   HERO
   ================================================================ */
main { display: block; }

.hero {
  position: relative;
  padding: 140px 32px 120px;
  max-width: 1240px;
  margin: 0 auto;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: 40%;
  left: -10%;
  width: 720px;
  height: 720px;
  background: radial-gradient(closest-side, var(--violet-glow), transparent 70%);
  filter: blur(20px);
  transform: translate(-10%, -50%);
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: "Nº 01 / Stockholm · Sweden";
  position: absolute;
  top: 60px;
  left: 32px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-35);
  z-index: 1;
}

.hero h1 {
  position: relative;
  z-index: 2;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 340;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
  font-size: clamp(48px, 8.2vw, 128px);
  line-height: 0.94;
  letter-spacing: -0.035em;
  color: var(--text);
  max-width: 14ch;
  margin-bottom: 32px;
}
.hero h1 em {
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'SOFT' 80;
  color: var(--violet-soft);
}

.hero p {
  position: relative;
  z-index: 2;
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-70);
  max-width: 52ch;
  font-weight: 300;
}

/* ================================================================
   CONTENT BLOCKS — editorial two-column
   ================================================================ */
.content {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 32px 120px;
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: section;
}

.content section {
  padding: 72px 0;
  border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 48px;
  counter-increment: section;
  position: relative;
}

.section-title {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-50);
  position: sticky;
  top: 100px;
  align-self: start;
  padding-top: 6px;
}
.section-title::before {
  content: counter(section, decimal-leading-zero);
  display: block;
  margin-bottom: 14px;
  font-size: 42px;
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
  color: var(--violet-soft);
  letter-spacing: -0.02em;
  line-height: 1;
}

.section-content { min-width: 0; }
.section-content > p {
  font-size: 19px;
  line-height: 1.65;
  color: var(--text-70);
  font-weight: 300;
  max-width: 62ch;
  margin-bottom: 20px;
}
.section-content > p:last-child { margin-bottom: 0; }

/* ================================================================
   PRODUCT CARD — Mind Log spotlight
   ================================================================ */
.product-card {
  position: relative;
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color 240ms var(--ease), transform 240ms var(--ease);
}
.product-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(91, 78, 255, 0.55), transparent);
}
.product-card::after {
  content: "";
  position: absolute;
  top: -1px; right: 32px;
  width: 120px; height: 120px;
  background: radial-gradient(closest-side, var(--violet-glow), transparent 70%);
  pointer-events: none;
}

.product-header { padding: 32px 32px 28px; border-bottom: 1px solid var(--hairline); }
.product-link {
  display: flex;
  align-items: center;
  gap: 20px;
  color: inherit;
}
.product-link:hover { color: inherit; }
.product-link:hover .product-name { color: var(--violet-soft); }

.product-icon {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 8px 32px rgba(91, 78, 255, 0.22), 0 0 0 1px var(--hairline-2);
}
.product-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }

.product-title-section { display: flex; flex-direction: column; gap: 4px; }
.product-name {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-variation-settings: 'opsz' 60, 'SOFT' 40;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--text);
  transition: color 180ms var(--ease);
}
.product-tagline {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-50);
}

.product-body { padding: 32px; }
.product-description {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-70);
  font-weight: 300;
  margin-bottom: 18px;
  max-width: 62ch;
}
.product-description:last-of-type { margin-bottom: 32px; }

.product-features {
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
  margin-bottom: 32px;
}
.product-features-title {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-50);
  margin-bottom: 24px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--hairline);
}
.feature-item:nth-child(-n+2) { border-top: none; }
@media (max-width: 759px) {
  .feature-item:nth-child(-n+2) { border-top: 1px solid var(--hairline); }
  .feature-item:first-child { border-top: none; }
}

.feature-icon {
  width: 18px;
  height: 18px;
  color: var(--violet-soft);
  flex-shrink: 0;
}
.feature-text {
  font-size: 15px;
  color: var(--text);
  font-weight: 400;
}

.product-actions { display: flex; justify-content: flex-start; }
.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--violet-haze);
  border: 1px solid rgba(91, 78, 255, 0.35);
  border-radius: 999px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--violet-soft);
}
.coming-soon-badge svg { width: 12px; height: 12px; }

/* ================================================================
   INFO GRID — spec sheet
   ================================================================ */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--hairline);
}
.info-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--hairline);
}
.info-item:nth-child(odd) { padding-right: 24px; }
.info-item:nth-child(even) {
  padding-left: 24px;
  border-left: 1px solid var(--hairline);
}

.info-label {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-50);
  margin-bottom: 10px;
}
.info-value {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 400;
  font-variation-settings: 'opsz' 48;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.35;
}

/* ================================================================
   CONTACT
   ================================================================ */
.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  transition: border-color 200ms var(--ease);
}
.contact-item:hover { border-color: rgba(91, 78, 255, 0.35); }
.contact-item > div:last-child { font-size: 15px; color: var(--text-70); line-height: 1.5; }
.contact-item strong { color: var(--text); font-weight: 500; }
.contact-item a { color: var(--violet-soft); }

.contact-icon {
  width: 36px;
  height: 36px;
  padding: 9px;
  border-radius: 10px;
  background: var(--violet-haze);
  color: var(--violet-soft);
  flex-shrink: 0;
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  margin: 0 12px 12px 0;
  background: var(--text);
  color: var(--ink);
  border: 1px solid var(--text);
  border-radius: 999px;
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.005em;
  transition: all 200ms var(--ease);
}
.btn:hover {
  background: var(--violet);
  color: #fff;
  border-color: var(--violet);
  transform: translateY(-1px);
}
.btn + .btn {
  background: transparent;
  color: var(--text);
  border-color: var(--hairline-2);
}
.btn + .btn:hover {
  background: var(--text);
  color: var(--ink);
  border-color: var(--text);
}

/* ================================================================
   LEGAL PAGES — privacy-policy.html at root
   ================================================================ */
.legal-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 100px 32px 120px;
  color: var(--text-70);
}
.legal-page > h1 {
  font-family: 'Fraunces', serif;
  font-weight: 340;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 32px;
}
.legal-page h1:not(:first-of-type) {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--violet-soft);
  margin-top: 56px;
  margin-bottom: 24px;
}
.legal-page h2 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-variation-settings: 'opsz' 48;
  font-size: 24px;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-top: 48px;
  margin-bottom: 14px;
}
.legal-page h3 {
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: var(--text);
  margin-top: 28px;
  margin-bottom: 10px;
}
.legal-page p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-70);
  font-weight: 300;
  margin-bottom: 16px;
}
.legal-page ul { padding-left: 22px; margin-bottom: 18px; }
.legal-page ul li { font-size: 16px; line-height: 1.7; color: var(--text-70); font-weight: 300; margin-bottom: 6px; }
.legal-page strong { color: var(--text); font-weight: 500; }
.legal-page hr { border: none !important; border-top: 1px solid var(--hairline) !important; margin: 48px 0 !important; }

.legal-page table {
  background: var(--surface) !important;
  border: 1px solid var(--hairline) !important;
  border-radius: 10px;
  border-collapse: separate !important;
  border-spacing: 0;
  overflow: hidden;
  margin: 24px 0 !important;
  width: 100%;
  font-size: 14px;
}
.legal-page table thead tr,
.legal-page table tbody tr {
  background-color: transparent !important;
  border: none !important;
}
.legal-page table tbody tr:nth-child(even) { background-color: rgba(255, 255, 255, 0.02) !important; }
.legal-page table th,
.legal-page table td {
  border: none !important;
  border-bottom: 1px solid var(--hairline) !important;
  padding: 14px 16px !important;
  color: var(--text-70) !important;
  text-align: left !important;
  vertical-align: top;
}
.legal-page table th {
  font-family: 'Geist Mono', monospace !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-50) !important;
  background: rgba(255, 255, 255, 0.02) !important;
}
.legal-page table td strong { color: var(--text) !important; }
.legal-page table tbody tr:last-child td { border-bottom: none !important; }

.legal-page .contact-info {
  margin-top: 64px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 16px;
}
.legal-page .contact-info h2 { margin-top: 0; }

/* ================================================================
   FOOTER
   ================================================================ */
footer {
  background: var(--ink-deep);
  border-top: 1px solid var(--hairline);
  padding: 64px 0 48px;
  margin-top: 40px;
}
footer .container { padding: 0 32px; }

.footer-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer-main {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-variation-settings: 'opsz' 24;
  font-size: 17px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.footer-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-50);
}
.footer-accessibility {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-35);
}
.footer-accessibility p { line-height: 1.5; }
.footer-links {
  display: flex;
  gap: 24px;
  justify-content: flex-end;
}
.footer-links a {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-50);
}
.footer-links a:hover { color: var(--text); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 960px) {
  .content section {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 48px 0;
  }
  .section-title { position: static; }
  .section-title::before {
    display: inline-block;
    margin-right: 14px;
    margin-bottom: 0;
    font-size: 22px;
    vertical-align: -2px;
  }
  .info-grid { grid-template-columns: 1fr; }
  .info-item:nth-child(even) {
    padding-left: 0;
    border-left: none;
  }
  .info-item:nth-child(odd) { padding-right: 0; }
  .footer-content { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .hero { padding: 100px 20px 72px; }
  .hero::after { left: 20px; top: 40px; }
  .content { padding: 20px 20px 80px; }
  header .container { padding-top: 16px; padding-bottom: 16px; }
  nav a { padding: 8px 10px; font-size: 11px; }
  .product-header, .product-body { padding: 24px; }
  .product-icon { width: 56px; height: 56px; border-radius: 13px; }
  .product-name { font-size: 24px; }
  .legal-page { padding: 72px 20px 80px; }
  .legal-page table { font-size: 13px; }
  .legal-page table th, .legal-page table td { padding: 10px 12px !important; }
}
