/* ============================================================
   PromptPat — shared stylesheet
   Palette: paper #F7F5F0 · ink #16150F · coral #FF4D2E
   ============================================================ */

:root {
  --paper: #F7F5F0;
  --paper-2: #EFEBE2;
  --ink: #16150F;
  --ink-soft: #46433A;
  --line: #DAD5C8;
  --coral: #FF4D2E;
  --coral-ink: #C9260A;
  --white: #FFFFFF;
  --radius: 14px;
  --maxw: 1240px;
  --disp: 'Space Grotesk', sans-serif;
  --body: 'Inter', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
  display: block;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--disp);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 999px;
  cursor: pointer;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  transition: transform .15s ease, background .15s ease, color .15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--coral {
  background: var(--coral);
  border-color: var(--coral);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--ink);
}

.btn--outline:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn--sm {
  padding: 9px 16px;
  font-size: 13px;
}

.btn--block {
  width: 100%;
  justify-content: center;
}

/* ---------- header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 240, .86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.head-row {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.logo img {
  width: 170px;
}



.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: 8px;
}

.nav>a {
  font-family: var(--disp);
  font-weight: 500;
  font-size: 15px;
  color: var(--ink-soft);
  transition: color .15s;
}

.nav>a:hover,
.nav>a.active {
  color: var(--ink);
}

.nav-dd {
  position: relative;
}

.nav-dd-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--disp);
  font-weight: 500;
  font-size: 15px;
  color: var(--ink-soft);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color .15s;
}

.nav-dd-btn:hover {
  color: var(--ink);
}

.nav-dd-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(22, 21, 15, .12);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, visibility .2s, transform .2s;
  z-index: 60;
}

.nav-dd:hover .nav-dd-menu {
  opacity: 1;
  visibility: visible;
}

.nav-dd-menu a {
  display: block;
  padding: 9px 14px;
  border-radius: 8px;
  font-family: var(--disp);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: background .15s, color .15s;
}

.nav-dd-menu a:hover {
  background: var(--paper-2);
  color: var(--ink);
}

.head-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  min-width: 180px;
  width: 230px;
  color: var(--ink-soft);
}

.head-search input {
  border: 0;
  background: transparent;
  outline: none;
  font-family: var(--body);
  font-size: 14px;
  width: 100%;
  color: var(--ink);
}

.head-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* user dropdown in header */
.head-user {
  position: relative;
}

.head-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px 0 6px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-family: var(--disp);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s;
}

.head-user-btn:hover {
  border-color: var(--coral);
}

.head-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--paper-2);
}

.head-user-dd {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(22, 21, 15, .14);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all .2s;
  z-index: 60;
}

.head-user:hover .head-user-dd,
.head-user-dd.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.head-user-dd a,
.head-user-dd button {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  font-family: var(--disp);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.head-user-dd a:hover,
.head-user-dd button:hover {
  background: var(--paper-2);
  color: var(--ink);
}

.head-user-dd .logout-btn {
  color: var(--coral-ink);
}

.head-user-dd .logout-btn:hover {
  background: #FFEBE4;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}

.burger span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 12px 24px 20px;
  max-height: calc(100vh - 70px);
  max-height: calc(100dvh - 70px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  font-family: var(--disp);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}

/* ---------- footer ---------- */
.site-foot {
  background: var(--ink);
  color: var(--paper);
  margin-top: 90px;
  padding: 64px 0 34px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}

.foot-brand .logo {
  color: var(--paper);
  font-size: 26px;
}

.foot-brand p {
  color: #A6A296;
  max-width: 320px;
  margin-top: 14px;
  font-size: 15px;
}

.foot-col h4 {
  font-family: var(--disp);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #7E7A6E;
  margin-bottom: 16px;
}

.foot-col a {
  display: block;
  color: #CFCBBF;
  padding: 6px 0;
  font-size: 15px;
  transition: color .15s;
}

.foot-col a:hover {
  color: var(--coral);
}

.foot-social {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.foot-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid #2C2A22;
  border-radius: 10px;
  color: #CFCBBF;
  transition: all .15s;
}

.foot-social a:hover {
  border-color: var(--coral);
  color: var(--coral);
  transform: translateY(-2px);
}

.foot-social svg {
  width: 18px;
  height: 18px;
}

.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid #2C2A22;
  color: #7E7A6E;
  font-size: 14px;
}

.foot-bottom .mono {
  font-family: var(--mono);
}

/* ---------- eyebrow / section heads ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--coral-ink);
}

.section {
  padding: 72px 0;
}

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
}

.sec-head h2 {
  font-family: var(--disp);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.05;
}

.sec-head p {
  color: var(--ink-soft);
  max-width: 440px;
  margin-top: 8px;
}

.see-all {
  font-family: var(--disp);
  font-weight: 600;
  color: var(--coral-ink);
  white-space: nowrap;
}

/* ---------- creation cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(22, 21, 15, .12);
}

.card-media {
  aspect-ratio: 4/5;
  position: relative;
  overflow: hidden;
}

.card-media .thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
}

.card-type {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(247, 245, 240, .92);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

.card-body {
  padding: 14px 16px 16px;
}

.card-body h3 {
  font-family: var(--disp);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.chip {
  font-size: 12px;
  color: var(--ink-soft);
  background: var(--paper-2);
  padding: 3px 9px;
  border-radius: 999px;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}

.card-foot .view {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 14px;
  color: var(--coral-ink);
}

/* ---------- PP stamp ---------- */
.pp-stamp {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ink);
  color: var(--paper);
  padding: 4px 9px;
  border-radius: 6px;
  letter-spacing: .04em;
}

.pp-stamp .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
}

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  padding: 16px 0 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.page-hero .eyebrow {
  margin-bottom: 14px;
}

.page-hero h1 {
  font-family: var(--disp);
  font-size: clamp(36px, 6vw, 62px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
}

.page-hero p {
  color: var(--ink-soft);
  max-width: 560px;
  margin-top: 18px;
  font-size: 18px;
}

/* ---------- breadcrumb ---------- */
.crumbs {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-soft);
  padding: 20px 0 16px;
}

.crumbs a {
  color: var(--coral-ink);
}

.crumbs span {
  margin: 0 8px;
}

/* ---------- toolbar / result count ---------- */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 0;
}

.result-count {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---------- rich content ---------- */
.rich {
  max-width: 760px;
}

.rich h2 {
  font-family: var(--disp);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 38px 0 14px;
}

.rich p {
  color: var(--ink-soft);
  font-size: 17px;
  margin-bottom: 16px;
}

.rich ul {
  color: var(--ink-soft);
  font-size: 17px;
  margin: 0 0 16px 20px;
}

.rich li {
  margin-bottom: 8px;
}

/* ---------- founder card ---------- */
.founder {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 34px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  margin: 10px 0 40px;
}

.founder-photo .photo-slot {
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid var(--line);
  display: flex;
  flex-direction: column;
  color: var(--ink-soft);
}

.founder-photo .photo-slot img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
}

.founder-photo .photo-slot span {
  font-family: var(--mono);
  font-size: 12px;
  text-align: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.founder-text h3 {
  font-family: var(--disp);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-top: 4px;
}

.founder-text .role {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--coral-ink);
  margin-bottom: 14px;
}

.founder-text p {
  color: var(--ink-soft);
  font-size: 16px;
  margin-bottom: 12px;
}

.founder-traits {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.trait {
  font-family: var(--disp);
  font-weight: 500;
  font-size: 13px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 6px 13px;
  border-radius: 999px;
}

/* ---------- values grid ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.value {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}

.value .n {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--coral-ink);
  letter-spacing: .1em;
}

.value h3 {
  font-family: var(--disp);
  font-size: 18px;
  font-weight: 600;
  margin: 10px 0 6px;
}

.value p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- job listings ---------- */
.job {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 14px;
  transition: border-color .15s;
}

.job:hover {
  border-color: var(--coral);
}

.job h3 {
  font-family: var(--disp);
  font-size: 19px;
  font-weight: 600;
}

.job .meta {
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 4px;
}

.job .tags {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.job .tag {
  font-family: var(--mono);
  font-size: 12px;
  background: var(--paper-2);
  padding: 4px 10px;
  border-radius: 999px;
}

/* ---------- form fields ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 720px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 14px;
}

.field input,
.field textarea,
.field select {
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--body);
  font-size: 15px;
  background: var(--white);
  color: var(--ink);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--ink);
  outline: none;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field .err {
  display: none;
  color: var(--coral-ink);
  font-size: 13px;
  margin-top: 4px;
}

.field.invalid input,
.field.invalid textarea,
.field.invalid select {
  border-color: var(--coral);
}

.field.invalid .err {
  display: block;
}

/* ---------- contact cards ---------- */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 30px 0 40px;
}

.cc {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}

.cc .ico {
  width: 30px;
  height: 30px;
  color: var(--coral);
  margin-bottom: 14px;
}

.cc h3 {
  font-family: var(--disp);
  font-size: 18px;
  font-weight: 600;
}

.cc p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 6px 0 0;
}

.cc a {
  color: var(--coral-ink);
  font-weight: 600;
}

/* ---------- FAQ accordion ---------- */
.faq {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq summary {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 17px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq[open] summary {
  border-bottom: 1px solid var(--line);
}

.faq .a {
  padding: 16px 20px;
  color: var(--ink-soft);
}

/* ---------- legal pages ---------- */
.legal {
  max-width: 760px;
  margin: 0 auto;
}

.legal .updated {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 30px;
}

.legal h2 {
  font-family: var(--disp);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 34px 0 12px;
}

.legal h3 {
  font-family: var(--disp);
  font-size: 18px;
  font-weight: 600;
  margin: 22px 0 8px;
}

.legal p {
  color: var(--ink-soft);
  font-size: 16px;
  margin-bottom: 14px;
}

.legal ul {
  color: var(--ink-soft);
  font-size: 16px;
  margin: 0 0 14px 22px;
}

.legal li {
  margin-bottom: 8px;
}

.legal a {
  color: var(--coral-ink);
  font-weight: 600;
}

.legal .note {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  font-size: 15px;
  color: var(--ink-soft);
  margin: 20px 0;
}

/* ---------- 404 / error pages ---------- */
.nf {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 0;
}

.nf .code,
.nf .nf-code {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .2em;
  color: var(--coral-ink);
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 999px;
}

.nf h1 {
  font-family: var(--disp);
  font-size: clamp(38px, 7vw, 72px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
  margin: 22px 0 14px;
}

.nf p {
  color: var(--ink-soft);
  font-size: 18px;
  max-width: 440px;
  margin-bottom: 28px;
}

.nf .actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- homepage hero ---------- */
.hero {
  padding: 40px 0;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 50px;
  align-items: center;
}

.hero h1 {
  font-family: var(--disp);
  font-size: clamp(35px, 6.4vw, 55px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: .96;
}

.hero h1 em {
  font-style: normal;
  color: var(--coral);
}

.hero .lead {
  font-size: 20px;
  color: var(--ink-soft);
  max-width: 480px;
  margin: 22px 0 26px;
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 8px 8px 8px 20px;
  max-width: 500px;
}

.hero-search input {
  border: 0;
  outline: none;
  background: transparent;
  font-family: var(--body);
  font-size: 16px;
  width: 100%;
  color: var(--ink);
}

.trending {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 22px;
}

.trending .lbl {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.trending .tag {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: 999px;
}

.trending .tag:hover {
  border-color: var(--coral);
  color: var(--coral-ink);
}

.hero-visual {
  position: relative;
}

.reel {
  position: relative;
}

.reel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.reel-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  background: linear-gradient(to top, rgba(0, 0, 0, .55), transparent 55%);
  color: #fff;
}

.reel-overlay .q {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 22px;
}

.reel-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 13px;
  background: var(--coral);
  padding: 8px 12px;
  border-radius: 8px;
  align-self: flex-start;
}

.reel-float {
  position: absolute;
  top: 20px;
  right: -16px;
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 12px 24px rgba(22, 21, 15, .14);
  transform: rotate(3deg);
}

.reel-float .mono {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
}

.reel-float small {
  display: block;
  font-size: 11px;
  color: var(--ink-soft);
}

/* stat strip */
.stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  margin-top: 30px;
}

.stat b {
  font-family: var(--disp);
  font-size: 30px;
  font-weight: 700;
  display: block;
  letter-spacing: -.02em;
}

.stat span {
  font-size: 14px;
  color: var(--ink-soft);
}

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

.cat-tile {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 16px;
  transition: transform .16s, border-color .16s;
  position: relative;
  overflow: hidden;
}

.cat-tile:hover {
  transform: translateY(-4px);
  border-color: var(--coral);
}

.cat-tile .ico {
  width: 34px;
  height: 34px;
  color: var(--coral);
  margin-bottom: 40px;
}

.cat-tile h3 {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 17px;
}

.cat-tile p {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 2px;
}

.cat-tile .n {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
}

/* how it works loop */
.loop {
  background: var(--ink);
  color: var(--paper);
  border-radius: 26px;
  padding: 54px;
  margin-top: 20px;
}

.loop h2 {
  font-family: var(--disp);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -.02em;
}

.loop-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 34px;
}

.loop-step .num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--coral);
  letter-spacing: .1em;
}

.loop-step h3 {
  font-family: var(--disp);
  font-size: 22px;
  font-weight: 600;
  margin: 8px 0 6px;
}

.loop-step p {
  color: #A6A296;
  font-size: 15px;
}

/* ---------- prompt guide (how-to + tips) ---------- */
.howto {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 28px;
  margin-top: 26px;
}

.howto h2 {
  font-family: var(--disp);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 6px;
}

.howto .sub {
  color: var(--ink-soft);
  font-size: 15px;
  margin-bottom: 20px;
}

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 14px;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: start;
}

.steps li::before {
  content: counter(step);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  font-family: var(--disp);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps li h4 {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 16px;
}

.steps li p {
  color: var(--ink-soft);
  font-size: 14px;
  margin-top: 1px;
}

.checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--ink);
}

.check svg {
  width: 15px;
  height: 15px;
  color: #1B7A3D;
}

.tips {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 26px;
}

.tips h2 {
  font-family: var(--disp);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 14px;
}

.tips ul {
  list-style: none;
  display: grid;
  gap: 12px;
}

.tips li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--ink-soft);
  font-size: 15px;
}

.tips li svg {
  width: 20px;
  height: 20px;
  color: var(--coral);
  margin-top: 1px;
}

.tips li b {
  color: var(--ink);
}

/* ---------- pagination ---------- */
.pagination-wrap {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.pagination li a,
.pagination li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  transition: all .14s;
}

.pagination li a:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.pagination li.active span {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.pagination li.disabled span {
  color: var(--line);
  cursor: default;
}

/* ---------- flash messages ---------- */
.flash {
  max-width: var(--maxw);
  margin: 16px auto;
  padding: 14px 20px;
  border-radius: 10px;
  font-family: var(--disp);
  font-weight: 500;
  font-size: 15px;
}

.flash--success {
  background: #E8F5E9;
  border: 1px solid #A5D6A7;
  color: #1B5E20;
}

.flash--error {
  background: #FFEBEE;
  border: 1px solid #EF9A9A;
  color: #B71C1C;
}

.auth-wrap .flash {
  max-width: 100%;
  margin: 0 0 20px;
  font-size: 14px;
  padding: 12px 16px;
}

.auth-wrap .flash p {
  margin: 0;
}

/* ---------- blog chips ---------- */
.blog-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 28px 0 30px;
}

.blog-chip {
  font-family: var(--mono);
  font-size: 13px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--ink-soft);
  transition: border-color .15s, color .15s, background .15s;
}

.blog-chip:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.blog-chip.active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

/* ---------- blog article layout ---------- */
.blog-article-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
}

.blog-toc-col {
  position: relative;
}

.blog-toc {
  position: sticky;
  top: 80px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 16px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.blog-toc::-webkit-scrollbar {
  width: 4px;
}

.blog-toc::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 4px;
}

.blog-toc-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-toc-links li {
  margin-bottom: 8px;
}

.blog-toc-links a {
  font-size: 13px;
  color: var(--ink-soft);
  transition: color .15s;
  line-height: 1.4;
  display: block;
}

.blog-toc-links a:hover {
  color: var(--ink);
}

/* ---------- blog cards ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(22, 21, 15, .12);
}

.blog-card .thumb-wrap {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.blog-card .thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.blog-card .card-body {
  padding: 16px;
}

.blog-card .card-body h3 {
  font-family: var(--disp);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.blog-card .card-body h3 a {
  color: var(--ink);
}

.blog-card .card-body h3 a:hover {
  color: var(--coral-ink);
}

.blog-card .card-body p {
  color: var(--ink-soft);
  font-size: 14px;
  margin-top: 6px;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card .card-body .card-meta {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--ink-soft);
  font-family: var(--mono);
}

/* ---------- blog article ---------- */
.article-content {
  max-width: 760px;
  margin: 0 auto;
}

.article-content h2 {
  font-family: var(--disp);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 38px 0 14px;
}

.article-content h3 {
  font-family: var(--disp);
  font-size: 22px;
  font-weight: 600;
  margin: 28px 0 10px;
}

.article-content p {
  color: var(--ink-soft);
  font-size: 17px;
  margin-bottom: 16px;
}

.article-content img {
  border-radius: var(--radius);
  margin: 20px 0;
  height: auto;
}

.article-content ul,
.article-content ol {
  color: var(--ink-soft);
  font-size: 17px;
  margin: 0 0 18px 24px;
  line-height: 1.7;
}

.article-content ol {
  list-style: decimal;
}

.article-content ul {
  list-style: disc;
}

.article-content li {
  margin-bottom: 8px;
  padding-left: 4px;
}

.article-content li::marker {
  color: var(--coral);
}

.article-content blockquote {
  border-left: 3px solid var(--coral);
  padding: 16px 22px;
  margin: 24px 0;
  background: var(--paper-2);
  border-radius: 0 10px 10px 0;
  color: var(--ink-soft);
  font-size: 17px;
  font-style: italic;
  line-height: 1.65;
}

.article-content blockquote p {
  margin-bottom: 0;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
  overflow-x: auto;
  display: block;
}

.article-content thead th {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-align: left;
  padding: 12px 16px;
}

.article-content thead th:first-child {
  border-radius: 8px 0 0 0;
}

.article-content thead th:last-child {
  border-radius: 0 8px 0 0;
}

.article-content tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  vertical-align: top;
}

.article-content tbody tr:last-child td {
  border-bottom: none;
}

.article-content tbody td:first-child {
  color: var(--ink);
  font-weight: 600;
}

.article-content figcaption,
.article-content caption {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
  padding: 8px 0 4px;
  caption-side: bottom;
}

.article-content figure {
  margin: 24px 0;
}

.article-content pre,
.article-content code {
  font-family: var(--mono);
}

.article-content pre {
  background: var(--ink);
  color: var(--paper);
  padding: 18px 20px;
  border-radius: 10px;
  overflow-x: auto;
  margin: 20px 0;
  font-size: 14px;
}

.article-content a {
  color: var(--coral-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--coral);
  padding-bottom: 1px;
  transition: border-color .15s;
}

.article-content a u {
  text-decoration: none;
}

.article-content a:hover {
  border-bottom-color: transparent;
}

/* ---------- blog author ---------- */
.author-header {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}

.author-header .avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-header .author-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-2);
  font-family: var(--disp);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink-soft);
}

.author-header h1 {
  font-family: var(--disp);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
}

.author-role {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 2px;
}

.author-bio {
  padding-bottom: 28px;
  margin-bottom: 36px;
  border-bottom: 1.5px solid var(--line);
}

.author-bio p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

.author-meta {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
}

.author-meta a {
  color: var(--coral-ink);
}

.author-meta a:hover {
  color: var(--coral);
}

/* ---------- comments ---------- */
.comments-section {
  padding-top: 10px;
}

.comments-section h2 {
  font-family: var(--disp);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
}

.comment-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.comment-item .comment-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.comment-item .comment-head .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.comment-item .comment-head .name {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 14px;
}

.comment-item .comment-head .date {
  font-size: 12px;
  color: var(--ink-soft);
}

.comment-item .comment-body {
  font-size: 15px;
  color: var(--ink-soft);
}

.comment-form textarea {
  width: 100%;
}

/* ---------- auth pages ---------- */
.auth-wrap {
  max-width: 440px;
  margin: 60px auto;
}

.auth-wrap h1 {
  font-family: var(--disp);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}

.auth-wrap .sub {
  color: var(--ink-soft);
  margin-bottom: 30px;
}

.auth-wrap .form-grid {
  grid-template-columns: 1fr;
  max-width: 100%;
}

.auth-wrap .alt {
  text-align: center;
  margin-top: 24px;
  font-size: 15px;
  color: var(--ink-soft);
}

.auth-wrap .alt a {
  color: var(--coral-ink);
  font-weight: 600;
}

/* ---------- user dashboard ---------- */
.dash-head {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 30px 0;
}

.dash-head .avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--paper-2);
  border: 2px solid var(--line);
  object-fit: cover;
}

.dash-head h2 {
  font-family: var(--disp);
  font-size: 24px;
  font-weight: 700;
}

.dash-head p {
  color: var(--ink-soft);
  font-size: 14px;
}

/* ---------- prompt board detail ---------- */
.board-detail-hero {
  padding: 16px 0 28px;
  border-bottom: 1.5px solid var(--line);
  margin-bottom: 32px;
}

.board-detail-hero .cover {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.board-detail-hero h1 {
  font-family: var(--disp);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
}

.board-detail-hero p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
  margin-top: 10px;
  max-width: 640px;
}

.board-detail-hero .board-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
}

.board-detail-hero .board-meta .chip {
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-family: var(--mono);
  color: var(--ink-soft);
}

.prompt-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  break-inside: avoid;
  margin-bottom: 22px;
}

.prompt-item .prompt-img {
  width: 100%;
}

.prompt-item .prompt-body {
  padding: 16px;
}

.prompt-item .prompt-body h3 {
  font-family: var(--disp);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
}

.prompt-box {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
  white-space: pre-wrap;
  word-break: break-word;
}

.copy-prompt-btn {
  margin-top: 12px;
  width: 100%;
}

.copy-prompt-btn.copied {
  background: #1B7A3D;
  border-color: #1B7A3D;
}

/* masonry layout for prompts */
.masonry {
  column-count: 4;
  column-gap: 22px;
}

@media (max-width: 1200px) {
  .masonry {
    column-count: 3;
  }
}

@media (max-width: 900px) {
  .masonry {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .masonry {
    column-count: 1;
  }
}

/* ---------- search results ---------- */
.search-wrap {
  padding: 40px 0;
}

.search-wrap h1 {
  font-family: var(--disp);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 6px;
}

.search-wrap .query {
  color: var(--coral-ink);
}

.search-wrap .count {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 30px;
}

/* ---------- prompt box collapse ---------- */
.prompt-box.collapsible {
  max-height: 120px;
  overflow: hidden;
  position: relative;
}

.prompt-box.collapsible::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--paper-2));
  pointer-events: none;
}

.prompt-box.collapsible.expanded {
  max-height: none;
}

.prompt-box.collapsible.expanded::after {
  display: none;
}

.prompt-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  align-items: stretch;
}

.prompt-actions .copy-prompt-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  margin: 0;
  padding: 0 16px;
  width: auto;
  font-size: 13px;
  font-weight: 600;
  border-radius: 50px;
}

.prompt-actions .copy-prompt-btn svg {
  flex-shrink: 0;
}

.prompt-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}

.prompt-toggle svg {
  flex-shrink: 0;
}

.prompt-toggle:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--paper-2);
}

.prompt-toggle.active svg {
  transform: rotate(90deg);
}

/* ---------- password toggler ---------- */
.field-pw {
  position: relative;
  width: 100%;
}

.field-pw input {
  padding-right: 44px;
  width: 100%;
}

.pw-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-soft);
  padding: 4px;
  display: flex;
  align-items: center;
}

.pw-toggle:hover {
  color: var(--ink);
}

.pw-toggle svg {
  width: 20px;
  height: 20px;
}

/* ---------- search prompt matches ---------- */
.prompt-match {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.prompt-match-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  transition: transform .15s, box-shadow .15s;
}

.prompt-match-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(22, 21, 15, .1);
}

.prompt-match-card h4 {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 8px;
}

.prompt-match-card .prompt-preview {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-height: 72px;
  overflow: hidden;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.prompt-match-card .pm-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.prompt-match-card .pm-foot .pm-board {
  font-size: 12px;
  color: var(--coral-ink);
  font-weight: 600;
}

/* ---------- how-to-use page ---------- */
.loop-steps-4 {
  grid-template-columns: repeat(4, 1fr);
}

.types-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

/* utility */
.mono {
  font-family: var(--mono);
}

.center {
  text-align: center;
}

.mt-40 {
  margin-top: 40px;
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

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

  .loop-steps,
  .loop-steps-4 {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 820px) {

  .nav,
  .head-search,
  .head-actions {
    display: none;
  }

  .burger {
    display: flex;
    margin-left: auto;
  }

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

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 360px;
  }

  .values,
  .contact-cards {
    grid-template-columns: 1fr;
  }

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

  .job {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .blog-article-layout {
    grid-template-columns: 1fr;
  }

  .blog-toc-col {
    display: none;
  }

  .prompt-match {
    grid-template-columns: 1fr;
  }

  .loop {
    padding: 34px;
  }

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

}

@media (max-width: 480px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .section {
    padding: 48px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- cookie consent popup ---------- */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  display: flex;
  max-width: 420px;
  animation: cookieSlideUp .4s ease-out;
}

@keyframes cookieSlideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(22, 21, 15, .18), 0 4px 12px rgba(22, 21, 15, .08);
}

.cookie-text {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
}

.cookie-text svg {
  color: var(--coral);
  flex-shrink: 0;
  margin-top: 2px;
}

.cookie-text a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-text a:hover {
  color: var(--coral);
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

.cookie-actions .btn {
  flex: 1;
  justify-content: center;
}

@media (max-width: 480px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }
}

/* ---------- cookie table (cookie policy page) ---------- */
.legal .cookie-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 28px;
  font-size: 14px;
  min-width: 480px;
}

.cookie-table th,
.cookie-table td {
  text-align: left;
  padding: 10px 14px;
  border: 1px solid var(--line);
}

.cookie-table th {
  background: var(--paper-2);
  font-family: var(--disp);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.cookie-table code {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--paper-2);
  padding: 2px 6px;
  border-radius: 4px;
}