/* ==========================================================================
   LinKo — design system
   Calm, modern learning-platform feel. Brand palette + Manrope, self-hosted.
   ========================================================================== */

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand palette */
  --charcoal: #20231f;
  --deep-blue: #1b4965;
  --deep-blue-dark: #143850;
  --bright-blue: #2a76a6;   /* energetic mid blue for gradients */
  --muted-blue: #5b7896;
  --teal: #15b3a6;          /* vivid turquoise — primary energy accent */
  --teal-deep: #0e8f85;
  --coral: #f2674a;         /* warm spark for momentum */
  --coral-dark: #e0543a;
  --sand: #f1e8d7;
  --cream: #f7f4ee;
  --gold: #edab36;          /* brighter amber */
  --white: #ffffff;

  /* Roles */
  --color-text: var(--charcoal);
  --color-muted: #5c615a;
  --color-bg: var(--cream);
  --color-surface: var(--white);
  --color-border: #e6e0d4;
  --color-accent: var(--deep-blue);

  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --max-width: 70rem;
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --shadow-sm: 0 1px 2px rgba(32, 35, 31, 0.04), 0 2px 8px rgba(32, 35, 31, 0.05);
  --shadow-md: 0 8px 28px rgba(27, 73, 101, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }

a { color: var(--deep-blue); }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Layout helpers ---------------------------------------------------------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.narrow { max-width: 44rem; }
.measure { max-width: 38rem; }
.center { text-align: center; }
.center.narrow,
.center.measure { margin-left: auto; margin-right: auto; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--deep-blue);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 0.5rem 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* Typography -------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--charcoal);
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--teal);
  margin: 0 0 0.75rem;
}

.lead {
  font-size: clamp(1.125rem, 2vw, 1.3rem);
  line-height: 1.55;
  color: var(--color-muted);
}

.section-head { margin-bottom: 2rem; }
.section-head .lead { margin-top: 0.5rem; }

/* Header / nav ------------------------------------------------------------ */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.brand img { display: block; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.nav-list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: var(--charcoal);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.975rem;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--deep-blue);
  border-bottom-color: var(--gold);
}

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: linear-gradient(135deg, var(--deep-blue), var(--bright-blue));
  color: #fff;
}
.btn--primary:hover { background: linear-gradient(135deg, var(--deep-blue-dark), var(--deep-blue)); }

/* Spark — the most energetic CTA, for primary focal actions */
.btn--spark {
  background: linear-gradient(135deg, #1ec7b8, var(--teal-deep));
  color: var(--charcoal);
  box-shadow: 0 6px 18px rgba(21, 179, 166, 0.28);
}
.btn--spark:hover { background: linear-gradient(135deg, #18b3a6, #0b7d74); }

.btn--secondary {
  background: transparent;
  color: var(--deep-blue);
  border-color: var(--deep-blue);
}
.btn--secondary:hover { background: rgba(27, 73, 101, 0.07); }

.btn--gold { background: var(--gold); color: var(--charcoal); }
.btn--gold:hover { background: #d89a2c; }

.btn--ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.12); }

/* "Coming soon" placeholder state for links that aren't live yet */
.btn--soon {
  background: var(--sand);
  color: var(--color-muted);
  cursor: default;
  border-color: transparent;
}
.btn__tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-blue);
  background: rgba(91, 120, 150, 0.14);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

/* Sections ---------------------------------------------------------------- */
.section { padding: clamp(2.75rem, 6vw, 4.5rem) 0; }
.section--tight { padding: clamp(2rem, 4vw, 3rem) 0; }
.section--sand { background: var(--sand); }
.section--white { background: var(--white); }

.section--deep {
  background: linear-gradient(135deg, var(--deep-blue) 0%, var(--teal-deep) 100%);
  color: #fff;
}
.section--deep h1,
.section--deep h2,
.section--deep h3 { color: #fff; }
.section--deep .lead { color: rgba(255, 255, 255, 0.85); }
.section--deep a { color: #fff; }
.section--deep .eyebrow { color: var(--gold); }

/* Hero -------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(58rem 30rem at 88% -12%, rgba(21, 179, 166, 0.20), transparent 62%),
    radial-gradient(46rem 26rem at -6% 112%, rgba(242, 103, 74, 0.16), transparent 60%),
    radial-gradient(40rem 24rem at 50% 120%, rgba(237, 171, 54, 0.10), transparent 60%),
    var(--cream);
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.hero-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 52rem) {
  .hero-inner { grid-template-columns: 1.1fr 0.9fr; }
}

.hero h1 { margin-bottom: 1.25rem; }
.hero .lead { margin-bottom: 1.75rem; max-width: 34rem; }

.hero-media {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: block;
}

/* Linked-circles brand motif --------------------------------------------- */
/* Line icons */
.icon { width: 1.5rem; height: 1.5rem; display: block; }
.token .icon { width: 1.4rem; height: 1.4rem; }
.token--lead { margin-bottom: 1rem; }

/* Pathway graphic */
.pathway {
  display: block;
  width: 100%;
  max-width: 22rem;
  height: auto;
  margin: 2rem 0 0;
}
.pathway circle { fill: var(--cream); }

.motif {
  display: block;
  width: 132px;
  height: 64px;
}
.motif__ring { fill: none; stroke-width: 6; }
.motif__ring--a { stroke: var(--deep-blue); }
.motif__ring--b { stroke: var(--teal); }

.motif--lg { width: 200px; height: 97px; }
.motif--center { margin: 0 auto 1.5rem; }
.motif--gold .motif__ring--a { stroke: var(--gold); }
.motif--gold .motif__ring--b { stroke: #fff; }

.hero-motif {
  position: absolute;
  right: -4rem;
  bottom: -3rem;
  width: 22rem;
  height: auto;
  opacity: 0.5;
  pointer-events: none;
}
@media (max-width: 52rem) { .hero-motif { display: none; } }

/* Cards ------------------------------------------------------------------- */
.cards {
  display: grid;
  gap: 1.5rem;
}
.cards--2 { grid-template-columns: 1fr; }
.cards--3 { grid-template-columns: 1fr; }
.cards--4 { grid-template-columns: 1fr; }

@media (min-width: 40rem) {
  .cards--2 { grid-template-columns: 1fr 1fr; }
  .cards--4 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 60rem) {
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
  .cards--4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card--hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.card h3 { margin-top: 0; }
.card > p:last-of-type { margin-bottom: 1.25rem; }
.card .btn { margin-top: auto; align-self: flex-start; }

.card__top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

/* small numbered / icon token at top of a card */
.token {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  border-radius: 50%;
  background: var(--sand);
  color: var(--deep-blue);
  font-weight: 800;
}
.token--teal { background: rgba(21, 179, 166, 0.18); color: var(--teal-deep); }
.token--gold { background: rgba(237, 171, 54, 0.22); color: #b07d12; }
.token--blue { background: rgba(27, 73, 101, 0.10); color: var(--deep-blue); }
.token--coral { background: rgba(242, 103, 74, 0.16); color: var(--coral-dark); }

.card__eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-blue);
  margin: 0 0 0.35rem;
}

/* Price tag --------------------------------------------------------------- */
.pricetag { margin: 0 0 1.25rem; }
.pricetag__now,
.pricetag__intro {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--deep-blue);
}
.pricetag__was {
  margin-left: 0.5rem;
  color: var(--color-muted);
  text-decoration: line-through;
  font-weight: 600;
}
.section--deep .pricetag__now,
.section--deep .pricetag__intro { color: var(--gold); }
.section--deep .pricetag__was { color: rgba(255, 255, 255, 0.7); }

.tag-free {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal-deep);
  background: rgba(21, 179, 166, 0.16);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
}

/* Pillars ----------------------------------------------------------------- */
.pillar { text-align: left; }
.pillar .token { margin-bottom: 0.85rem; }
.pillar h3 { margin-bottom: 0.35rem; }
.pillar p { color: var(--color-muted); margin: 0; }

/* Founder portrait -------------------------------------------------------- */
.founder-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 52rem) {
  .founder-grid { grid-template-columns: 0.85fr 1.15fr; }
}
.founder-photo {
  position: relative;
  max-width: 22rem;
  justify-self: center;
}
.founder-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 20%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: block;
}
.founder-photo::before {
  content: "";
  position: absolute;
  right: -0.9rem;
  bottom: -0.9rem;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  background: rgba(21, 179, 166, 0.18);
  z-index: 0;
}
.founder-photo::after {
  content: "";
  position: absolute;
  left: -0.9rem;
  top: -0.9rem;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: rgba(237, 171, 54, 0.20);
  z-index: 0;
}

/* Pull quote -------------------------------------------------------------- */
.pullquote {
  border: 0;
  margin: 0;
  padding: 2rem 0 0;
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--deep-blue);
  position: relative;
}
.section--deep .pullquote { color: #fff; }
.pullquote::before {
  content: "";
  display: block;
  width: 3.5rem;
  height: 4px;
  background: linear-gradient(90deg, var(--coral), var(--gold));
  border-radius: 2px;
  margin-bottom: 1.25rem;
}

/* Reflections ------------------------------------------------------------- */
.reflections {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 52rem) { .reflections { grid-template-columns: repeat(3, 1fr); } }

.reflection {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.reflection p { font-size: 1.075rem; font-style: italic; margin-bottom: 0.75rem; }
.reflection cite {
  font-style: normal;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--muted-blue);
}
.reflections-note {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--color-muted);
}

/* Checklist / included list ---------------------------------------------- */
.ticklist {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ticklist li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.85rem;
}
.ticklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 0.8rem no-repeat,
    var(--teal);
}

ul:not(.ticklist):not(.nav-list):not(.signup-notes):not(.footer-nav) {
  padding-left: 1.25rem;
}
li { margin-bottom: 0.4rem; }

/* Definition-style content blocks ---------------------------------------- */
.stack > * + * { margin-top: 1.25rem; }
.prose h2 { margin-top: 2.25rem; }
.prose h2:first-child { margin-top: 0; }

/* Signup form ------------------------------------------------------------- */
.signup-card {
  background: var(--white);
  color: var(--charcoal);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: var(--shadow-md);
  max-width: 38rem;
  margin: 0 auto;
}
.signup-card h2 { color: var(--charcoal); }

.signup-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0 1rem;
}
.signup-form input {
  flex: 1 1 12rem;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--cream);
  font-size: 1rem;
  font-family: inherit;
  color: var(--charcoal);
}
.signup-form input:focus-visible { background: #fff; }
.signup-form .btn { flex: 0 0 auto; }

.signup-notes {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}
.signup-notes li { margin-bottom: 0.25rem; }

/* "What's inside the roadmap" mini list beside the form */
.roadmap-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 52rem) { .roadmap-grid { grid-template-columns: 1fr 1fr; } }

/* Final CTA band ---------------------------------------------------------- */
.cta-band { text-align: center; }
.cta-band .lead { margin: 0 auto 1.75rem; max-width: 36rem; }
.cta-band .motif { margin: 0 auto 1.5rem; }

/* Footer ------------------------------------------------------------------ */
.site-footer {
  background: var(--charcoal);
  color: #cfd2cc;
  padding: 3rem 0 2.25rem;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 44rem) {
  .footer-grid { grid-template-columns: 1.5fr 1fr; }
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--gold); }

.footer-brand { font-size: 1.15rem; font-weight: 800; color: #fff; margin-bottom: 0.4rem; }
.footer-tagline { color: #b6bab2; max-width: 30rem; }

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}
.footer-nav a { text-decoration: none; font-weight: 600; }

.footer-fine {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: #9aa098;
}
.footer-fine p { margin-bottom: 0.5rem; }

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