/* ─────────────────────────────────────────────────────────────────────
   PennaSystems — marketing stylesheet
   Cream paper. Ink lines. Editorial serif + clean sans.
   Ported from design canvas (no .dc-* or .tweaks-* classes).
   ───────────────────────────────────────────────────────────────────── */

:root {
  --paper:    #F5EFE3;
  --paper-hi: #FBF6EA;
  --paper-lo: #ECE4D2;
  --ink:      #1B1A17;
  --ink-2:    #3A372F;
  --muted:    #6E665A;
  --rule:     #D9CFB8;
  --gold:     #B58A3F;

  --serif: 'Newsreader', 'Source Serif Pro', Georgia, serif;
  --sans:  'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  font-feature-settings: 'ss01','cv11';
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
[hidden] { display: none !important; }
main { flex: 1; }
p, h1, h2, h3, h4, h5, h6, ul, li { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; text-align: left; }
em { font-style: italic; }

/* ── Nav (shared) ───────────────────────────────────────────────── */
.ps-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 56px; border-bottom: 1px solid var(--rule);
}
.ps-logo { display: inline-flex; align-items: center; gap: 10px; }
.ps-logo svg { transform: rotate(-12deg); }
.ps-wordmark { font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.ps-wordmark b { font-weight: 700; }
.ps-nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--ink-2); }
.ps-nav-links a:hover { color: var(--ink); }
.ps-nav-links a.on { color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.ps-nav-cta { display: flex; align-items: center; gap: 18px; }
.ps-link { font-size: 14px; color: var(--ink-2); }
.ps-link:hover { color: var(--ink); }
.ps-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; padding: 10px 18px;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper-hi);
  border-radius: 999px; transition: transform .1s ease;
}
.ps-btn:hover { transform: translateY(-1px); }
.ps-btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.ps-link-arrow { font-size: 14px; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 1px; display: inline-flex; align-items: center; gap: 6px; }

/* ── Footer ─────────────────────────────────────────────────────── */
.ps-footer {
  display: grid; grid-template-columns: 1.4fr 2fr; gap: 40px;
  padding: 56px; border-top: 1px solid var(--rule);
  background: var(--paper-lo); margin-top: auto;
}
.ps-foot-l { }
.ps-foot-mark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 18px; }
.ps-foot-mark svg { transform: rotate(-12deg); }
.ps-foot-note { color: var(--muted); margin-top: 12px; font-size: 14px; max-width: 30ch; }
.ps-foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.ps-foot-cols h4 { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.ps-foot-cols a { display: block; font-size: 14px; color: var(--ink-2); margin-bottom: 6px; }
.ps-foot-cols a:hover { color: var(--ink); }

/* ── Shared eyebrow / display ───────────────────────────────────── */
.eyebrow, .heroA-eyebrow, .pp-eyebrow, .sub-eyebrow, .memo-eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}

/* ─────────────────────────────────────────────────────────────────
   FAN — the centerpiece. Pivot at bottom-center.
   ───────────────────────────────────────────────────────────────── */
.fan { width: 100%; display: flex; justify-content: center; }
.fan-stage {
  position: relative;
  width: var(--fan-size); height: calc(var(--fan-size) * 1.05);
}
.fan-feather {
  position: absolute; left: 50%; bottom: 0;
  width: var(--fan-size); height: var(--fan-size);
  /* nib of the feather glyph sits at (64,174) inside the 200x200 viewBox,
     i.e. 32% from the left and 87% from the top — pivot there so every
     feather's nib converges on a single point as they rotate */
  transform-origin: 32% 87%;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), opacity .25s, filter .25s;
  cursor: pointer;
}
.fan-feather:focus-visible { outline: none; }
.fan-feather:focus-visible svg { filter: drop-shadow(0 0 0 2px var(--ink)); }
.fan-feather svg { position: absolute; inset: 0; }
.fan-feather:hover, .fan-feather.is-active {
  transform: translate(-32%, -10px) rotate(var(--rot, 0deg)) !important;
}
.fan-feather.is-active {
  transform: translate(-32%, -18px) rotate(var(--rot, 0deg)) !important;
  transition: transform 200ms ease;
}
.fan-feather.is-dim { opacity: 0.32; }
.fan-feather.is-front svg { filter: drop-shadow(0 4px 0 rgba(0,0,0,.04)); }

.fan-flag {
  position: absolute; top: 30%; left: 56%;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; transform: rotate(8deg);
}

/* ─────────────────────────────────────────────────────────────────
   HERO A — fan-forward, sidebar tooltip
   ───────────────────────────────────────────────────────────────── */
.heroA-main {
  display: grid; grid-template-columns: 1fr 1fr 320px;
  gap: 48px; padding: 64px 56px 32px; align-items: end;
}
.heroA-copy { padding-bottom: 40px; }
.heroA-copy .eyebrow { display: block; margin-bottom: 18px; }
.display, .heroB-display, .pp-display, .sub-display {
  font-family: var(--serif); font-weight: 400; line-height: 1.02;
  letter-spacing: -0.022em; color: var(--ink);
}
.display { font-size: 64px; }
.display em { font-style: italic; color: var(--gold); }
.lede { margin-top: 22px; font-size: 17px; color: var(--ink-2); max-width: 38ch; line-height: 1.55; text-wrap: pretty; }

.heroA-fan-wrap { position: relative; padding-bottom: 24px; }
.fan-hint { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.heroA-side { padding-bottom: 40px; }
.tip {
  border: 1px solid var(--rule); background: var(--paper-hi);
  padding: 24px; min-height: 280px;
  display: flex; flex-direction: column; gap: 10px;
}
.tip-mark svg { transform: rotate(-12deg); }
.tip-name { font-family: var(--serif); font-size: 28px; font-weight: 500; letter-spacing: -0.01em; margin-top: 6px; }
.tip-name.muted { color: var(--ink); }
.tip-tag { font-size: 15px; color: var(--ink); font-weight: 500; }
.tip-blurb { font-size: 14px; color: var(--ink-2); line-height: 1.55; flex: 1; }
.tip-cta { font-size: 13px; font-weight: 500; color: var(--ink); border-top: 1px solid var(--rule); padding-top: 14px; }
.tip-list { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; font-size: 13px; color: var(--ink-2); }
.tip-list li { display: flex; align-items: center; gap: 10px; }
.tip-list .dot { width: 8px; height: 8px; border-radius: 999px; }
.tip-list .more { color: var(--muted); font-style: italic; padding-left: 18px; }

/* ─────────────────────────────────────────────────────────────────
   HERO — CENTERED (front page of pennasystems.com)
   ───────────────────────────────────────────────────────────────── */
.hero-centered {
  display: flex; flex-direction: column; align-items: center;
  padding: 56px 24px 24px; gap: 32px;
}
.hero-copy-center {
  text-align: center; max-width: 720px;
}
.hero-copy-center .eyebrow { display: block; margin-bottom: 18px; }
.hero-copy-center .display { font-size: 64px; }
.hero-copy-center .lede { margin: 22px auto 0; max-width: 60ch; }

.fan-centered {
  position: relative; width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  min-height: 520px;
  overflow: visible;
}
.fan-centered #fan-container { position: relative; }
.fan-centered .fan-stage { overflow: visible; }

.fan-tooltip {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(420px, 90vw);
  background: var(--paper-hi); border: 1px solid var(--rule);
  padding: 22px 24px; border-radius: 4px;
  display: flex; flex-direction: column; gap: 8px;
  opacity: 0; pointer-events: none;
  transition: opacity 160ms ease;
  z-index: 50;
  text-align: center;
  box-shadow: 0 12px 32px rgba(0,0,0,.08);
}
.fan-tooltip.is-visible { opacity: 1; }
.fan-tooltip .tip-mark { display: flex; justify-content: center; margin-bottom: 4px; }
.fan-tooltip .tip-mark svg { transform: rotate(-12deg); }
.fan-tooltip .tip-name { font-family: var(--serif); font-size: 26px; font-weight: 500; letter-spacing: -0.01em; }
.fan-tooltip .tip-tag { font-size: 15px; color: var(--ink); font-weight: 500; }
.fan-tooltip .tip-blurb { font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.fan-tooltip .tip-cta { font-size: 13px; font-weight: 500; color: var(--ink); border-top: 1px solid var(--rule); padding-top: 12px; margin-top: 4px; }

.fan-centered .fan-hint {
  position: static; transform: none;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
  margin-top: 16px; transition: opacity 160ms ease;
}

@media (max-width: 720px) {
  .hero-copy-center .display { font-size: 40px; }
  .fan-centered { min-height: auto; }
  .fan-tooltip { position: static; transform: none; opacity: 1; pointer-events: auto; margin-top: 24px; }
  .fan-tooltip:not(.is-visible) { display: none; }
}

/* In the works */
.works { padding: 24px 56px 8px; border-top: 1px solid var(--rule); margin-top: 24px; }
.works-h { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.works-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 32px; }
.works-list li { display: flex; align-items: baseline; gap: 12px; font-size: 14px; }
.works-dot { width: 10px; height: 10px; border-radius: 999px; flex-shrink: 0; transform: translateY(2px); }
.works-name { font-weight: 600; color: var(--ink); }
.works-tag { color: var(--ink-2); }
.works-list li.overlay .works-tag { font-style: italic; color: var(--muted); }

/* Newsletter form */
.works-news {
  margin-top: 24px; padding: 24px 0 0;
  display: flex; flex-direction: column; gap: 12px;
}
.works-news label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}
.works-news-row {
  display: flex; gap: 10px;
}
.works-news input {
  flex: 1; padding: 10px 14px; border: 1px solid var(--rule);
  background: var(--paper-hi); font-family: var(--sans); font-size: 14px;
  color: var(--ink); border-radius: 4px;
}
.works-news input::placeholder {
  color: var(--muted);
}
.works-news button {
  padding: 10px 18px; background: var(--ink); color: var(--paper-hi);
  border: 1px solid var(--ink); font-family: var(--sans); font-size: 14px;
  font-weight: 500; border-radius: 4px; cursor: pointer;
  transition: transform 100ms ease;
}
.works-news button:hover {
  transform: translateY(-1px);
}

/* ─────────────────────────────────────────────────────────────────
   SUBPAGE — per-tool template
   ───────────────────────────────────────────────────────────────── */
.subpage { background: var(--paper); }
.sub-hero { text-align: center; padding: 32px 56px 0; position: relative; }
.sub-back { position: absolute; left: 56px; top: 32px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.sub-back:hover { color: var(--ink); }
.sub-mark { display: flex; justify-content: center; margin: 8px 0 24px; }
.sub-mark svg { transform: rotate(-8deg); }
.sub-eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }
.sub-display { font-size: 56px; line-height: 1.04; margin: 16px auto 18px; max-width: 18ch; }
.sub-lede { max-width: 50ch; margin: 0 auto; font-size: 17px; color: var(--ink-2); line-height: 1.55; text-wrap: pretty; }
.sub-cta { display: flex; gap: 24px; justify-content: center; align-items: center; margin: 28px 0 8px; }
.sub-cta .ps-btn { color: var(--paper-hi); }
.sub-cta-soon {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500;
  padding: 10px 18px; border: 1px dashed currentColor; border-radius: 999px;
  font-family: var(--sans);
}
.sub-cta-soon-dot {
  width: 8px; height: 8px; border-radius: 999px;
  animation: ps-pulse 2.4s ease-in-out infinite;
}
@keyframes ps-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

.sub-shot { padding: 40px 56px; }
.sub-shot-frame { border: 1px solid; background: var(--paper-hi); padding: 8px; border-radius: 4px; }

.sub-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 24px 56px 56px; border-top: 1px solid var(--rule); }
.sub-point-num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; }
.sub-points h3 { font-family: var(--serif); font-size: 22px; font-weight: 500; margin: 8px 0 6px; }
.sub-points p { font-size: 14px; color: var(--ink-2); line-height: 1.55; }

.sub-suite { padding: 48px 56px; background: var(--paper-lo); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.sub-suite-eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.sub-suite-h { font-family: var(--serif); font-size: 36px; font-weight: 400; line-height: 1.1; margin: 8px 0 28px; }
.sub-suite-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 32px; margin-bottom: 24px; }
.sub-suite-card { display: flex; align-items: center; gap: 16px; padding: 16px; background: var(--paper-hi); border: 1px solid var(--rule); }
.sub-suite-card svg { transform: rotate(-12deg); flex-shrink: 0; }
.sub-suite-name { font-family: var(--serif); font-size: 20px; font-weight: 500; }
.sub-suite-tag { font-size: 13px; color: var(--ink-2); }

/* Striped shot placeholder */
.shot-placeholder {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--paper-hi); border-radius: 2px;
}
.shot-grid {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, transparent 0 11px, rgba(27,26,23,.04) 11px 12px);
}
.shot-label {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.1em;
  background: var(--paper-hi); padding: 6px 12px; border: 1px solid var(--rule);
}

/* ─────────────────────────────────────────────────────────────────
   PRICING PAGE
   ───────────────────────────────────────────────────────────────── */
.pricing-page { background: var(--paper); }
.pricing-section {
  background: var(--paper); padding: 56px 0;
}

.pricing-hero {
  text-align: center; padding: 56px 56px 0;
}

.pricing-eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 18px; display: block;
}

.pricing-h1 {
  font-family: var(--serif); font-size: 56px; font-weight: 400;
  letter-spacing: -0.022em; line-height: 1.04; margin: 16px auto 18px;
  max-width: 20ch;
}

.pricing-lede {
  max-width: 50ch; margin: 0 auto; font-size: 17px; color: var(--ink-2);
  line-height: 1.55; text-wrap: pretty;
}

.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  padding: 64px 56px; max-width: 1280px; margin: 0 auto;
}

.pricing-card {
  border: 1px solid var(--rule); background: var(--paper);
  padding: 32px 24px; border-radius: 4px;
  display: flex; flex-direction: column; gap: 16px;
  transition: all 200ms ease;
}

.pricing-card.is-featured {
  background: var(--paper-hi); border: 2px solid var(--gold);
  transform: scale(1.02);
}

.pricing-tier-name {
  font-family: var(--serif); font-size: 28px; font-weight: 500;
  letter-spacing: -0.01em; color: var(--ink);
}

.pricing-desc {
  font-size: 14px; color: var(--ink-2); font-weight: 500;
}

.pricing-price-block {
  display: flex; align-items: baseline; gap: 4px; margin-top: 8px;
}

.pricing-price {
  font-family: var(--serif); font-size: 48px; font-weight: 500;
  letter-spacing: -0.01em; color: var(--ink);
}

.pricing-price-free {
  font-family: var(--serif); font-size: 20px; font-weight: 500;
  color: var(--ink-2);
}

.pricing-period {
  font-family: var(--mono); font-size: 13px; color: var(--muted);
}

.pricing-features {
  display: flex; flex-direction: column; gap: 10px; font-size: 14px;
  color: var(--ink-2); margin-top: 16px;
}

.pricing-features li {
  display: flex; align-items: center; gap: 10px;
}

.pricing-check {
  color: var(--gold); font-weight: 600;
}

.pricing-common {
  padding: 48px 56px; text-align: center;
  border-top: 1px solid var(--rule); margin-top: 48px;
}

.pricing-common-h {
  font-family: var(--serif); font-size: 32px; font-weight: 400;
  margin-bottom: 28px; color: var(--ink);
}

.pricing-common-list {
  display: flex; justify-content: center; gap: 40px; flex-wrap: wrap;
  font-size: 14px; color: var(--ink-2);
}

.pricing-common-list li {
  display: flex; align-items: center; gap: 10px;
}

.pricing-common-list .dot {
  width: 8px; height: 8px; border-radius: 999px; background: var(--ink);
}
