
:root {
  --brand: #0F766E;
  --ink: #1a1a1a;
  --ink-inverse: #f7f7f7;
  --bg: #ffffff;
  --bg-muted: #f6f7f9;
  --border: #e6e8eb;
  --accent: #255ff4;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(0,0,0,.08);
  --maxw: 1120px;
}
:root[data-theme="dark"] {
  --bg: #0f0f11;
  --bg-muted: #151618;
  --ink: #f2f3f5;
  --border: #2a2c31;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin:0; padding:0; background: var(--bg); color: var(--ink); font: 16px/1.6 Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }

/* Layout */
.container { max-width: var(--maxw); margin: 0 auto; padding: 28px 20px; }
.header { position: sticky; top:0; backdrop-filter: blur(8px); background: color-mix(in oklab, var(--bg), transparent 20%); border-bottom: 1px solid var(--border); z-index: 10; }
.nav { display:flex; align-items:center; gap:18px; padding:12px 20px; max-width: var(--maxw); margin:0 auto; }
.nav a { text-decoration:none; color: var(--ink); opacity:.9; }
.nav a:hover { opacity:1; }
.brand { display:flex; align-items:center; gap:10px; font-weight:700; }
.brand .dot { width:12px; height:12px; border-radius:50%; background: var(--brand); box-shadow: 0 0 0 6px color-mix(in oklab, var(--brand), transparent 80%); }

.hero { padding: 56px 0 24px; }
.hero h1 { font-size: clamp(28px, 5vw, 44px); line-height:1.15; margin:0 0 12px; letter-spacing: -0.012em; }
.kicker { color: #6a6b6e; max-width: 68ch; }

.card-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap:16px; margin-top:18px; }
.card { background: var(--bg-muted); border:1px solid var(--border); border-radius: var(--radius); padding:18px; box-shadow: var(--shadow); text-decoration: none; color: inherit; }
.card h3 { margin:0 0 6px; font-size:18px; }
.chip { display:inline-block; padding:4px 10px; border-radius:999px; font-size:12px; background: var(--brand); color:#fff; }

.footer { border-top:1px solid var(--border); margin-top:40px; padding:20px; color:#7a7b7e; }
.btn { display:inline-flex; align-items:center; gap:8px; padding:10px 14px; border-radius:12px; border:1px solid var(--border); background:#fff; color:#111; text-decoration:none; }
.btn:hover { border-color: color-mix(in oklab, var(--brand), var(--border) 60%); }

/* Forms */
input, textarea { background: #fff; color: var(--ink); }
:root[data-theme="dark"] input, :root[data-theme="dark"] textarea { background:#0e0f11; color: var(--ink); }

/* Accessibility helpers */
.skip-link { position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden; }
.skip-link:focus { position:static; width:auto; height:auto; padding:8px; background:#fff; color:#000; border-radius:10px; }

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}


/* --- Brand Lockup Styles --- */
.lockup { margin-top: 8px; }
.lockup h1 { 
  font-size: clamp(30px, 5.6vw, 52px); 
  line-height: 1.1; 
  margin: 6px 0 8px; 
  letter-spacing: -0.012em; 
}
.lockup .brand-name { font-weight: 800; }
.lockup .brand-sep { opacity: .6; }
.lockup .brand-concept { color: var(--brand); font-weight: 600; }
.lockup .subline { color: #6a6b6e; max-width: 72ch; margin-top: 6px; }
.lockup .rule { height: 1px; background: color-mix(in oklab, var(--brand), var(--border) 60%); margin: 10px 0 0; border-radius: 1px; }
@media (prefers-color-scheme: dark) {
  .lockup .subline { color: #9a9ca0; }
}


/* --- Style refinements inspired by Architecture of Transition --- */

/* Hero section with brand orange background and white text */
.hero.hero-orange {
  background-color: var(--brand);
  color: #fff;
}
.hero.hero-orange .subline { color: #f4f4f5; }

/* Card hover lift with brand border accent */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px -5px rgba(17,94,89,0.1);
  border-color: var(--brand);
}

/* Proposition-style block with brand left border */
.proposition {
  border-left: 4px solid var(--brand);
  background-color: #fff;
  padding: 1.2rem;
  border-radius: 0 0.6rem 0.6rem 0;
  margin-bottom: 1rem;
}

/* Sticky nav active link highlight */
.nav a.active {
  color: var(--brand);
  border-bottom: 2px solid var(--brand);
}
.nav a {
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: color 0.3s ease, border-bottom-color 0.3s ease;
}


/* ==== Uploaded Style Alignment Enhancements ==== */

/* Nav underline hover + active state */
.nav a { 
  text-decoration: none; 
  color: var(--ink); 
  opacity:.9; 
  border-bottom: 2px solid transparent; 
  padding-bottom: 2px;
  transition: color .25s ease, border-bottom-color .25s ease, opacity .25s ease;
}
.nav a:hover, .nav a.active { 
  opacity: 1; 
  color: var(--brand); 
  border-bottom-color: var(--brand); 
}

/* Brand hero (burnt orange background, white text) */
.hero--brand {
  background: var(--brand);
  color: #fff;
  border-bottom: 1px solid color-mix(in oklab, #000, transparent 85%);
  border-top: 1px solid color-mix(in oklab, #000, transparent 92%);
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.06);
}
.hero--brand .kicker { color: rgba(255,255,255,.85); }
.hero--brand a { color: #fff; text-decoration: underline; }
.hero--brand .chip { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.22); }
:root[data-theme="dark"] .hero--brand { 
  /* Keep brand hero readable in dark mode */
  background: color-mix(in oklab, var(--brand), #000 15%);
}

/* Card hover lift + brand accent border */
.card {
  transition: transform .25s ease, box-shadow .3s ease, border-color .25s ease, background-color .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px -6px rgba(190,77,45,.18);
  border-color: var(--brand);
  background-color: #fff;
}
:root[data-theme="dark"] .card:hover {
  background-color: #0e0f11;
}

/* Proposition card style (left brand bar) */
.proposition-card {
  border-left: 4px solid var(--brand);
  background: #fff;
  color: var(--ink);
  border-radius: 10px;
  padding: 16px;
  border: 1px solid var(--border);
  border-left-color: var(--brand);
}
:root[data-theme="dark"] .proposition-card {
  background: #0f1013;
}

/* Step connector (for vertical step diagrams) */
.step-connector {
  width: 2px;
  background-color: color-mix(in oklab, var(--ink), transparent 85%);
  position: absolute;
  left: 2rem;
  top: 2rem;
  bottom: -2rem;
  transform: translateX(-50%);
}

/* Content reveal utilities */
.content-hidden { 
  max-height: 0;
  overflow: hidden;
  transition: max-height .6s cubic-bezier(0.4, 0, 0.2, 1), padding .6s ease, margin .6s ease;
  padding-top: 0; padding-bottom: 0; margin-top: 0;
}
.content-visible {
  max-height: 1000px;
  transition: max-height .8s cubic-bezier(0.4, 0, 0.2, 1), padding .6s ease, margin .6s ease;
}

/* Button stronger contrast on brand bg */
.hero--brand .btn {
  background: #fff;
  color: var(--brand);
  border-color: rgba(255,255,255,.3);
}
.hero--brand .btn:hover {
  filter: brightness(0.95);
}


/* Dark tweak */
:root[data-theme="dark"] .card { background: #151618; border-color: #2a2c31; }
:root[data-theme="dark"] .footer { color: #a6a8ad; }
:root[data-theme="dark"] .chip { background: rgba(255,255,255,.12); color: #fff; }


/* --- Identity polish --- */
.pill { display:inline-flex; align-items:center; padding:6px 10px; border-radius:999px; font-size:12px; background: var(--bg-muted); border:1px solid var(--border); color: var(--ink); }
.header { background: color-mix(in oklab, var(--bg), transparent 6%); }
html, body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* Hero refinement */
.hero { padding: 64px 0 28px; }
.hero h2, .hero h1 { letter-spacing: -0.015em; }
.hero--brand { background: var(--brand); color: #fff; }
.hero--brand .subline { color: rgba(255,255,255,.9); }
.hero--brand .rule { opacity: .35; }

/* Card polish */
.card { border-radius: 20px; }
.card h3 { letter-spacing: -0.012em; }

/* Link underlines more subtle */
a { text-underline-offset: 2px; text-decoration-thickness: .08em; }


/* Concept visibility on brand hero */
.hero--brand .brand-concept { color: rgba(255,255,255,.95); font-weight: 700; }

/* Paper-like hero (centered, big type) */
.hero--paper { text-align: center; }
.hero--paper .lockup h1 { font-size: clamp(36px, 6.5vw, 64px); }
.hero--paper .subline { max-width: 70ch; margin: 10px auto 0; }


/* --- Mobile polish --- */
@media (max-width: 680px) {
  .nav { flex-wrap: wrap; gap: 10px; }
  .nav a.brand { flex-basis: 100%; }
  .hero { padding: 42px 0 18px; }
  .card-grid { grid-template-columns: 1fr; }
}

/* Concept styling: smaller, spaced, distinct */
.lockup .brand-name { font-weight: 800; }
.lockup .brand-concept { 
  font-weight: 600; 
  opacity: .95; 
  letter-spacing: .02em; 
  font-size: clamp(18px, 2.6vw, 34px);
}

/* Make concept white on brand hero for contrast */
.hero--brand .brand-concept { color: rgba(255,255,255,.96); }


/* ---- Brand gradient hero (pixel-match style) ---- */
.hero--brand-gradient {
  background: linear-gradient(180deg, #0F766E 0%, #115E59 48%, #0E5C56 100%);
  color: #fff;
}
.hero--brand-gradient .rule { opacity: .30; }
.hero--brand-gradient .subline { color: rgba(255,255,255,.92); }

/* Subpage compact hero */
.hero--compact { padding: 36px 0 18px; }
.hero--compact .lockup h1 { font-size: clamp(28px, 5vw, 44px); }
.hero--compact .subline { max-width: 70ch; }

/* Safe text padding in heroes */
.hero .lockup { padding-inline: clamp(12px, 4vw, 24px); }


/* Muted footer link for Install */
.muted-link { color: var(--ink-quiet, #6b7280); text-decoration: none; }
.muted-link:hover { text-decoration: underline; color: var(--ink); }
