/* ================================================================
   Elms Sans — variable font voor het OttaNote-wordmark
   (lokaal, OFL, geen externe bronnen)
   ================================================================ */
@font-face {
  font-family: 'Elms Sans';
  src: url('fonts/elms-sans-variable.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}

/* ================================================================
   projectproject.nl — design tokens
   Kleuren afgeleid van het logo (frisgroen + antraciet)
   ================================================================ */
:root {
  --background: #F7F9F3;
  --surface: #EDF0E7;
  --surface-elevated: #FFFFFF;
  --accent: #6FA838;          /* frisgroen uit het logo */
  --accent-soft: #A8CF71;
  --accent-dark: #3F6818;
  --text-primary: #1F2A1A;
  --text-secondary: #4F5C48;
  --text-tertiary: #8A9683;
  --border: #D9E0CF;

  --xxs: 4px;
  --xs: 8px;
  --sm: 12px;
  --md: 16px;
  --lg: 24px;
  --xl: 32px;
  --xxl: 48px;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-brand: 'Fraunces', Georgia, serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #151A14;
    --surface: #1F261E;
    --surface-elevated: #2A322A;
    --accent: #9BC764;
    --accent-soft: #6FA838;
    --accent-dark: #3F6818;
    --text-primary: #EBF0E4;
    --text-secondary: #B0B8A7;
    --text-tertiary: #717A6C;
    --border: #2F382E;
  }
}

/* Handmatige thema-override — wint van de media query */
html[data-theme="light"] {
  --background: #F7F9F3;
  --surface: #EDF0E7;
  --surface-elevated: #FFFFFF;
  --accent: #6FA838;
  --accent-soft: #A8CF71;
  --accent-dark: #3F6818;
  --text-primary: #1F2A1A;
  --text-secondary: #4F5C48;
  --text-tertiary: #8A9683;
  --border: #D9E0CF;
}

html[data-theme="dark"] {
  --background: #151A14;
  --surface: #1F261E;
  --surface-elevated: #2A322A;
  --accent: #9BC764;
  --accent-soft: #6FA838;
  --accent-dark: #3F6818;
  --text-primary: #EBF0E4;
  --text-secondary: #B0B8A7;
  --text-tertiary: #717A6C;
  --border: #2F382E;
}

/* ================================================================
   RESET & BASE
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-padding-top: 80px; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-primary);
  background: var(--background);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { opacity: 0.85; }

h1, h2, h3 { font-family: var(--font-brand); font-weight: 600; line-height: 1.2; }

/* ================================================================
   LAYOUT
   ================================================================ */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--lg);
}

section { padding: var(--xl) 0; }

.section-title {
  font-family: var(--font-brand);
  font-size: 28px;
  color: var(--text-primary);
  margin-bottom: var(--lg);
  text-align: center;
}

/* ================================================================
   NAV
   ================================================================ */
nav {
  padding: var(--md) var(--lg);
  display: flex;
  align-items: center;
  gap: var(--sm);
  max-width: 960px;
  margin: 0 auto;
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--background);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
nav.nav-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

nav .brand {
  display: flex;
  align-items: center;
  gap: var(--xs);
  text-decoration: none;
  color: var(--text-primary);
  margin-right: auto;
}

nav .brand-icon {
  border-radius: var(--radius-sm);
  display: block;
}

nav .brand-name {
  font-family: var(--font-brand);
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
}

nav .theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-secondary);
  transition: color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

nav .theme-toggle:hover { color: var(--accent); }

nav .theme-toggle svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
  text-align: center;
  padding: var(--xxl) var(--lg) var(--xl);
  max-width: 960px;
  margin: 0 auto;
}

.hero-logo {
  width: 140px;
  height: 140px;
  margin: 0 auto var(--lg);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
  background: #fff;
}

.hero-logo img {
  width: 140%;
  height: 140%;
  display: block;
  margin: -20% 0 0 -20%;
}

.hero h1 {
  font-family: var(--font-brand);
  font-size: clamp(36px, 6vw, 54px);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--sm);
  letter-spacing: -0.01em;
}

.hero .tagline {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* ================================================================
   INTRO
   ================================================================ */
.intro {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.intro p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ================================================================
   APP CARDS
   ================================================================ */
.apps {
  display: block;
}

.app-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--lg);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease;
  overflow: hidden;
}

.app-card:hover {
  box-shadow: 0 4px 20px rgba(30, 60, 20, 0.08);
}

/* Details/summary harmonica */
.app-card details > summary {
  list-style: none;
  cursor: pointer;
  padding: var(--lg) var(--xl);
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease;
}
.app-card details > summary::-webkit-details-marker { display: none; }
.app-card details > summary:hover {
  background: var(--surface);
}

.app-card-header {
  display: flex;
  align-items: flex-start;
  gap: var(--md);
}

.app-card-header .app-icon {
  margin-top: 2px;
}

.app-chevron {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  transition: transform 0.25s ease, color 0.15s ease;
}

.app-card details[open] .app-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.app-description-short {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-top: var(--xs);
}

/* Uitgeklapt deel */
.app-expanded {
  padding: 0 var(--xl) var(--xl);
  border-top: 1px solid var(--border);
  padding-top: var(--lg);
}
.app-expanded .app-description {
  margin-bottom: var(--md);
}

.app-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.app-icon-ottanote {
  background: transparent;
  color: #4169E1;
  padding: 0;
  overflow: hidden;
}
.app-icon-ottanote img {
  width: 100%;
  height: 100%;
  display: block;
}

/* OttaNote-wordmark: eigen typografie (Elms Sans), subtiel afgerond kader,
   eerste "o" in royal blue — 1:1 zoals op ottanote.com */
.app-card-title h3.ottanote-wordmark {
  font-family: 'Elms Sans', system-ui, sans-serif;
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text-primary);
  display: inline-block;
  border: 1.5px solid rgba(65, 105, 225, 0.32);
  border-radius: 8px;
  padding: 4px 10px 6px;
  margin-bottom: 6px;
}
.ottanote-wordmark .ott-accent {
  color: #4169E1;
}

.app-icon-pacito {
  background: rgba(237, 155, 124, 0.18);
  color: #ED9B7C;
}

.app-icon-pixamixa {
  background: rgba(63, 104, 24, 0.10);
  color: var(--accent-dark);
}

html[data-theme="dark"] .app-icon-pixamixa {
  color: var(--accent-soft);
}
@media (prefers-color-scheme: dark) {
  .app-icon-pixamixa { color: var(--accent-soft); }
}

.app-card-title h3 {
  font-size: 24px;
  margin-bottom: 2px;
}

.app-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 500;
}

.app-description {
  color: var(--text-secondary);
  margin-bottom: var(--md);
  line-height: 1.65;
}

.app-card-actions {
  display: flex;
  align-items: center;
  gap: var(--md);
  flex-wrap: wrap;
  margin-top: var(--md);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--xs);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover { opacity: 0.9; }
.btn-primary:active { transform: scale(0.98); }

.badge-store {
  font-size: 13px;
  color: var(--text-tertiary);
  font-weight: 500;
  font-style: italic;
}

/* Screenshot-strip — echte screenshots (Pacito) */
.screenshot-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sm);
  margin: var(--md) 0;
}

.screenshot-strip img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  background: var(--surface);
}

/* Screenshot placeholders — PixaMixa */
.screenshot-placeholders {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sm);
  margin: var(--md) 0;
}

.placeholder-shot {
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 500;
  text-align: center;
  padding: var(--xs);
}

/* ================================================================
   PRINCIPES
   ================================================================ */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--md);
}

.principle {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: var(--lg);
  border: 1px solid var(--border);
}

.principle-icon {
  font-size: 28px;
  margin-bottom: var(--xs);
}

.principle h3 {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--xs);
}

.principle p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ================================================================
   CONTACT
   ================================================================ */
.contact {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact p {
  font-size: 17px;
  color: var(--text-secondary);
}

.contact a {
  font-weight: 600;
}

/* ================================================================
   FOOTER
   ================================================================ */
footer {
  border-top: 1px solid var(--border);
  margin-top: var(--xxl);
  padding: var(--lg);
  text-align: center;
  color: var(--text-tertiary);
  font-size: 14px;
}

footer a {
  color: var(--text-secondary);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 560px) {
  .app-card details > summary { padding: var(--md) var(--lg); }
  .app-expanded { padding: var(--lg); padding-top: var(--md); }
  .hero-logo { width: 112px; height: 112px; }
  .section-title { font-size: 24px; }
  .app-icon { width: 52px; height: 52px; }
  .app-icon svg { width: 32px; height: 32px; }
}
