:root {
  --bg: #f5f0fa;
  --accent: #ff9428;
  --accent2: #7348b8;
  --text: #1f142e;
  --muted: #736694;
  --card: #fdfbff;
  --border: rgba(115, 72, 184, 0.18);
  --cork: #c9a66b;
  --note-shadow: rgba(31, 20, 46, 0.12);
  font-family: "SF Pro Text", system-ui, -apple-system, Segoe UI, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(ellipse at 20% 0%, #e8dcff 0%, var(--bg) 45%, #fff5eb 100%);
  color: var(--text);
  line-height: 1.55;
}

.shell {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  min-height: 100vh;
}

.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  background: linear-gradient(180deg, #2a1845, #4a2d78);
  color: #f3ecff;
  padding: 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  z-index: 20;
}

.rail-brand {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  opacity: 0.85;
}

.rail-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
}

.rail-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.55rem 0.25rem;
  border-radius: 12px;
  color: #d8c9f5;
  text-decoration: none;
  font-size: 0.62rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

.rail-tab:hover,
.rail-tab.is-active {
  background: rgba(255, 148, 40, 0.22);
  color: #fff;
}

.rail-icon { font-size: 0.85rem; }

.main {
  max-width: 920px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.section { margin-bottom: 3.5rem; scroll-margin-top: 1rem; }

.hero-window .window-frame {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px var(--note-shadow);
  border: 1px solid var(--border);
  background: var(--card);
}

.window-chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1rem;
  background: #ece4f8;
  border-bottom: 1px solid var(--border);
}

.window-chrome span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff9428;
}

.window-chrome span:nth-child(2) { background: #7348b8; opacity: 0.7; }
.window-chrome span:nth-child(3) { background: #1f142e; opacity: 0.25; }

.window-title {
  margin: 0 0 0 auto;
  font-size: 0.75rem;
  color: var(--muted);
}

.window-body { position: relative; }

.hero-img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 420px;
  object-fit: cover;
}

.hero-copy {
  padding: 1.5rem 1.25rem 1.75rem;
}

.hero-copy h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  line-height: 1.15;
}

.hero-copy .line2 {
  display: block;
  color: var(--accent2);
  font-weight: 700;
}

.tagline {
  margin: 0;
  color: var(--muted);
  max-width: 42rem;
}

.centered-band {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 1.75rem;
}

.centered-band h2 { margin: 0 0 0.5rem; font-size: 1.5rem; }
.centered-band p { margin: 0; color: var(--muted); }

.cork-board {
  position: relative;
  min-height: 420px;
  border-radius: 16px;
  padding: 2rem 1.25rem;
  background:
    repeating-linear-gradient(45deg, rgba(0,0,0,0.03) 0 2px, transparent 2px 8px),
    linear-gradient(135deg, #d4b483, var(--cork));
  box-shadow: inset 0 0 0 2px rgba(90, 60, 30, 0.15);
}

.note {
  position: absolute;
  width: min(280px, 88vw);
  padding: 1rem 1.1rem;
  background: #fffef8;
  box-shadow: 4px 6px 14px var(--note-shadow);
  transform: rotate(var(--rot, -2deg));
}

.note h3 { margin: 0 0 0.45rem; font-size: 1rem; color: var(--accent2); }
.note p { margin: 0; font-size: 0.92rem; color: #3a2f4a; }

.note-a { top: 8%; left: 4%; --rot: -3deg; }
.note-b { top: 38%; right: 6%; --rot: 2deg; }
.note-c { bottom: 8%; left: 18%; --rot: -1deg; }

.screens-stacked .stack-shot {
  margin: 0 auto 1.5rem;
  max-width: 320px;
  text-align: center;
}

.stack-shot img {
  width: 100%;
  height: auto;
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px var(--note-shadow);
}

.stack-shot figcaption {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-dropcap h2 { margin-top: 0; }
.legal-dropcap .dropcap::first-letter {
  float: left;
  font-size: 3.2rem;
  line-height: 0.85;
  padding-right: 0.45rem;
  font-weight: 800;
  color: var(--accent2);
}

.support-block a { color: var(--accent2); font-weight: 600; }
.legal-entity { color: var(--muted); font-size: 0.9rem; }

.site-footer {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 720px) {
  .shell { grid-template-columns: 1fr; }
  .rail {
    position: fixed;
    bottom: 0;
    top: auto;
    height: auto;
    width: 100%;
    flex-direction: row;
    padding: 0.35rem 0.5rem;
    justify-content: space-around;
  }
  .rail-brand { display: none; }
  .rail-tabs { flex-direction: row; justify-content: space-around; }
  .main { padding-bottom: 5rem; }
  .cork-board { min-height: 520px; }
  .note { position: relative; left: auto !important; right: auto !important; top: auto !important; bottom: auto !important; margin: 0 auto 1rem; transform: none; }
}
