/* Trendd site: the app's look (bold colour cards on near-black ink), dark only. */
:root {
  --ink: #1B1B1B;
  --graphite: #2F2F2F;
  --smoke: #3A3A3A;
  --ash: #4A4A4A;
  --peri: #7377FF;
  --coral: #F2654F;
  --sun: #F6C85F;
  --ice: #AEE3F0;
  --sage: #C3D2C6;
  --white: #FFFFFF;
  --text-soft: #C9C9C9;
  --text-muted: #A8A8A8;
  --display: 'Barlow Condensed', sans-serif;
  --body: 'Barlow', sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --frame: clamp(12px, 3vw, 36px);
  --gap: clamp(12px, 1.6vw, 20px);
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  padding: var(--frame);
  background: var(--peri);
  font-family: var(--body);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.panel {
  max-width: 1280px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: clamp(26px, 3vw, 40px);
  padding: clamp(12px, 1.8vw, 22px);
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

/* Shared type */
.label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.display {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: .92;
}

/* Top bar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px 4px;
}
.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: .08em;
  color: var(--white);
  text-decoration: none;
}
.pill-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.pill-link:hover { background: var(--ice); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: var(--gap);
}
.hero-copy {
  background: var(--graphite);
  border-radius: 30px;
  padding: clamp(26px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  color: var(--white);
}
.hero-copy .display { font-size: clamp(56px, 8.4vw, 112px); }
.hero-copy p {
  margin: 20px 0 0;
  max-width: 460px;
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.45;
  color: var(--text-soft);
}
.hero-art {
  background: var(--peri);
  border-radius: 30px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  min-height: 420px;
}
.stack {
  position: relative;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 12px;
}
.stack-back, .idea-card {
  width: min(340px, 86%);
  border-radius: 28px;
  border: 3px solid var(--ink);
}
.stack-back { position: absolute; height: 230px; }
.stack-coral { background: var(--coral); transform: rotate(-6deg); }
.stack-ice { background: var(--ice); transform: rotate(4deg); }
.idea-card {
  position: relative;
  background: var(--ink);
  color: var(--white);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.idea-title { font-size: 32px; }
.idea-hook { margin-top: 4px; font-size: 17px; font-weight: 600; color: var(--sun); }
.tabbar {
  height: 64px;
  padding: 0 8px;
  background: var(--ink);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bar-icon {
  width: 56px;
  height: 48px;
  border-radius: 16px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.bar-icon.is-active { background: var(--ice); color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
}

/* The CTA button from the brand board: label stack + arrow cell */
.cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: stretch;
  background: var(--white);
  color: var(--ink);
  border-radius: 18px;
  text-decoration: none;
  overflow: hidden;
  transition: transform .15s ease;
}
.cta:hover { transform: translateY(-2px); }
.cta-text {
  padding: 12px 22px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.cta-text .label { font-size: 10px; color: #5E5E5E; }
.cta-text strong {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  text-transform: uppercase;
}
.cta-arrow {
  width: 60px;
  border-left: 1px solid #E2E2E2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cta.on-light { background: var(--ink); color: var(--white); }
.cta.on-light .cta-text .label { color: var(--text-muted); }
.cta.on-light .cta-arrow { border-left-color: var(--ash); }

/* Tabs */
.tabs-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding: 18px 12px 0;
  color: var(--white);
}
.tabs-head .display { font-size: clamp(40px, 5vw, 64px); }
.tabs-head .label { color: var(--text-muted); padding-bottom: 8px; }
.tabs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--gap);
}
.tab {
  border-radius: 28px;
  padding: 20px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tab-top { display: flex; justify-content: space-between; align-items: flex-start; }
.tab-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tab .display { margin-top: auto; font-size: clamp(32px, 2.8vw, 40px); }
.tab p { margin: 0; font-size: 16px; line-height: 1.4; }
.soon {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--ice);
  font-family: var(--mono);
  font-size: 11px;
}
.fill-coral { background: var(--coral); }
.fill-peri { background: var(--peri); }
.fill-sage { background: var(--sage); }
.fill-sun { background: var(--sun); }
.fill-ice { background: var(--ice); }
.fill-white { background: var(--white); }

/* Closing band */
.closing {
  border-radius: 30px;
  padding: clamp(26px, 4vw, 48px);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 28px;
}
.closing .display { font-size: clamp(48px, 7vw, 96px); }

/* Footer */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 12px 6px;
  color: var(--text-muted);
}
.footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.footer a:hover { color: var(--white); }

/* Legal pages */
.doc {
  background: var(--graphite);
  border-radius: 30px;
  padding: clamp(26px, 4vw, 48px);
  color: var(--text-soft);
}
.doc .display { font-size: clamp(48px, 7vw, 80px); color: var(--white); }
.doc .note {
  margin: 20px 0 8px;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--smoke);
  font-size: 15px;
}
.doc p { max-width: 680px; font-size: 17px; line-height: 1.55; }

:focus-visible { outline: 3px solid var(--ice); outline-offset: 3px; }

@media (max-width: 1080px) {
  .tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tab { min-height: 240px; }
}
@media (max-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-art { min-height: 340px; }
  .tabs { grid-template-columns: minmax(0, 1fr); }
  .tab { min-height: 0; }
  .tab .display { margin-top: 18px; }
  .tabs-head { flex-direction: column; align-items: flex-start; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .cta { transition: none; }
}
