/* Nautankee marketing site — palette/type from AKM D-387 UI Design Standard;
   Nautankee's accent is Umber Ink (D-446, D-558), replacing Sienna. */

:root {
  --paper: #EBE8DC;
  --paper2: #E1DDCE;
  --ink: #191E2B;
  --umber: #5C3A22;
  --brass: #8A6A2F;
  --hairline: #C6C3B2;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Archivo, system-ui, sans-serif;
}

h1, h2, h3, .display {
  font-family: Eczar, Georgia, serif;
  font-weight: 600;
  margin: 0;
}

a { color: inherit; }

.wordmark-svg { color: var(--paper); }
.wordmark-svg.ink { color: var(--ink); }

/* ---- Stage hero ---- */

.stage-hero {
  position: relative;
  min-height: 100vh;
  /* The curtain film's own last frame, so the film fades into the
     page without a seam: landscape on wide screens, portrait on tall ones. */
  background: #120A05 url('stage-end-land.jpg') center center / cover no-repeat;
  display: flex;
  flex-direction: column;
}

/* Sized to one screen, as the film is (it covers the viewport), not to the
   hero's full height: the first screen is then exactly the film's last frame,
   proscenium and lights included, and the stage runs on into dark below. */
.stage-hero {
  background-size: max(100vw, calc(100vh * 16 / 9)) max(100vh, calc(100vw * 9 / 16));
  background-position: center top;
}
@media (orientation: portrait) {
  .stage-hero {
    background-image: url('stage-end-port.jpg');
    background-size: max(100vw, calc(100vh * 9 / 16)) max(100vh, calc(100vw * 16 / 9));
  }
}

.stage-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  /* The stage exactly as the curtain film leaves it (Rajeev: the page must not
     dull it): no vignette, no overall darkening; only a soft, tight shade
     right behind the text block so the words read against the spotlight. */
  background:
    radial-gradient(ellipse 26% 36% at 50% 44%, rgba(18,10,5,0.55) 0%, rgba(18,10,5,0.32) 55%, rgba(18,10,5,0) 100%);
  pointer-events: none;
}

.site-nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
}

.site-nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-nav .brandmark { width: 30px; height: 30px; color: var(--paper); }
.site-nav .wordmark { height: 24px; color: var(--paper); }
/* Logo A take 2 (D-574): one lockup, the N included. */
.site-nav .logo { height: 42px; width: auto; display: block; }

.site-nav nav {
  display: flex;
  gap: 28px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav nav a { text-decoration: none; color: var(--paper); opacity: 0.85; }
.site-nav nav a:hover { opacity: 1; }

.site-nav .cta {
  background: var(--umber);
  color: var(--paper);
  padding: 10px 18px;
  border-radius: 2px;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.03em;
}

.hero-split {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  padding: 40px;
  flex-wrap: wrap;
}

/* The scroller replaces the two showcase cards (site.js sets hidden); the
   cards' own display rule would otherwise win over the hidden attribute. */
.hero-showcase-card[hidden] { display: none; }

.hero-panel {
  max-width: 620px;
  text-align: center;
  order: 0;
}

.hero-panel .wordmark-large { margin-left: auto; margin-right: auto; }
.hero-panel .tagline { text-align: center; }
.hero-panel .tagline, .hero-panel p { text-shadow: 0 1px 10px rgba(18, 10, 5, 0.75); }
/* The key messages (D-577): headline, three points, offer, audience. */
.hero-panel .hero-headline {
  margin: 4px 0 6px;
  font: 600 clamp(34px, 5vw, 52px)/1.1 Eczar, Georgia, serif;
  color: var(--paper);
  text-align: center;
  text-shadow: 0 2px 14px rgba(18, 10, 5, 0.8);
}
.hero-panel p.pillars {
  margin: 0 auto 14px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #D9B26A;
}
.hero-panel p.pillars .pt { white-space: nowrap; }
.hero-panel p.pillars .dot { margin: 0 0.3em; }
/* Who it is for, said up front: Brass, about as wide as the tagline above. */
.hero-panel p.audience {
  margin: 16px auto 2px;
  text-align: center;
  font-size: clamp(15px, 4vw, 20px);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #D9B26A;
  text-shadow: 0 1px 10px rgba(18, 10, 5, 0.8);
}
.hero-panel p { margin-left: auto; margin-right: auto; text-align: left; }
.hero-ctas { justify-content: center; }

.hero-showcase-card {
  display: block;
  width: min(320px, 80vw);
  text-decoration: none;
  color: inherit;
  background: var(--paper);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,0.45), 0 2px 0 rgba(255,255,255,0.08) inset;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

.hero-showcase-card-left { order: -1; transform: rotate(-2deg); }
.hero-showcase-card-right { order: 1; transform: rotate(2deg); }

.hero-showcase-card-left:hover { transform: rotate(-0.5deg) translateY(-4px); }
.hero-showcase-card-right:hover { transform: rotate(0.5deg) translateY(-4px); }

.hero-showcase-card:hover {
  box-shadow: 0 36px 80px rgba(0,0,0,0.5), 0 2px 0 rgba(255,255,255,0.08) inset;
}

@media (max-width: 1100px) {
  .hero-showcase-card-left, .hero-showcase-card-right { order: 2; transform: none; }
  .hero-showcase-card-left:hover, .hero-showcase-card-right:hover { transform: translateY(-4px); }
}

.hero-showcase-card-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--paper2);
  border-bottom: 1px solid var(--hairline);
}

.hero-showcase-card-chrome span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--hairline);
  display: inline-block;
}

.hero-showcase-card-title {
  margin-left: 10px;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink);
  opacity: 0.65;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-showcase-card img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-showcase-card-caption {
  padding: 14px 16px;
  font-size: 13px;
  color: var(--ink);
  background: var(--paper);
}

.hero-panel .wordmark-large {
  width: min(480px, 70vw);
  color: var(--paper);
  display: block;
  margin-bottom: 18px;
}

.hero-panel .tagline {
  font-family: Eczar, Georgia, serif;
  font-size: 20px;
  color: var(--paper);
  margin-bottom: 20px;
}

.hero-panel p {
  color: var(--paper);
  font-size: 16px;
  line-height: 1.6;
  max-width: 520px;
  margin: 0 0 28px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

.hero-ctas { display: flex; gap: 14px; }

.btn-primary {
  background: var(--umber);
  color: var(--paper);
  padding: 12px 22px;
  border-radius: 2px;
  text-decoration: none;
  font-size: 14px;
}

.btn-secondary {
  border: 1px solid rgba(235,232,220,0.5);
  color: var(--paper);
  padding: 12px 22px;
  border-radius: 2px;
  text-decoration: none;
  font-size: 14px;
}

.placeholder-link { cursor: not-allowed; opacity: 0.85; }

/* ---- Page body (non-hero pages, and sections below the hero) ---- */

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
  background: var(--ink);
}

.page-header .brand { display: flex; align-items: center; gap: 10px; }
.page-header .brandmark { width: 26px; height: 26px; color: var(--paper); }
.page-header .wordmark { height: 20px; color: var(--paper); }
.page-header .logo { height: 36px; width: auto; display: block; }
.page-header nav { display: flex; gap: 24px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
.page-header nav a { text-decoration: none; color: var(--paper); opacity: 0.85; }
.page-header nav a:hover { opacity: 1; }

main {
  max-width: 920px;
  margin: 0 auto;
  padding: 64px 32px 96px;
}

main h1 { font-size: 38px; margin-bottom: 28px; }
main h2 { font-size: 24px; margin: 48px 0 18px; }
main p { line-height: 1.65; font-size: 16px; margin: 0 0 16px; }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}
th, td {
  border: 1px solid var(--hairline);
  padding: 10px 14px;
  text-align: right;
}
th:first-child, td:first-child { text-align: left; }
thead th { background: var(--paper2); }

.card-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 24px 0 40px; }
.card {
  background: var(--paper2);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  padding: 18px;
}
.card b { display: block; margin-bottom: 6px; }

.faq-item { border-top: 1px solid var(--hairline); padding: 20px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--hairline); }
.faq-item .q { font-weight: 700; margin-bottom: 8px; }

.site-footer {
  text-align: center;
  padding: 32px;
  font-size: 12px;
  color: #6b6758;
  border-top: 1px solid var(--hairline);
}

.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin: 32px 0; }
.category-card {
  background: var(--paper2);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  padding: 24px;
}
.category-card .status { font-size: 12px; color: var(--brass); text-transform: uppercase; letter-spacing: 0.06em; }

.showcase-entry {
  border: 1px solid var(--hairline);
  border-radius: 2px;
  padding: 20px;
  margin-bottom: 16px;
  background: var(--paper2);
}
.showcase-entry b { display: block; font-size: 17px; margin-bottom: 6px; }
.showcase-entry .meta { font-size: 13px; color: var(--brass); margin-bottom: 8px; }


/* ---- Hero scroller (D-551, D-558, D-559) ---- */

/* The hidden attribute must win over the display rules above. */
.hero-split[hidden], .hero-rail-wrap[hidden] { display: none; }

.hero-rail-wrap { position: relative; z-index: 2; width: 100%; padding: 0 40px 40px; }
.hero-rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 16px;
  scrollbar-width: thin;
}
.hero-play {
  flex: 0 0 min(260px, 72vw);
  scroll-snap-align: start;
  background: rgba(30, 23, 18, 0.82);
  border: 1px solid rgba(217, 185, 143, 0.4);
  border-radius: 2px;
  color: var(--paper);
  display: flex;
  flex-direction: column;
  text-align: left;
}
.hero-play-art {
  aspect-ratio: 4 / 3;
  background: linear-gradient(180deg, #7A5A3A, #2A1D14) center / cover no-repeat;
  display: flex;
  align-items: flex-end;
  padding: 12px;
}
.hero-play-art button {
  border: 0;
  background: #D9B98F;
  color: #1E1712;
  border-radius: 999px;
  min-height: 44px;
  padding: 0 18px;
  font-weight: 600;
  cursor: pointer;
}
.hero-play-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.hero-play-body h3 { font-size: 18px; color: #F3E2C0; }
.hero-play-meta { font-size: 12px; opacity: 0.8; }
.hero-songs { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.hero-songs li { font-size: 13px; }
.hero-songs audio { width: 100%; height: 32px; }
.hero-songs-note { font-size: 11px; opacity: 0.75; }
.hero-songs-note a { color: #D9B98F; }
.hero-rail-nav { display: flex; gap: 8px; justify-content: flex-end; }
.hero-rail-nav button {
  border: 1px solid rgba(217, 185, 143, 0.6);
  background: transparent;
  color: var(--paper);
  min-width: 44px;
  min-height: 44px;
  border-radius: 2px;
  cursor: pointer;
}
.hero-player {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(15, 11, 8, 0.92);
  display: flex;
  flex-direction: column;
  padding: 12px;
}
.hero-player[hidden] { display: none; }
.hero-player-bar { display: flex; justify-content: space-between; align-items: center; color: var(--paper); padding: 4px 4px 10px; gap: 12px; }
.hero-player-bar button { min-height: 44px; padding: 0 16px; border-radius: 2px; border: 1px solid #D9B98F; background: transparent; color: var(--paper); cursor: pointer; }
.hero-player iframe { flex: 1; width: 100%; border: 0; background: #1E1712; border-radius: 2px; }
.hero-player-cta { text-align: center; padding-top: 10px; }

@media (max-width: 700px) {
  .hero-rail-wrap { padding: 0 16px 24px; }
  /* The nav was wider than a phone (the page scrolled sideways): links move
     to their own row under the brand and Start free. */
  .site-nav { padding: 16px; flex-wrap: wrap; gap: 12px; }
  .site-nav nav { order: 3; width: 100%; gap: 18px; flex-wrap: wrap; font-size: 12px; }
  .page-header { flex-wrap: wrap; gap: 12px; padding-left: 16px; padding-right: 16px; }
  .page-header nav { width: 100%; gap: 18px; flex-wrap: wrap; font-size: 12px; }
}

/* Wide tables scroll inside their own box on a phone, never the page. */
.table-scroll { overflow-x: auto; max-width: 100%; }

/* ---- Doors (D-559) ---- */

.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.door { border: 1px solid var(--hairline); background: var(--paper2); padding: 18px; display: flex; flex-direction: column; gap: 10px; border-radius: 2px; }
.door h3 { font-size: 20px; }
.door form { display: flex; flex-direction: column; gap: 8px; }
.door label { font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.door input, .door textarea {
  font: inherit;
  padding: 10px;
  border: 1px solid var(--hairline);
  background: var(--paper);
  border-radius: 2px;
  min-height: 44px;
}
.door textarea { min-height: 90px; }
.door .hp { position: absolute; left: -9999px; }
.door .status { font-size: 13px; }

/* ---- What you get (generated from the bundle matrix) ---- */

.matrix-wrap { overflow-x: auto; }
table.matrix { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 14px; }
table.matrix th, table.matrix td { border-bottom: 1px solid var(--hairline); padding: 8px 10px; text-align: left; }
table.matrix td.yes { color: var(--umber); font-weight: 600; text-align: center; }
table.matrix td.no { opacity: 0.4; text-align: center; }
table.matrix th.tier { text-align: center; }

/* Direct your score (D-572): the Production difference, said loudly. */
table.matrix tr.feature td { background: rgba(168, 123, 46, 0.12); }
table.matrix tr.feature td:first-child { font-weight: 700; }
table.matrix tr.feature td:first-child a { color: inherit; }
table.matrix tr.feature small { display: block; font-weight: 400; opacity: 0.8; margin-top: 2px; }
.direct-score {
  margin: 28px 0 8px;
  padding: 24px 24px 20px;
  border: 1px solid var(--brass, #A87B2E);
  border-left: 6px solid var(--brass, #A87B2E);
  border-radius: 2px;
  background: rgba(168, 123, 46, 0.08);
}
.direct-score h2 { margin: 2px 0 8px; }
.direct-score-kicker { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #7A5418; }
.direct-score-lead { font-size: 18px; margin: 0 0 16px; }
.direct-score dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 24px; margin: 0 0 16px; }
.direct-score dt { font-weight: 700; }
.direct-score dd { margin: 2px 0 0; }
.direct-score-foot { font-size: 14px; margin: 0; opacity: 0.85; }

/* On a phone, all three bundles fit: the table no longer scrolls sideways,
   so a dash under Essentials is never read without the ticks beside it. */
@media (max-width: 700px) {
  table.matrix { min-width: 0; font-size: 12px; }
  table.matrix th, table.matrix td { padding: 7px 5px; }
  table.matrix th.tier { font-size: 11px; width: 4.6em; }
  table.matrix tr.feature small { font-size: 11px; }
}

/* Songs are a side offering: one button after the songs section, not a menu item. */
.songs-listen { margin: 18px 0 8px; }
.songs-listen .btn-primary { display: inline-block; }

/* Showcase page (D-576): the hero's play cards in a grid, grouped by category. */
.showcase-note { opacity: 0.8; }
.showcase-group { margin: 28px 0 8px; }
.showcase-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.showcase-play { flex: none; }
.showcase-one-liner { margin: 4px 0 0; font-size: 14px; line-height: 1.45; color: #EBE8DC; opacity: 0.92; }
.showcase-full { margin-top: auto; padding-top: 8px; font-size: 13px; font-weight: 700; color: #D9B26A; }
/* The three points: one line on wider screens (centred under the headline,
   allowed past the paragraph's width); stacked, without dots, on phones. */
@media (min-width: 701px) {
  .hero-panel p.pillars { width: max-content; max-width: 94vw; position: relative; left: 50%; transform: translateX(-50%); }
}
@media (max-width: 700px) {
  .hero-panel p.pillars .pt { display: block; margin: 2px 0; }
  .hero-panel p.pillars .dot { display: none; }
}
