:root {
  color-scheme: dark;
  --bg: #0d0d0d;
  --panel: #151515;
  --panel-2: #1f1f1f;
  --text: #ffffff;
  --muted: #9ca3af;
  --line: rgba(255, 255, 255, 0.13);
  --purple: #8b5cf6;
  --pink: #ec4899;
  --blue: #3b82f6;
  --orange: #f59e0b;
  --green: #22c55e;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 15% 5%, rgba(139, 92, 246, 0.32), transparent 30rem),
    radial-gradient(circle at 85% 15%, rgba(236, 72, 153, 0.2), transparent 26rem),
    linear-gradient(180deg, #080808, var(--bg) 34rem);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 8, 8, 0.82);
  backdrop-filter: blur(18px);
}

.brand,
.top-nav,
.site-footer nav,
.button-row,
.hero-actions,
.toggle-row,
.preview-toolbar {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, var(--purple), var(--pink)),
    var(--panel);
  box-shadow: 0 0 24px rgba(236, 72, 153, 0.5);
}

.top-nav {
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.top-nav a:hover {
  color: var(--text);
}

.language-select,
input,
textarea,
button {
  font: inherit;
}

.language-select,
input,
textarea {
  width: 100%;
  color: var(--text);
  border: 1px solid var(--line);
  background: #101010;
}

.language-select {
  width: auto;
  min-width: 132px;
  height: 40px;
  border-radius: 20px;
  padding: 0 14px;
}

main {
  display: grid;
  gap: 72px;
}

.hero,
.generator,
.template-section,
.info-band,
.faq {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 48px;
  min-height: 690px;
  align-items: center;
  padding-top: 34px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font: 700 13px/1.2 "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-family: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-text {
  max-width: 650px;
  color: #d8d8d8;
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.5;
}

.hero-actions {
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 29px;
  padding: 0 24px;
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
}

.button.primary {
  color: #070707;
  background: linear-gradient(135deg, #ffffff, #c7ffdf);
}

.button.ghost,
.button.secondary {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.07);
}

.hero-stack {
  position: relative;
  min-height: 520px;
}

.floating-card {
  position: absolute;
  display: grid;
  place-items: center;
  width: min(82%, 420px);
  min-height: 238px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 32px;
  padding: 32px;
  box-shadow: var(--shadow);
  font: 900 34px/1.05 "Space Grotesk", Inter, sans-serif;
  text-align: center;
}

.floating-card span {
  display: block;
  margin-top: 12px;
  font: 700 15px/1 "IBM Plex Mono", ui-monospace, monospace;
  color: var(--muted);
}

.poster-card {
  top: 0;
  right: 8%;
  background: radial-gradient(circle at 50% 100%, rgba(236, 72, 153, 0.55), transparent 45%), #15111f;
}

.receipt-card {
  top: 158px;
  left: 0;
  color: #111;
  background: #f4eadc;
  transform: rotate(-5deg);
}

.badge-card {
  right: 0;
  bottom: 8px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.96), rgba(236, 72, 153, 0.9), rgba(59, 130, 246, 0.95));
  transform: rotate(4deg);
}

.ad-band {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
}

.ad-slot {
  display: grid;
  min-height: 90px;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font: 700 13px/1.2 "IBM Plex Mono", ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.section-heading {
  margin-bottom: 26px;
}

.section-heading h2,
.info-band h2 {
  margin: 0;
  font-size: clamp(31px, 4vw, 54px);
  line-height: 1;
}

.workbench {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.control-panel,
.preview-panel,
.template-grid article,
.info-band,
.faq details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(21, 21, 21, 0.86);
  box-shadow: var(--shadow);
}

.control-panel {
  display: grid;
  gap: 18px;
  padding: 20px;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend,
label span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c0c0c;
}

.segment {
  min-width: 0;
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.segment.active {
  color: #111;
  background: #fff;
}

.input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

input,
textarea {
  border-radius: 8px;
  padding: 13px 14px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
.language-select:focus {
  border-color: rgba(139, 92, 246, 0.9);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
}

.toggle-row {
  gap: 18px;
  flex-wrap: wrap;
}

.switch {
  display: flex;
  align-items: center;
  gap: 8px;
}

.switch span {
  margin: 0;
}

.button-row {
  gap: 10px;
  flex-wrap: wrap;
}

.privacy-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.preview-panel {
  padding: 18px;
}

.preview-toolbar {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  color: var(--muted);
  font: 700 12px/1.2 "IBM Plex Mono", ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.card-preview {
  display: grid;
  place-items: center;
  min-height: 680px;
  border-radius: 8px;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.04) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.04) 75%),
    #0a0a0a;
  background-size: 28px 28px;
  overflow: hidden;
}

.card-preview svg {
  width: min(100%, 520px);
  height: auto;
  border-radius: 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.template-grid article {
  padding: 20px;
}

.template-grid h3 {
  margin: 0 0 10px;
}

.template-grid p,
.info-band p,
.faq p {
  color: #d5d5d5;
  line-height: 1.55;
}

.info-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 28px;
}

.faq {
  display: grid;
  gap: 12px;
  padding-bottom: 64px;
}

.faq details {
  padding: 18px 20px;
}

.faq summary {
  cursor: pointer;
  font-weight: 900;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer nav {
  gap: 14px;
}

@media (max-width: 1040px) {
  .hero,
  .workbench,
  .info-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding-top: 42px;
  }

  .hero-stack {
    min-height: 390px;
  }

  .template-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .generator,
  .template-section,
  .info-band,
  .faq,
  .ad-band {
    width: min(100% - 24px, 1180px);
  }

  .hero-stack {
    min-height: 320px;
  }

  .floating-card {
    min-height: 168px;
    padding: 20px;
    font-size: 24px;
  }

  .segmented {
    grid-template-columns: 1fr;
  }

  .input-grid,
  .template-grid {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .card-preview {
    min-height: 460px;
  }
}

/* TasteDrop product UI */
.tastedrop {
  background:
    radial-gradient(circle at 52% 16%, rgba(139, 92, 246, 0.26), transparent 24rem),
    radial-gradient(circle at 78% 44%, rgba(236, 72, 153, 0.12), transparent 28rem),
    linear-gradient(180deg, #050608, #07090d 48rem, #050608);
}

.app-shell {
  width: min(1450px, calc(100% - 48px));
  margin-inline: auto;
}

.tastedrop .site-header {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  margin-top: 10px;
  padding: 28px 48px;
  background: rgba(5, 6, 10, 0.88);
}

.brand-note {
  position: relative;
  width: 18px;
  height: 22px;
}

.brand-note::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 9px;
  height: 15px;
  border-left: 4px solid #a855f7;
  border-top: 4px solid #ec4899;
  transform: skewY(-12deg);
}

.brand-note::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ec4899;
}

.tastedrop .brand {
  font-size: 22px;
}

.tastedrop .top-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  gap: 34px;
  color: #fff;
  font-weight: 700;
}

.tastedrop .top-nav a {
  position: relative;
  padding-bottom: 14px;
}

.tastedrop .top-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #a855f7;
}

.auth-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 800;
}

.sign-up {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border-radius: 10px;
  padding: 0 20px;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.mobile-menu {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
}

.mobile-menu span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 6px auto;
  background: #fff;
}

main {
  gap: 46px;
}

.product-hero {
  display: grid;
  grid-template-columns: 450px minmax(0, 1fr);
  gap: 42px;
  min-height: 590px;
  align-items: center;
  padding: 36px 48px 28px;
  border-inline: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 62% 40%, rgba(139, 92, 246, 0.36), transparent 24rem),
    radial-gradient(circle at 95% 45%, rgba(236, 72, 153, 0.15), transparent 22rem),
    rgba(5, 6, 10, 0.86);
  overflow: hidden;
}

.product-hero h1 {
  max-width: 430px;
  font-size: clamp(50px, 5.1vw, 78px);
  line-height: 0.96;
}

.product-hero h1 span {
  color: #a855f7;
}

.product-hero .hero-text {
  max-width: 390px;
  margin-top: 28px;
  color: #d1d5db;
  font-size: 18px;
}

.social-proof {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 34px;
  color: #c9c9d3;
  font-size: 15px;
}

.social-proof strong {
  color: #c4b5fd;
}

.mini-avatar {
  width: 28px;
  height: 28px;
  margin-right: -12px;
  border: 2px solid #0b0b10;
  border-radius: 999px;
  background: linear-gradient(135deg, #f3c7a5, #2a1d17);
}

.mini-avatar.second {
  background: linear-gradient(135deg, #b8e0ff, #27324a);
}

.mini-avatar.third {
  margin-right: 6px;
  background: linear-gradient(135deg, #ffd0e4, #42333c);
}

.template-carousel {
  display: grid;
  grid-template-columns: repeat(4, 260px);
  gap: 22px;
  align-items: center;
  min-width: 0;
  transform: translateX(0);
}

.showcase-card {
  display: flex;
  height: 420px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 24px 80px rgba(139, 92, 246, 0.24);
  cursor: pointer;
  overflow: hidden;
}

.showcase-festival {
  position: relative;
  justify-content: center;
  gap: 22px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 85%, rgba(236, 72, 153, 0.65), transparent 42%),
    radial-gradient(circle at 30% 15%, rgba(139, 92, 246, 0.75), transparent 35%),
    #160d24;
}

.showcase-festival::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 88px;
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72)),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0 10px, transparent 10px 24px);
  opacity: 0.75;
}

.showcase-receipt {
  color: #111;
  background: #efe5d5;
  font-family: "Roboto Mono", "IBM Plex Mono", monospace;
}

.showcase-badge {
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.95), rgba(236, 72, 153, 0.78), rgba(59, 130, 246, 0.72));
}

.showcase-roast {
  background: #0b0b0b;
}

.showcase-radar {
  background:
    radial-gradient(circle at 50% 48%, rgba(236, 72, 153, 0.35), transparent 36%),
    #090b14;
}

.showcase-aura {
  background: linear-gradient(145deg, #8b5cf6, #ec4899, #3b82f6);
}

.showcase-title {
  font-size: 42px;
  font-weight: 900;
  line-height: 0.9;
  text-align: center;
}

.showcase-lines,
.showcase-festival strong,
.showcase-badge strong,
.showcase-roast strong,
.showcase-radar strong,
.showcase-aura strong {
  font-size: 30px;
  font-weight: 900;
  line-height: 1.28;
  text-align: center;
}

.showcase-festival strong {
  position: relative;
  z-index: 1;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 45px;
  line-height: 0.95;
  text-shadow: 0 0 22px rgba(255, 255, 255, 0.28);
}

.showcase-festival div,
.showcase-festival small {
  position: relative;
  z-index: 1;
  color: #f4e7ff;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.showcase-festival small {
  color: #f9a8d4;
  font-size: 11px;
  line-height: 1.6;
}

.generator {
  scroll-margin-top: 20px;
}

.flow-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 26px;
  align-items: stretch;
}

.builder-panel,
.result-phone {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  background: rgba(12, 14, 20, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 30px 80px rgba(0, 0, 0, 0.25);
}

.builder-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 18px 22px;
  align-content: start;
  min-height: 360px;
  padding: 34px;
}

.builder-panel .step-tabs {
  grid-column: 1 / -1;
}

.builder-panel h2,
.builder-panel > .muted-copy,
.favorite-entry,
.builder-panel > .chip-row,
.builder-panel > .counter,
.friend-input-panel {
  grid-column: 1;
}

.vibe-block,
.template-inline,
.tone-inline,
.builder-panel .generate-button,
.builder-panel .privacy-note {
  grid-column: 2;
}

.vibe-block {
  grid-row: 4 / span 4;
}

.template-inline {
  grid-row: 8;
}

.tone-inline {
  grid-row: 9;
}

.builder-panel .generate-button {
  grid-row: 10;
}

.builder-panel .privacy-note {
  grid-row: 11;
}

.step-tabs {
  display: grid;
  grid-template-columns: 34px auto 34px auto 34px auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 32px;
  color: #9ca3af;
}

.step-tabs span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.step-tabs .current {
  color: #fff;
  background: linear-gradient(135deg, #a855f7, #7c3aed);
}

.mode-switch {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.mode-option {
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  color: #9ca3af;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.mode-option.active {
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.28);
}

.builder-panel h2,
.vibe-block h3 {
  margin: 0;
}

.muted-copy {
  margin: 18px 0 14px;
  color: #9ca3af;
}

.favorite-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 94px;
  gap: 12px;
}

.favorite-entry input {
  min-height: 58px;
}

.favorite-entry button {
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  font-weight: 800;
  cursor: pointer;
}

.chip-row {
  display: flex;
  min-height: 46px;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.chip {
  display: inline-flex;
  height: 36px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  padding: 0 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  font-size: 14px;
}

.chip button {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.counter {
  margin: 8px 0 0;
  color: #9ca3af;
  text-align: right;
}

.vibe-block {
  margin-top: 0;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  padding: 20px;
  background: rgba(7, 9, 14, 0.62);
}

.vibe-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.vibe {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.vibe.active {
  border-color: #a855f7;
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.55) inset;
}

.template-inline {
  margin-top: 0;
}

.template-inline .segmented {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tone-inline {
  margin-top: 0;
}

.tone-segments {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.friend-input-panel {
  display: none;
  margin-top: 4px;
  border: 1px solid rgba(168, 85, 247, 0.22);
  border-radius: 14px;
  padding: 16px;
  background: rgba(168, 85, 247, 0.065);
}

.friend-input-panel.is-visible {
  display: grid;
  gap: 10px;
}

.friend-input-panel label {
  margin: 0;
  color: #c4b5fd;
  font-size: 13px;
  font-weight: 900;
}

.toggles-compact {
  display: none;
}

.generate-button,
.create-another {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(100deg, #7c3aed, #a855f7 48%, #ec4899);
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
}

.builder-panel .generate-button {
  align-self: end;
  margin-top: 0;
}

.result-phone {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 25%, rgba(139, 92, 246, 0.18), transparent 20rem),
    #070a10;
}

.phone-top,
.result-actions,
.pager {
  display: flex;
  align-items: center;
}

.phone-top {
  justify-content: space-between;
  font-weight: 900;
}

.phone-top button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  background: transparent;
}

.result-phone p {
  margin: 10px 0 0;
  color: #d1d5db;
  font-size: 22px;
  text-align: center;
}

.result-phone .card-preview {
  min-height: auto;
  border-radius: 18px;
  background: transparent;
}

.result-phone .card-preview svg {
  width: 100%;
  max-width: 330px;
}

.identity-insights {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.tiny-label,
.identity-insights span {
  color: #9ca3af;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.identity-insights strong {
  color: #fff;
  font-size: 22px;
  line-height: 1.05;
}

.identity-insights small {
  color: #d1d5db;
  line-height: 1.45;
}

.dna-bars {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.dna-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
}

.dna-row span,
.dna-row b {
  color: #f5f3ff;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

.dna-row b {
  text-align: right;
}

.dna-row i {
  grid-column: 1 / -1;
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.dna-row em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b5cf6, #ec4899);
}

.aura-row,
.friend-mode {
  display: grid;
  gap: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
}

.aura-row b {
  color: #f5f3ff;
}

.pager {
  justify-content: center;
  gap: 10px;
}

.pager span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

.pager .active {
  width: 22px;
  background: #8b5cf6;
}

.result-actions {
  gap: 12px;
}

.result-actions button {
  flex: 1;
  min-height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.share-caption-box {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.caption-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.share-caption-box span,
.share-loop-panel small {
  color: #c4b5fd;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.share-caption-box p {
  margin: 0;
  color: #fff;
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
}

.caption-head button,
.share-caption-box button {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.caption-variant-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.caption-variant {
  display: grid;
  gap: 5px;
  width: 100%;
  min-height: 0;
  padding: 10px;
  text-align: left;
}

.caption-variant.active {
  border-color: rgba(168, 85, 247, 0.86);
  background: rgba(168, 85, 247, 0.15);
}

.caption-variant b {
  color: #fff;
  font-size: 12px;
}

.caption-variant small {
  color: #d1d5db;
  font-size: 12px;
  line-height: 1.35;
}

.reverse-cta {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
  color: #f5f3ff !important;
  font-weight: 800;
}

.share-loop-panel {
  display: grid;
  gap: 10px;
}

.share-loop-panel button {
  display: grid;
  gap: 5px;
  min-height: 66px;
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 12px;
  padding: 12px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 20%, rgba(236, 72, 153, 0.14), transparent 7rem),
    rgba(255, 255, 255, 0.045);
  cursor: pointer;
  text-align: left;
}

.share-loop-panel strong {
  color: #fff;
  font-size: 14px;
  line-height: 1.25;
}

.try-link {
  color: #c4b5fd;
  text-align: center;
}

.template-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 18px;
}

.template-tile {
  display: grid;
  gap: 10px;
  border: 0;
  color: #d1d5db;
  background: transparent;
  cursor: pointer;
  text-align: center;
}

.template-tile em,
.template-tile i {
  color: #c4b5fd;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.template-tile small {
  color: #d1d5db;
  line-height: 1.35;
}

.template-tile i {
  color: #9ca3af;
  text-transform: none;
}

.template-library-copy {
  max-width: 760px;
  margin: 12px 0 0;
  color: #9ca3af;
  line-height: 1.55;
}

.template-tile .mini {
  display: grid;
  aspect-ratio: 0.78;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 12px;
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
}

.template-tile.active .mini {
  border-color: #a855f7;
  box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.4);
}

.festival-mini {
  background: radial-gradient(circle at 50% 85%, rgba(236, 72, 153, 0.7), transparent 46%), #160d24;
}

.receipt-mini {
  color: #111 !important;
  background: #efe5d5;
  font-family: "Roboto Mono", monospace;
}

.badge-mini {
  background: linear-gradient(145deg, #8b5cf6, #ec4899, #3b82f6);
}

.roast-mini {
  background: #111;
}

.friend-roast-mini {
  background:
    radial-gradient(circle at 85% 25%, rgba(236, 72, 153, 0.42), transparent 35%),
    #111;
}

.friend-comparison-mini {
  background:
    linear-gradient(90deg, rgba(139, 92, 246, 0.55) 0 49%, rgba(236, 72, 153, 0.55) 51%),
    #111827;
}

.radar-mini {
  background:
    radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.55), transparent 36%),
    #090b14;
}

.aura-mini {
  background: linear-gradient(145deg, #8b5cf6, #ec4899, #3b82f6);
}

.timeline-mini {
  background:
    linear-gradient(90deg, transparent 23%, rgba(255,255,255,.34) 24%, rgba(255,255,255,.34) 26%, transparent 27%),
    #111827;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  background: rgba(12, 14, 20, 0.86);
}

.feature-strip div {
  display: grid;
  grid-template-columns: 58px 1fr;
  column-gap: 14px;
  align-items: center;
}

.feature-strip small {
  grid-column: 2;
  color: #9ca3af;
}

.feature-icon {
  grid-row: span 2;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05));
}

.identity-roadmap {
  display: grid;
  gap: 20px;
}

.format-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.format-grid article {
  display: grid;
  gap: 12px;
  min-height: 210px;
  align-content: start;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  padding: 24px;
  background:
    radial-gradient(circle at 82% 12%, rgba(236, 72, 153, 0.18), transparent 9rem),
    rgba(12, 14, 20, 0.86);
}

.format-grid span {
  color: #c4b5fd;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.format-grid h3 {
  margin: 0;
  color: #fff;
  font-size: 26px;
}

.format-grid p {
  margin: 0;
  color: #9ca3af;
  line-height: 1.6;
}

.landing-page {
  min-height: 100vh;
  align-items: center;
  padding-block: 80px;
}

.landing-page section {
  display: grid;
  gap: 24px;
  max-width: 860px;
}

.landing-page h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(44px, 6vw, 82px);
  line-height: 0.98;
}

.landing-page p {
  max-width: 680px;
  color: #d1d5db;
  font-size: 20px;
  line-height: 1.6;
}

.landing-cta {
  display: inline-grid;
  width: fit-content;
  min-width: 280px;
  place-items: center;
  padding: 0 26px;
  text-decoration: none;
}

.landing-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  max-width: 820px;
}

.landing-link-grid a {
  display: grid;
  min-height: 52px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  font-weight: 900;
}

.mobile-tabbar {
  display: none;
}

@media (max-width: 1120px) {
  .product-hero,
  .flow-grid {
    grid-template-columns: 1fr;
  }

  .template-carousel {
    grid-template-columns: repeat(4, 220px);
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .showcase-card {
    height: 350px;
  }

  .result-phone {
    max-width: 440px;
    margin-inline: auto;
  }
}

@media (max-width: 920px) {
  .builder-panel {
    grid-template-columns: 1fr;
  }

  .builder-panel h2,
  .builder-panel > .muted-copy,
  .favorite-entry,
  .builder-panel > .chip-row,
  .builder-panel > .counter,
  .friend-input-panel,
  .vibe-block,
  .template-inline,
  .tone-inline,
  .builder-panel .generate-button,
  .builder-panel .privacy-note {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .vibe-grid,
  .template-inline .segmented {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .app-shell {
    width: min(100% - 20px, 430px);
  }

  .tastedrop .site-header {
    position: sticky;
    padding: 20px 18px;
    border-radius: 22px 22px 0 0;
  }

  .tastedrop .top-nav,
  .auth-actions {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .product-hero {
    min-height: auto;
    padding: 34px 18px 8px;
  }

  .product-hero h1 {
    max-width: 330px;
    font-size: 34px;
  }

  .product-hero .hero-text {
    max-width: 310px;
    margin-top: 18px;
    font-size: 15px;
  }

  .template-carousel {
    display: none;
  }

  .social-proof {
    margin-top: 22px;
    font-size: 12px;
  }

  .builder-panel {
    padding: 18px;
  }

  .mode-switch {
    grid-template-columns: repeat(3, 1fr);
  }

  .mode-option {
    min-height: 38px;
    font-size: 11px;
  }

  .step-tabs {
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
    gap: 8px;
  }

  .step-tabs b {
    display: none;
  }

  .favorite-entry {
    grid-template-columns: 1fr 76px;
  }

  .vibe-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .template-inline .segmented,
  .tone-segments {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tone-segments {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .result-phone {
    padding: 18px;
  }

  .template-picker,
  .format-grid,
  .feature-strip,
  .info-band {
    grid-template-columns: 1fr;
  }

  .mobile-tabbar {
    position: sticky;
    bottom: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: min(100% - 20px, 430px);
    margin: 0 auto 10px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    background: rgba(8, 9, 13, 0.92);
    backdrop-filter: blur(18px);
  }

  .mobile-tabbar a {
    display: grid;
    min-height: 44px;
    place-items: center;
    border-radius: 16px;
    color: #9ca3af;
    font-size: 12px;
  }

  .mobile-tabbar .active {
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
  }
}

@media (max-width: 430px) {
  .vibe-grid,
  .template-inline .segmented,
  .tone-segments {
    grid-template-columns: 1fr 1fr;
  }

  .tone-segments {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .result-actions {
    gap: 8px;
  }

  .result-actions button {
    min-height: 62px;
    padding-inline: 6px;
    font-size: 12px;
  }
}
