/* ============================================================
   PeetaBoo — Global Styles
   Video-first, quiet, specific. Dark canvas for the story,
   warm paper for the reading.
   ============================================================ */

/* --- Design tokens ---
   The legacy token names (--color-mint, --space-*, --radius-* …) are kept
   because the inner pages reference them. New tokens are added below. */
:root {
  /* Legacy palette (still used by about/product/blog/contact) */
  --color-mint:        #7ECEC1;
  --color-mint-light:  #B8E6DE;
  --color-mint-pale:   #E8F6F3;
  --color-mint-dark:   #3E9D90;
  --color-peach:       #FF9F7A;
  --color-peach-light: #FFE4D6;
  --color-lavender:    #C4B5E0;
  --color-lavender-light: #E8E0F5;
  --color-blush:       #F2B5C4;

  --color-white:       #FFFFFF;
  --color-off-white:   #FAF8F4;
  --color-cream:       #F4EFE7;
  --color-gray-50:     #F8F7F4;
  --color-gray-100:    #EFECE6;
  --color-gray-200:    #DEDAD2;
  --color-gray-300:    #BDB8AE;
  --color-gray-400:    #918C82;
  --color-gray-500:    #6E6A62;
  --color-gray-600:    #4E4B45;
  --color-gray-700:    #2F2D2A;
  --color-gray-800:    #14151F;
  --color-gray-900:    #0B0C14;

  --color-dark:        #0B0C14;
  --color-text:        #1E1F2B;
  --color-text-light:  #5C5E6C;
  --color-text-muted:  #8A8C9A;
  --color-link:        var(--color-mint-dark);
  --color-bg:          var(--color-white);
  --color-bg-alt:      var(--color-off-white);
  --color-bg-section:  var(--color-cream);

  /* New palette */
  --ink:        #0B0C14;
  --ink-2:      #13141F;
  --ink-3:      #1C1D2B;
  --line-dark:  rgba(255, 255, 255, 0.10);
  --paper:      #F6F3EE;
  --paper-2:    #EFEAE2;
  --line-light: rgba(11, 12, 20, 0.10);
  --on-dark:    #F3F1EC;
  --on-dark-2:  #A9AAB8;
  --coral:      #FF9F7A;
  --coral-deep: #E8744F;
  --mint-bright:#7EE8D2;

  /* Typography */
  --font-display: 'Fraunces', 'Iowan Old Style', 'Georgia', serif;
  --font-heading: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --font-body:    'Inter', -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Radius */
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg:  0 8px 30px rgba(0,0,0,0.10);
  --shadow-xl:  0 16px 50px rgba(0,0,0,0.12);

  /* Motion */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;

  /* Layout */
  --max-width: 1180px;
  --nav-height: 68px;
}

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--color-link); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--color-mint); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--color-gray-800);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); }

p { margin-bottom: var(--space-md); }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ============================================================
   NAVIGATION (shared by every page)
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(11, 12, 20, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line-dark);
  z-index: 1000;
  transition: background var(--transition-base);
}

.navbar.scrolled { background: rgba(11, 12, 20, 0.88); }

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--on-dark);
  text-decoration: none;
}

.nav-logo:hover { color: var(--on-dark); }

.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  flex-shrink: 0;
}

.logo-word {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2rem);
  list-style: none;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--on-dark-2);
  text-decoration: none;
  padding: var(--space-xs) 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1.5px;
  background: var(--coral);
  transition: width var(--transition-base);
}

.nav-links a:hover,
.nav-links a.active { color: var(--on-dark); }

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta {
  background: var(--coral) !important;
  color: var(--ink) !important;
  padding: 9px 18px !important;
  border-radius: var(--radius-full) !important;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  transition: background var(--transition-fast), transform var(--transition-fast) !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  background: #FFB598 !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--on-dark);
  border-radius: var(--radius-full);
  transition: transform var(--transition-base), opacity var(--transition-fast);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 13px 26px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition-base), color var(--transition-base),
              border-color var(--transition-base), transform var(--transition-base);
}

.btn-primary { background: var(--coral); color: var(--ink); }
.btn-primary:hover { background: #FFB598; color: var(--ink); transform: translateY(-1px); }

.btn-secondary { background: transparent; color: var(--on-dark); border-color: rgba(255,255,255,0.22); }
.btn-secondary:hover { border-color: rgba(255,255,255,0.6); color: var(--on-dark); transform: translateY(-1px); }

.btn-ink { background: var(--ink); color: var(--on-dark); }
.btn-ink:hover { background: var(--ink-3); color: var(--on-dark); transform: translateY(-1px); }

.btn-mint { background: var(--color-mint); color: var(--ink); }
.btn-mint:hover { background: var(--color-mint-light); color: var(--ink); transform: translateY(-1px); }

.btn-lg { padding: 16px 32px; font-size: 1.02rem; }

/* ============================================================
   GENERIC SECTIONS (legacy hooks kept for inner pages)
   ============================================================ */
.section { padding: var(--space-4xl) 0; }
.section-alt { background: var(--color-bg-alt); }
.section-cream { background: var(--color-bg-section); }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-3xl);
}

.section-header .overline,
.overline {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-mint-dark);
  margin-bottom: var(--space-md);
}

.section-header p { color: var(--color-text-light); font-size: 1.05rem; }

/* Legacy hero hooks (inner pages don't use these; homepage has its own) */
.hero-badge { display: inline-flex; align-items: center; gap: var(--space-sm); }

/* ============================================================
   CTA BANNER (legacy, used by about.html)
   ============================================================ */
.cta-banner {
  background: var(--ink);
  border-radius: var(--radius-xl);
  padding: var(--space-4xl) var(--space-3xl);
  text-align: center;
  color: var(--on-dark);
  margin: var(--space-3xl) 0;
}

.cta-banner h2 { color: var(--on-dark); margin-bottom: var(--space-md); }
.cta-banner p { color: var(--on-dark-2); max-width: 500px; margin: 0 auto var(--space-2xl); }

/* ============================================================
   FOOTER (shared)
   ============================================================ */
.footer {
  background: var(--ink);
  color: var(--on-dark-2);
  padding: var(--space-3xl) 0 var(--space-xl);
  border-top: 1px solid var(--line-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand .nav-logo { color: var(--on-dark); }
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: var(--space-md);
  color: var(--on-dark-2);
  max-width: 34ch;
}

.footer h4 {
  color: var(--on-dark);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: var(--space-lg);
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: var(--space-sm); }
.footer-links a { color: var(--on-dark-2); font-size: 0.92rem; }
.footer-links a:hover { color: var(--coral); }

.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-top: var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--color-gray-400);
}

.footer-social { display: flex; gap: var(--space-md); }
.footer-social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  color: var(--on-dark-2);
  font-size: 0.85rem;
}
.footer-social a:hover { background: var(--coral); color: var(--ink); }

/* ============================================================
   SCROLL REVEAL — content is visible by default; only hidden
   when JS is confirmed running (html.js), so a cached or failed
   script can never leave the page blank.
   ============================================================ */
html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
html.js .reveal.in { opacity: 1; transform: none; }

/* ============================================================
   INNER PAGES — shared components (product, about, blog, contact)
   ============================================================ */
.page-head {
  background: var(--ink);
  color: var(--on-dark);
  padding: calc(var(--nav-height) + clamp(3rem, 7vw, 5.5rem)) 0 clamp(2.5rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}

.page-head::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(55% 60% at 85% 20%, rgba(255, 159, 122, 0.14) 0%, transparent 70%);
  pointer-events: none;
}

.page-head .container { position: relative; max-width: 900px; margin-left: 0; }

.page-head .overline { color: var(--coral); }

.page-head h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--on-dark);
  margin-bottom: var(--space-lg);
}

.page-head h1 em { font-style: italic; color: var(--coral); }

.page-head .lede {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  color: var(--on-dark-2);
  max-width: 56ch;
  margin: 0;
}

/* Bands */
.band { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.band-paper { background: var(--paper); color: var(--color-text); }
.band-paper-2 { background: var(--paper-2); color: var(--color-text); }
.band-ink { background: var(--ink); color: var(--on-dark); }
.band-ink-2 { background: var(--ink-2); color: var(--on-dark); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }

.band h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}
.band-paper h2, .band-paper-2 h2 { color: var(--ink); }
.band-ink h2, .band-ink-2 h2 { color: var(--on-dark); }

.band h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.45rem;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}
.band-paper h3, .band-paper-2 h3 { color: var(--ink); }
.band-ink h3, .band-ink-2 h3 { color: var(--on-dark); }

.band-paper .overline, .band-paper-2 .overline { color: var(--coral-deep); }
.band-ink .overline, .band-ink-2 .overline { color: var(--mint-bright); }

.lead { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.lead p { font-size: 1.08rem; max-width: 60ch; }
.band-paper .lead p, .band-paper-2 .lead p, .band-paper .prose p, .band-paper-2 .prose p { color: var(--color-text-light); }
.band-ink .lead p, .band-ink-2 .lead p, .band-ink .prose p, .band-ink-2 .prose p { color: var(--on-dark-2); }

.prose { max-width: 62ch; }
.prose p { font-size: 1.02rem; line-height: 1.7; }
.prose p + p { margin-top: var(--space-md); }
.prose strong { font-weight: 600; }
.band-paper .prose strong, .band-paper-2 .prose strong { color: var(--ink); }
.band-ink .prose strong, .band-ink-2 .prose strong { color: var(--on-dark); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  border-radius: 18px;
  padding: clamp(1.2rem, 2.2vw, 1.8rem);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.band-paper .card, .band-paper-2 .card { background: #fff; border: 1px solid var(--line-light); }
.band-ink .card, .band-ink-2 .card { background: var(--ink-2); border: 1px solid var(--line-dark); }
.band-ink-2 .card { background: var(--ink-3); }

.card .idx { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.band-paper .card .idx, .band-paper-2 .card .idx { color: var(--coral-deep); }
.band-ink .card .idx, .band-ink-2 .card .idx { color: var(--mint-bright); }

.card h3 { font-size: 1.35rem; margin: 0; }
.card p { margin: 0; font-size: 0.96rem; line-height: 1.6; }
.band-paper .card p, .band-paper-2 .card p { color: var(--color-text-light); }
.band-ink .card p, .band-ink-2 .card p { color: var(--on-dark-2); }

.card ul { margin: 4px 0 0; padding-left: 0; list-style: none; display: grid; gap: 6px; }
.card ul li { font-size: 0.93rem; line-height: 1.5; padding-left: 18px; position: relative; }
.card ul li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 8px; height: 2px; border-radius: 2px; background: var(--coral); }
.band-paper .card ul li, .band-paper-2 .card ul li { color: var(--color-text-light); }
.band-ink .card ul li, .band-ink-2 .card ul li { color: var(--on-dark-2); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 12px; }
.chips span {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.03em;
  padding: 4px 8px; border-radius: 6px;
}
.band-paper .chips span, .band-paper-2 .chips span { color: var(--color-text-light); border: 1px solid var(--line-light); }
.band-ink .chips span, .band-ink-2 .chips span { color: var(--on-dark-2); border: 1px solid var(--line-dark); }

/* Pipeline row (product page) */
.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}
.flow .node {
  position: relative;
  border-radius: 16px;
  padding: 18px 18px 16px;
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
}
.flow .node .k { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mint-bright); margin-bottom: 8px; }
.flow .node .t { font-family: var(--font-display); font-size: 1.3rem; color: var(--on-dark); line-height: 1.1; margin-bottom: 6px; }
.flow .node .d { font-size: 0.85rem; color: var(--on-dark-2); line-height: 1.5; }
.flow .node:not(:last-child)::after {
  content: '→'; position: absolute; right: -13px; top: 50%; transform: translateY(-50%);
  color: var(--coral); font-size: 1.1rem; z-index: 1;
}

/* Spec table */
.spec { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.93rem; }
.spec th, .spec td { text-align: left; padding: 12px 14px; vertical-align: top; }
.spec th { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; }
.band-paper .spec th, .band-paper-2 .spec th { color: var(--color-text-muted); border-bottom: 1px solid var(--line-light); }
.band-paper .spec td, .band-paper-2 .spec td { border-bottom: 1px solid var(--line-light); color: var(--color-text-light); }
.band-paper .spec td:first-child, .band-paper-2 .spec td:first-child { color: var(--ink); font-weight: 500; }
.band-ink .spec th, .band-ink-2 .spec th { color: var(--on-dark-2); border-bottom: 1px solid var(--line-dark); }
.band-ink .spec td, .band-ink-2 .spec td { border-bottom: 1px solid var(--line-dark); color: var(--on-dark-2); }
.band-ink .spec td:first-child, .band-ink-2 .spec td:first-child { color: var(--on-dark); font-weight: 500; }
.spec .tag { font-family: var(--font-mono); font-size: 0.7rem; padding: 3px 8px; border-radius: 6px; background: rgba(255,159,122,0.14); color: var(--coral-deep); }
.table-wrap { overflow-x: auto; }

/* Timeline (about page) */
.tl { list-style: none; position: relative; padding-left: 0; display: grid; gap: 0; max-width: 760px; }
.tl li { position: relative; display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 18px 0 22px 0; }
.tl li + li { border-top: 1px solid var(--line-light); }
.band-ink .tl li + li, .band-ink-2 .tl li + li { border-top-color: var(--line-dark); }
.tl .when { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; padding-top: 6px; }
.band-paper .tl .when, .band-paper-2 .tl .when { color: var(--coral-deep); }
.band-ink .tl .when, .band-ink-2 .tl .when { color: var(--mint-bright); }
.tl h3 { font-size: 1.3rem; margin-bottom: 4px; }
.tl p { margin: 0; font-size: 0.96rem; line-height: 1.6; }
.band-paper .tl p, .band-paper-2 .tl p { color: var(--color-text-light); }
.band-ink .tl p, .band-ink-2 .tl p { color: var(--on-dark-2); }

/* Promise list (privacy) */
.promises { list-style: none; display: grid; gap: 10px; }
.promises li {
  border-radius: 14px; padding: 16px 18px;
  display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start;
}
.band-paper .promises li, .band-paper-2 .promises li { background: #fff; border: 1px solid var(--line-light); }
.band-ink .promises li, .band-ink-2 .promises li { background: var(--ink-2); border: 1px solid var(--line-dark); }
.promises .ck { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; margin-top: 2px; }
.band-ink .promises .ck, .band-ink-2 .promises .ck { background: var(--coral); }
.promises .ck svg { width: 12px; height: 12px; }
.promises b { display: block; font-weight: 600; margin-bottom: 2px; }
.band-paper .promises b, .band-paper-2 .promises b { color: var(--ink); }
.band-ink .promises b, .band-ink-2 .promises b { color: var(--on-dark); }
.promises span { font-size: 0.93rem; line-height: 1.5; }
.band-paper .promises span, .band-paper-2 .promises span { color: var(--color-text-light); }
.band-ink .promises span, .band-ink-2 .promises span { color: var(--on-dark-2); }

/* FAQ (native <details>) */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: #fff; border: 1px solid var(--line-light); border-radius: 14px; overflow: hidden; }
.faq details[open] { border-color: rgba(232, 116, 79, 0.45); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 16px 18px;
  font-weight: 600; color: var(--ink); font-size: 1rem;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--font-mono); color: var(--coral-deep); font-size: 1.2rem; line-height: 1; transition: transform var(--transition-base); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 18px 18px; color: var(--color-text-light); font-size: 0.96rem; line-height: 1.65; }
.faq .a p { margin: 0; }
.faq .a p + p { margin-top: 10px; }

/* Forms */
.form { display: grid; gap: 14px; }
.form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form label { display: block; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid var(--line-light);
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.98rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form input::placeholder, .form textarea::placeholder { color: var(--color-gray-400); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--coral-deep); box-shadow: 0 0 0 3px rgba(255,159,122,0.25); }
.form textarea { min-height: 140px; resize: vertical; }
.form-ok { display: none; color: var(--coral-deep); font-weight: 500; }
.form.sent { display: none; }
.form.sent + .form-ok { display: block; }

/* Info rows (contact) */
.info { display: grid; gap: 10px; }
.info li { list-style: none; background: #fff; border: 1px solid var(--line-light); border-radius: 14px; padding: 14px 16px; display: grid; grid-template-columns: 1fr; gap: 2px; }
.info .k { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-muted); }
.info .v { color: var(--ink); font-weight: 500; }
.info .v a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 3px; }
.info .v a:hover { color: var(--coral-deep); }

/* Post cards (blog) */
.post { text-decoration: none; }
.post .meta { display: flex; gap: 12px; align-items: center; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted); }
.post .meta .tag { color: var(--coral-deep); }
.post h3 { font-size: 1.6rem; }
.post .foot { margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.72rem; color: var(--color-text-muted); }

/* CTA card (shared) */
.cta-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--line-dark);
  background:
    radial-gradient(70% 90% at 90% 10%, rgba(255, 159, 122, 0.28) 0%, transparent 60%),
    radial-gradient(50% 70% at 10% 100%, rgba(126, 232, 210, 0.10) 0%, transparent 60%),
    var(--ink-2);
  padding: clamp(2.2rem, 5vw, 4.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  color: var(--on-dark);
}
.cta-card h2 { color: var(--on-dark); }
.cta-card p { color: var(--on-dark-2); max-width: 46ch; }
.cta-card .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-card .note { margin-top: 14px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--color-gray-400); letter-spacing: 0.02em; }

/* ============================================================
   RESPONSIVE (shared)
   ============================================================ */
@media (max-width: 1024px) {
  .cards, .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow .node:not(:last-child)::after { display: none; }
  .split, .cta-card { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--ink-2);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-xl);
    gap: var(--space-md);
    border-top: 1px solid var(--line-dark);
    border-bottom: 1px solid var(--line-dark);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .cards, .cards-2, .cards-4, .flow, .form .row { grid-template-columns: minmax(0, 1fr); }
  .tl li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom { flex-direction: column; gap: var(--space-md); text-align: center; }
  .btn-lg { width: 100%; }
  .cta-card .actions .btn { width: 100%; }
}
