/* ==========================================================================
   GP Note — Marketing & Distribution Static Site Stylesheet
   Palette derived from gpnote_icon3.png & GP Note desktop app tokens:
   - Petrol Teal: #034F6D / #005779
   - Warm Cream:  #FAF3E6
   - Amber Cross: #F5B747
   - Sage Canvas: #F3F5F2
   ========================================================================== */

:root {
  --teal-950: #012a3b;
  --teal-900: #023b52;
  --teal-800: #034f6d;
  --teal-700: #005779;
  --teal-600: #0d6f94;
  --teal-100: #e0eff5;
  --teal-50: #eff7fa;

  --cream-50: #fdfaf4;
  --cream-100: #faf3e6;
  --cream-200: #f2e4ca;

  --amber-400: #f5b747;
  --amber-500: #e09f2d;
  --amber-100: #fef3dc;

  --bg: #f3f5f2;
  --surface: #ffffff;
  --surface-soft: #f8faf8;
  --text: #16211b;
  --text-secondary: #3e4d43;
  --muted: #5a695f;
  --border: #dbe2dc;
  --border-strong: #c5d0c7;

  --success: #1b7a4b;
  --success-soft: #e6f5ed;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 3px rgba(2, 59, 82, 0.06), 0 1px 2px rgba(2, 59, 82, 0.04);
  --shadow-md: 0 10px 28px rgba(2, 59, 82, 0.08), 0 2px 8px rgba(2, 59, 82, 0.04);
  --shadow-lg: 0 22px 50px rgba(2, 59, 82, 0.14);

  --font-sans: "Plus Jakarta Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--teal-700);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--amber-400);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243, 245, 242, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(219, 226, 220, 0.85);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--teal-900);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.94rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--surface);
  color: var(--teal-800);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--teal-900);
  cursor: pointer;
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--teal-800);
  color: var(--cream-50);
  box-shadow: 0 6px 18px rgba(3, 79, 109, 0.24);
}

.btn-primary:hover {
  background: var(--teal-900);
}

.btn-amber {
  background: var(--amber-400);
  color: var(--teal-950);
  box-shadow: 0 6px 18px rgba(245, 183, 71, 0.28);
}

.btn-amber:hover {
  background: var(--amber-500);
}

.btn-secondary {
  background: var(--surface);
  color: var(--teal-900);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--cream-50);
  border-color: var(--teal-700);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.86rem;
}

.eyebrow {
  display: block;
  color: var(--teal-700);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dark-band .eyebrow {
  color: var(--amber-400);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  padding: 64px 0 72px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 48px;
  align-items: center;
}

.hero-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(2.25rem, 4.1vw, 3.35rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--teal-950);
}

.hero-copy h1 span {
  color: var(--teal-700);
}

.hero-lead {
  margin: 0 0 28px;
  font-size: 1.12rem;
  color: var(--text-secondary);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.trust-item svg {
  flex-shrink: 0;
  color: var(--teal-700);
}

.hero-visual {
  position: relative;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 14px;
  box-shadow: var(--shadow-lg);
}

.hero-card img {
  border-radius: var(--radius-lg);
  width: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Section Framing
   ========================================================================== */

.section {
  padding: 76px 0;
}

.section-soft {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  max-width: 680px;
  margin-bottom: 44px;
}

.section-header.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  margin: 12px 0 12px;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--teal-950);
}

.section-header p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

/* ==========================================================================
   Problem / Promise Strip
   ========================================================================== */

.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.promise-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.promise-card h3 {
  margin: 14px 0 8px;
  font-size: 1.1rem;
  color: var(--teal-900);
}

.promise-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.icon-box {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  color: var(--teal-800);
  display: grid;
  place-items: center;
}

.icon-box.amber {
  background: var(--amber-100);
  border-color: #f6dfad;
  color: #9a6509;
}

/* ==========================================================================
   Feature Bento Grid
   ========================================================================== */

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal-600);
}

.feature-card h3 {
  margin: 4px 0 0;
  font-size: 1.16rem;
  color: var(--teal-950);
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.feature-meta {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--teal-700);
}

/* ==========================================================================
   Privacy & Local Pipeline Section
   ========================================================================== */

.privacy-split {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 48px;
  align-items: center;
}

.privacy-visual-frame {
  background: var(--cream-50);
  border: 1px solid var(--cream-200);
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: var(--shadow-md);
}

.privacy-visual-frame img {
  border-radius: var(--radius-lg);
}

.pipeline-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pipeline-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.pipeline-step.active,
.pipeline-step:hover {
  background: var(--surface);
  border-color: var(--teal-700);
  box-shadow: var(--shadow-sm);
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--teal-800);
  color: var(--cream-50);
  font-weight: 800;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.pipeline-step.active .step-num {
  background: var(--amber-400);
  color: var(--teal-950);
}

.pipeline-step h4 {
  margin: 0 0 4px;
  font-size: 1rem;
  color: var(--teal-950);
}

.pipeline-step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ==========================================================================
   Dark Petrol-Teal Architecture / Security Band
   ========================================================================== */

.dark-band {
  background: linear-gradient(145deg, var(--teal-950) 0%, var(--teal-800) 100%);
  color: var(--cream-50);
  padding: 80px 0;
}

.dark-band .section-header h2 {
  color: var(--cream-50);
}

.dark-band .section-header p {
  color: var(--cream-200);
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.security-tile {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(250, 243, 230, 0.14);
  border-radius: var(--radius-md);
  padding: 22px;
}

.security-tile strong {
  display: block;
  font-size: 1.02rem;
  color: var(--amber-400);
  margin-bottom: 8px;
}

.security-tile p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--cream-100);
}

/* ==========================================================================
   CTA Banner
   ========================================================================== */

.cta-banner {
  background: var(--cream-100);
  border: 1px solid var(--cream-200);
  border-radius: var(--radius-xl);
  padding: 46px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: var(--shadow-md);
}

.cta-banner h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--teal-950);
}

.cta-banner p {
  margin: 0;
  color: var(--text-secondary);
  max-width: 560px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

/* ==========================================================================
   Download Page
   ========================================================================== */

.page-hero {
  padding: 54px 0 36px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--cream-50) 0%, var(--bg) 100%);
}

.page-hero h1 {
  margin: 14px 0 10px;
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  letter-spacing: -0.025em;
  color: var(--teal-950);
}

.page-hero p {
  margin: 0;
  color: var(--text-secondary);
  max-width: 680px;
  font-size: 1.05rem;
}

.download-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 28px;
  align-items: start;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.card h2,
.card h3 {
  margin-top: 0;
  color: var(--teal-950);
}

.release-badge {
  display: inline-block;
  color: var(--success);
  font-size: 0.9rem;
  font-weight: 700;
}

.hash-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--teal-900);
  overflow-x: auto;
}

.copy-btn {
  flex-shrink: 0;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--teal-900);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.copy-btn:hover {
  background: var(--teal-50);
}

.spec-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.spec-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.spec-list span {
  color: var(--muted);
}

.spec-list strong {
  color: var(--teal-950);
  text-align: right;
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.data-table th,
.data-table td {
  padding: 13px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  color: var(--teal-900);
  font-weight: 700;
  background: var(--surface-soft);
}

.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
  margin-bottom: 12px;
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--teal-950);
  cursor: pointer;
  text-align: left;
}

.accordion-panel {
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 0.93rem;
}

/* ==========================================================================
   User Guide Roadmap Page
   ========================================================================== */

.guide-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 32px;
  align-items: start;
}

.guide-sidebar {
  position: sticky;
  top: 96px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.guide-sidebar h3 {
  margin: 0 0 12px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.guide-toc {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.guide-toc a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
}

.guide-toc a:hover {
  background: var(--teal-50);
  color: var(--teal-800);
  text-decoration: none;
}

.status-banner {
  background: var(--cream-100);
  border: 1px solid var(--cream-200);
  border-left: 5px solid var(--amber-400);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 24px;
}

.status-banner h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  color: var(--teal-950);
}

.status-banner p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.chapter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.chapter-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
}

.chapter-tag {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal-700);
  margin-bottom: 8px;
}

.chapter-card h3 {
  margin: 0 0 8px;
  font-size: 1.06rem;
  color: var(--teal-950);
}

.chapter-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ==========================================================================
   Legal & Compliance Pages
   ========================================================================== */

.legal-container {
  max-width: 820px;
}

.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  box-shadow: var(--shadow-sm);
}

.legal-card h2 {
  margin: 28px 0 10px;
  font-size: 1.24rem;
  color: var(--teal-950);
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p,
.legal-card li {
  color: var(--text-secondary);
  font-size: 0.96rem;
}

.legal-card ul {
  padding-left: 20px;
}

.legal-meta {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 10px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--teal-950);
  color: var(--cream-100);
  padding: 56px 0 36px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(250, 243, 230, 0.14);
}

.footer-brand p {
  margin: 12px 0 0;
  font-size: 0.9rem;
  color: var(--cream-200);
  max-width: 320px;
}

.site-footer h4 {
  margin: 0 0 14px;
  font-size: 0.92rem;
  color: var(--amber-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: var(--cream-100);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--amber-400);
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--cream-200);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 980px) {
  .hero-grid,
  .privacy-split,
  .download-grid,
  .guide-layout {
    grid-template-columns: 1fr;
  }

  .bento-grid,
  .promise-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .security-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-float-badge {
    position: static;
    margin-top: 14px;
    max-width: none;
  }

  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px;
  }
}

@media (max-width: 720px) {
  .nav-links,
  .header-actions .btn {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--surface);
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  .menu-toggle {
    display: inline-flex;
  }

  .bento-grid,
  .promise-grid,
  .security-grid,
  .chapter-grid,
  .footer-grid,
  .trust-strip {
    grid-template-columns: 1fr;
  }
}
