/* Store — page layout on the shared @rudedog/ui "Velvet" layer
   (design_handoff_rudedog_store; metrics verbatim where given). */

/* It's a web page, not an app shell — text must be selectable and the page
   must scroll naturally. */
html,
body {
  height: auto;
  min-height: 100%;
}
body {
  -webkit-user-select: text;
  user-select: text;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-weight: 500;
}
.page {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}
.wrap {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad) 72px;
}
a {
  color: var(--v-body);
  text-decoration: none;
}
a:hover {
  color: #fff;
}

/* base.css strips outlines for the app shells; a purchase page needs visible
   keyboard focus (WCAG 2.4.7). Restore it store-wide. */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ---- nav ---- */
.store-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 26px 0 0;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand img {
  width: 40px;
  height: auto;
  display: block;
}
.brand:hover {
  color: #fff;
}
.wordmark {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  text-decoration: none;
}
a.wordmark:hover {
  color: #fff;
}
.wordmark-sub {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.8;
}
.nav-links {
  display: flex;
  gap: 24px;
  margin-left: 16px;
  font-size: 13.5px;
  font-weight: 500;
}
.nav-links a.nav-active {
  color: #fff;
}
.nav-actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.nav-btn {
  height: 44px;
  padding: 0 20px;
  font-size: 13.5px;
}

/* ---- hero ---- */
.hero {
  text-align: center;
  padding: 58px 0 0; /* no bottom padding: the card overlap is measured from here */
}
.hero-h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}
.two-tone {
  color: var(--v-lavender);
}
.hero-sub {
  margin: 0 auto;
  max-width: 46ch;
  font-size: 16px;
  line-height: 1.65;
  font-weight: 500;
  color: var(--v-sub);
}
.hero-sandbox {
  margin-top: 26px;
  opacity: 0.85;
  /* The illustration is pulled up 40px (handoff). Cancel that pull only while
     this notice exists, so it never lands on the artwork; in production the
     pill is absent and the art tightens up as designed. */
  position: relative;
  z-index: 3;
  margin-bottom: 40px;
}

/* Hero illustration. Bleeds 120px past the 1180px column on each side and
   fades into the page gradient via a radial mask, so it has no visible edge.
   The negative bleed is clamped on narrow viewports — a fixed -120px would
   overflow the body and cause horizontal scroll. */
.hero-art {
  margin: -40px calc(-1 * var(--bleed, 120px)) 0;
  position: relative;
}
.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image: radial-gradient(115% 100% at 50% 42%, #000 58%, transparent 88%);
  mask-image: radial-gradient(115% 100% at 50% 42%, #000 58%, transparent 88%);
}
@media (max-width: 1180px) {
  /* Never bleed wider than the padding allows. */
  .hero-art {
    --bleed: var(--pad);
  }
}

/* ---- tool cards ---- */
.store-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  /* Sit ON the illustration's empty lower ground. Reduced at narrower widths
     so the cards never cover the artwork's subjects. */
  position: relative;
  z-index: 5;
  margin-top: -260px;
}
@media (max-width: 1000px) {
  .store-grid {
    margin-top: -140px;
  }
}
@media (max-width: 700px) {
  .store-grid {
    margin-top: -60px;
  }
}
@media (max-width: 600px) {
  .store-grid {
    grid-template-columns: 1fr;
  }
}
.tool-card {
  padding: 26px 26px 24px;
  display: grid;
  /* icon · description (absorbs slack) · price · actions — fixed rows so the
     price line sits at the same height in every card regardless of how long
     the description runs. */
  grid-template-rows: auto 1fr auto auto;
  gap: 16px;
}
.tool-top {
  display: flex;
  align-items: center;
  gap: 13px;
}
.tool-id {
  flex: 1;
  min-width: 0;
}
.tool-name {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}
.tool-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--v-meta);
}
.tool-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  font-weight: 500;
  color: var(--v-body);
  flex: 1;
}
.tool-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.tool-price {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}
.once-tag {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--v-meta);
}
.tool-license {
  margin-top: 4px;
}
.tool-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  /* Buy (46) + gap (8) + Renew (40). Cards without a renew button — Slates,
     Cutout — reserve the same block so their price rows stay in line. */
  min-height: 94px;
}
.buy-btn {
  height: 46px;
  font-size: 14px;
}
.renew-btn {
  height: 40px;
  font-size: 13px;
}

/* Cutout (unshipped): same card, no sale */
.soon-line {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--v-meta);
}

/* ---- suite panel ---- */
.suite-section {
  margin-top: 18px;
}
.suite-panel {
  position: relative;
  overflow: hidden;
  padding: 34px;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.suite-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(600px 280px at 88% -10%, oklch(0.6 0.24 355 / 0.3), transparent 62%);
}
.suite-panel > * {
  position: relative;
}
.suite-copy {
  flex: 1;
  min-width: 280px;
}
.suite-kicker-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.suite-h2 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}
.suite-sub {
  margin: 0;
  max-width: 52ch;
  font-size: 14px;
  line-height: 1.65;
  font-weight: 500;
  color: var(--v-body);
}
.suite-tiles {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.suite-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 8px 16px -8px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.suite-cue {
  font-size: 9.5px;
}
.suite-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
@media (max-width: 600px) {
  .suite-side {
    align-items: flex-start;
    width: 100%;
  }
  .orbit {
    margin: 0 auto;
  }
}
.suite-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.suite-price {
  font-size: 46px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #fff;
}
.suite-buy {
  height: 50px;
  padding: 0 26px;
  font-size: 15px;
  box-shadow: 0 14px 34px -12px oklch(0.6 0.24 355 / 0.6);
}
.suite-renew {
  height: 38px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 12.5px;
}

/* ---- real output (proof): two labeled exhibits ---- */
.proof {
  margin-top: 64px;
  text-align: center;
}
.proof-kicker {
  margin-bottom: 10px;
}
.proof-h2 {
  margin: 0 0 10px;
  font-size: clamp(32px, 4.5vw, 46px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}
.proof-sub {
  margin: 0 auto 26px;
  max-width: 56ch;
  font-size: 15px;
  line-height: 1.65;
  color: var(--v-sub);
}
.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 16px;
  align-items: stretch;
  text-align: left;
}
@media (max-width: 900px) {
  .proof-grid {
    grid-template-columns: 1fr;
  }
}
.proof-card {
  margin: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.exhibit-tags {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.exhibit-tags span:first-child {
  color: #fff;
}
.exhibit-tags span:last-child {
  color: var(--v-faint);
  text-align: right;
}

/* Before/after wipe comparer. Without JS the divider rests at 50% —
   still a legible split view. */
.cmp {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  aspect-ratio: 4 / 3;
}
.cmp img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cmp-over {
  clip-path: inset(0 50% 0 0);
}
.cmp-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: rgba(255, 255, 255, 0.75);
  pointer-events: none;
}
.cmp-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(20, 12, 46, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.cmp-handle svg {
  width: 18px;
  height: 18px;
}
.cmp-chip {
  position: absolute;
  top: 10px;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(20, 12, 46, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: oklch(0.92 0.02 290);
}
.cmp-chip-l {
  left: 10px;
}
.cmp-chip-r {
  right: 10px;
}
.cmp input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
}
.cmp:focus-within {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Transcript as tape log: waveform of the actual memo + timestamped rail */
.wave {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.9;
}
.transcript {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 11px;
  padding: 2px 0;
}
.t-line {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: baseline;
}
.t-time {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--v-lavender);
  text-align: right;
  padding-right: 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}
.t-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--v-body);
}
.proof-caption {
  margin-top: auto;
  font-size: 13px;
  line-height: 1.6;
  color: var(--v-meta);
}
.proof-free {
  margin: 24px auto 0;
  max-width: 62ch;
  font-size: 14px;
  line-height: 1.65;
  color: var(--v-body);
}
.proof-free strong {
  color: #fff;
  font-weight: 600;
}
.proof-cta {
  margin-top: 14px;
}
.proof-dl {
  height: 44px;
  padding: 0 22px;
  font-size: 13.5px;
}

/* ---- done panel + fine print ---- */
.done-panel {
  margin-top: 28px;
  padding: 20px 24px;
}
.done-panel h2 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}
.done-panel p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--v-body);
}
.done-panel p.order-ref {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--v-lavender);
}
/* ---- licence / privacy / billing ---- */
.explain-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .explain-grid {
    grid-template-columns: 1fr;
  }
}
.explain {
  padding: 20px 22px;
  border: 1px solid var(--v-glass-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
}
.explain h3 {
  margin: 0 0 8px;
  font-size: 15.5px;
  font-weight: 600;
  color: #fff;
}
.explain p {
  margin: 0 0 8px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--v-body);
}
.explain p:last-child {
  margin-bottom: 0;
}

/* ---- fine print ---- */
.fineprint {
  margin: 40px auto 0;
  max-width: 68ch;
  text-align: center;
}
.fineprint p {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--v-meta);
}

/* ---- footer ---- */
.store-footer {
  margin-top: 54px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-mark {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--v-faint);
}
.footer-links {
  margin-left: auto;
  display: flex;
  gap: 12px;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 4px;
  font-size: 12.5px;
  font-weight: 500;
}

/* hub download unavailable state */
.dl-hub-unavailable {
  opacity: 0.55;
  cursor: default;
}

/* ---- static doc pages (support / billing / licenses) ---- */
.doc {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 0 24px;
}
.doc-h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}
.doc-lede {
  margin: 0 0 30px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--v-sub);
}
.doc h2 {
  margin: 28px 0 8px;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
}
.doc p,
.doc li {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--v-body);
}
.doc ul {
  margin: 0;
  padding-left: 20px;
}
.doc li {
  margin-bottom: 10px;
}
.doc strong {
  color: #fff;
  font-weight: 600;
}
.doc a {
  color: var(--v-lavender);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 3px;
}
.doc a:hover {
  color: #fff;
  text-decoration-color: currentColor;
}
.doc-legal {
  margin-top: 36px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--v-faint);
  line-height: 1.7;
}
