/* Curauti app-specific styles */

/* ================ LANG BANNER ================ */
.lang-banner {
  background: linear-gradient(90deg, #2A3A35 0%, #3D8A75 100%);
  color: #F5F0E8;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(245, 240, 232, 0.15);
}
.lang-banner.dismissed { display: none; }
.lang-banner-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
}
.lang-banner-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(245, 240, 232, 0.18);
  color: #F5F0E8;
  flex-shrink: 0;
}
.lang-banner-msg { flex: 1; color: rgba(245, 240, 232, 0.92); }
.lang-banner-close {
  background: transparent;
  border: 0;
  color: rgba(245, 240, 232, 0.7);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: inline-flex;
  flex-shrink: 0;
  transition: color 0.15s, background 0.15s;
}
.lang-banner-close:hover { color: #F5F0E8; background: rgba(245, 240, 232, 0.1); }
@media (max-width: 640px) {
  .lang-banner-inner { padding: 8px 0; }
  .lang-banner { font-size: 12px; }
  .lang-banner-tag { display: none; }
}

/* ================ NAV ================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 16px;
  color: var(--charcoal);
}
.logo .au { color: var(--teal); }
.logo svg { flex: 0 0 auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 8px 0;
  transition: color .15s ease;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: var(--teal);
}
.nav-actions { display: flex; align-items: center; gap: 12px; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  background: var(--bg-sunken);
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  flex-shrink: 0;
  flex-wrap: nowrap;
}
.lang-switch button,
nav .lang-switch button,
.nav .lang-switch button {
  font-size: 11.5px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  color: var(--ink-muted);
  transition: all .15s ease;
  letter-spacing: 0.02em;
  white-space: nowrap !important;
  word-break: keep-all;
  line-height: 1;
  flex-shrink: 0;
  min-width: max-content;
}
.lang-switch button.active {
  background: var(--bg-elev);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.mobile-toggle { display: none; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .mobile-toggle { display: inline-flex; }
  .nav-actions .btn-primary { display: none; }

  .nav.menu-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 14px 24px 20px;
    gap: 0;
    z-index: 49;
    box-shadow: 0 8px 24px rgba(42,58,53,0.08);
  }
  .nav.menu-open .nav-link {
    font-size: 16px;
    font-weight: 500;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
  }
  .nav.menu-open .nav-link:last-child {
    border-bottom: none;
  }
  .nav.menu-open .nav-link.active::after {
    display: none;
  }
  .nav.menu-open .mobile-toggle {
    background: var(--bg-sunken);
  }
}

/* ================ HERO ================ */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}
.hero-loop-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}
.hero-loop {
  width: 100%;
  max-width: 520px;
  height: auto;
}
.hero-loop path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawLoop 2.5s ease-out .2s forwards;
}
@keyframes drawLoop {
  to { stroke-dashoffset: 0; }
}
.hero h1 {
  font-size: clamp(44px, 7vw, 88px);
  text-align: center;
  max-width: 14ch;
  margin: 0 auto;
  font-style: italic;
}
.hero h1 .hl { color: var(--teal); font-style: italic; }
.hero-sub {
  text-align: center;
  max-width: 600px;
  margin: 24px auto 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  font-weight: 300;
  text-wrap: balance;
}
.hero-tagline {
  text-align: center;
  color: var(--teal);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

/* ================ ENTRY DOORS ================ */
.doors {
  padding: 20px 0 100px;
}
.doors-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  gap: 32px;
  flex-wrap: wrap;
}
.doors-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-style: italic;
  max-width: 20ch;
}
.doors-header p {
  max-width: 360px;
  color: var(--ink-muted);
  font-size: 14.5px;
}
.doors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 780px) {
  .doors-grid { grid-template-columns: 1fr; }
}

.door {
  position: relative;
  padding: 0;
  min-height: 280px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  transition: transform .25s ease, box-shadow .25s ease;
  cursor: pointer;
}
.door-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.door-media-ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 14px;
}
.door-media-label {
  font-family: ui-monospace, 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(42,58,53,0.78);
  color: var(--cream-light);
  padding: 4px 8px;
  border-radius: 4px;
}
.door-body-wrap {
  padding: 24px 28px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
.door-media-mint { background: repeating-linear-gradient(135deg, #8ECFB8 0, #8ECFB8 14px, #A5D8C4 14px, #A5D8C4 28px); }
.door-media-peach { background: repeating-linear-gradient(135deg, #F5B8A0 0, #F5B8A0 14px, #F8C6B1 14px, #F8C6B1 28px); }
.door-media-pink { background: repeating-linear-gradient(135deg, #E8879A 0, #E8879A 14px, #EDA1B0 14px, #EDA1B0 28px); }
.door-media-teal { background: repeating-linear-gradient(135deg, #3D8A75 0, #3D8A75 14px, #4FA088 14px, #4FA088 28px); }

/* Framed photo state for door media. Replaces the diagonal stripe placeholder
   when an actual photo is present. Solid color shows as a thin border around
   the inset image. */
.door-media.has-photo {
  padding: 5px;
  border-bottom: 0;
}
.door-media.has-photo.tone-mint  { background: var(--mint); }
.door-media.has-photo.tone-peach { background: var(--peach); }
.door-media.has-photo.tone-pink  { background: var(--pink); }
.door-media.has-photo.tone-teal  { background: var(--teal); }
.door-media.has-photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Match outer .door radius (24px) minus padding (5px) on top corners.
     Bottom stays flat since .door-media's bottom is straight where text begins. */
  border-radius: 19px 19px 0 0;
  display: block;
}

.door::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.35;
  transition: opacity .3s ease;
  pointer-events: none;
}
.door:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.door:hover::before { opacity: 0.55; }
.door:hover .door-cta { color: var(--teal-deep); }
.door:hover .door-cta svg { transform: translateX(4px); }

.door-mint::before { background: radial-gradient(130% 100% at 100% 0%, rgba(142,207,184,0.45), transparent 60%); }
.door-peach::before { background: radial-gradient(130% 100% at 100% 0%, rgba(245,184,160,0.5), transparent 60%); }
.door-pink::before { background: radial-gradient(130% 100% at 100% 0%, rgba(232,135,154,0.35), transparent 60%); }
.door-teal::before { background: radial-gradient(130% 100% at 100% 0%, rgba(61,138,117,0.3), transparent 60%); }

.door-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.door-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 32px;
  line-height: 1.05;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
  max-width: 14ch;
}
.door-body {
  font-size: 14.5px;
  color: var(--ink-soft);
  max-width: 40ch;
  line-height: 1.55;
  position: relative;
  z-index: 1;
}
.door-footer {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.door-magnet {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}
.door-magnet b { color: var(--ink); font-weight: 500; }
.door-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
  color: var(--teal);
  letter-spacing: 0.02em;
}
.door-cta svg { transition: transform .2s ease; }

/* ================ SECTIONS ================ */
.section {
  padding: 100px 0;
}
.section-sunken {
  background: var(--bg-sunken);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-h {
  max-width: 680px;
  margin-bottom: 56px;
}
.section-h h2 {
  font-size: clamp(36px, 5vw, 56px);
  font-style: italic;
  margin-top: 12px;
}
.section-h p {
  color: var(--ink-muted);
  font-size: 16px;
  margin-top: 16px;
  max-width: 58ch;
}

/* ================ PILLARS ================ */
.pillars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-elev);
}
.pillar {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
  position: relative;
}
.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--cream-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-deep);
  margin-bottom: 16px;
}
.pillar-icon.mint { background: rgba(142,207,184,0.4); color: var(--teal-deep); }
.pillar-icon.peach { background: rgba(245,184,160,0.45); color: #8B4A30; }
.pillar-icon.pink { background: rgba(232,135,154,0.35); color: #A64B60; }
.pillar-icon.teal { background: rgba(61,138,117,0.25); color: var(--teal-deep); }
.pillar-icon.charcoal { background: var(--charcoal); color: var(--cream-light); }
.pillar:last-child { border-right: none; }
.pillar-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  color: var(--teal);
}
.pillar-title {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 6px 0 10px;
  line-height: 1.15;
}
.pillar-desc {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 14px;
}
.pillar-stage {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillar { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .pillar:nth-child(2n) { border-right: none; }
  .pillar:last-child { border-bottom: none; grid-column: span 2; }
}
@media (max-width: 540px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: none; }
  .pillar:last-child { grid-column: span 1; }
}

/* ================ REGION STRIP ================ */
.region {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 44px;
  flex-wrap: wrap;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-sunken);
}
.region-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.region-country {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-soft);
}
.region-flag {
  width: 22px;
  height: 16px;
  border-radius: 3px;
  display: inline-block;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  flex-shrink: 0;
}
svg.region-flag { display: inline-block; }

/* ================ FOOTER ================ */
.footer {
  padding: 60px 0 40px;
  background: var(--charcoal);
  color: var(--cream-light);
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(245,240,232,0.12);
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.5);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  padding: 6px 0;
  color: var(--cream-light);
  opacity: 0.85;
}
.footer-col a:hover { opacity: 1; }
.footer-col a.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-col a.footer-social svg { flex-shrink: 0; }
.footer-brand p {
  font-size: 14px;
  opacity: 0.7;
  max-width: 38ch;
  margin-top: 14px;
  line-height: 1.6;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 12px;
  color: rgba(245,240,232,0.5);
  flex-wrap: wrap;
  gap: 12px;
}

/* ================ EMAIL CAPTURE ================ */
.email-form {
  display: flex;
  gap: 8px;
  max-width: 440px;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  padding: 6px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.email-form:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(61,138,117,0.15);
}
.email-form input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0 16px;
  font-size: 14.5px;
  outline: none;
  min-width: 0;
}
.email-form input::placeholder { color: var(--ink-muted); }
@media (max-width: 560px) {
  .email-form {
    flex-direction: column;
    border-radius: var(--r-lg);
    padding: 8px;
    gap: 6px;
    max-width: none;
  }
  .email-form input {
    padding: 14px 18px;
    background: var(--cream-light);
    border-radius: var(--r-md);
    height: 48px;
  }
  .email-form .btn {
    width: 100%;
    justify-content: center;
  }
}

.email-success {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(142,207,184,0.3);
  border: 1px solid rgba(61,138,117,0.3);
  border-radius: var(--r-pill);
  font-size: 14px;
  color: var(--teal-deep);
  max-width: 440px;
  animation: fadeUp .4s ease;
}
.email-success-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  animation: fadeUp .4s ease;
}

/* ================ DIRECTORY ================ */
.directory-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
}
@media (max-width: 880px) {
  .directory-layout { grid-template-columns: 1fr; }
}
.sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  align-self: start;
  height: fit-content;
}
.filter-group { margin-bottom: 28px; }
.filter-group h5 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 12px;
}
.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-soft);
  padding: 6px 0;
  cursor: pointer;
  user-select: none;
}
.filter-option input { accent-color: var(--teal); cursor: pointer; }
.filter-option span.count {
  margin-left: auto;
  font-size: 12px;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 0 20px;
  height: 54px;
  margin-bottom: 20px;
  transition: border-color .2s ease;
}
.search-bar:focus-within { border-color: var(--teal); }
.search-bar input {
  border: none;
  outline: none;
  background: transparent;
  flex: 1;
  font-size: 15px;
  min-width: 0;
}
.search-bar svg { color: var(--ink-muted); flex: 0 0 auto; }
.search-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--ink-muted);
}

.therapist {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 20px;
  padding: 24px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  margin-bottom: 12px;
  transition: border-color .2s ease, transform .15s ease, box-shadow .2s ease;
}
.therapist:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.therapist-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--cream-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 26px;
  font-style: italic;
  color: var(--teal);
  border: 1px solid var(--line);
}
.therapist-avatar.mint { background: rgba(142,207,184,0.35); }
.therapist-avatar.peach { background: rgba(245,184,160,0.4); color: #8B4A30; }
.therapist-avatar.pink { background: rgba(232,135,154,0.3); color: #A64B60; }
.therapist-main h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.therapist-role {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 10px;
}
.therapist-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.therapist-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--teal-deep);
  background: rgba(142,207,184,0.3);
  padding: 3px 8px;
  border-radius: var(--r-pill);
}

@media (max-width: 600px) {
  .therapist { grid-template-columns: 56px 1fr; }
  .therapist-avatar { width: 56px; height: 56px; font-size: 20px; }
  .therapist-actions { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ================ WORKSHEETS ================ */
.ws-hero {
  padding: 72px 0 40px;
  text-align: center;
}
.worksheet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .worksheet-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .worksheet-grid { grid-template-columns: 1fr; } }

.worksheet {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
  position: relative;
}
.worksheet-cover {
  aspect-ratio: 1 / 1.3;
  border-radius: var(--r-md);
  background: var(--cream-deep);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
}
.worksheet-cover.mint { background: linear-gradient(160deg, #8ECFB8 0%, #C7E5D6 100%); }
.worksheet-cover.peach { background: linear-gradient(160deg, #F5B8A0 0%, #FBD9C8 100%); }
.worksheet-cover.pink { background: linear-gradient(160deg, #E8879A 0%, #F3B5C1 100%); }
.worksheet-cover.teal { background: linear-gradient(160deg, #3D8A75 0%, #74B39F 100%); color: white; }
.worksheet-age {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 44px;
  color: var(--charcoal);
  line-height: 1;
}
.worksheet-age.inv { color: var(--cream-light); }
.worksheet-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-muted);
}
.worksheet h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.15;
}
.worksheet-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}
.ws-badge-free {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-deep);
  background: rgba(142,207,184,0.4);
  padding: 4px 10px;
  border-radius: var(--r-pill);
}
.ws-badge-member {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8B4A30;
  background: rgba(245,184,160,0.45);
  padding: 4px 10px;
  border-radius: var(--r-pill);
}

/* ================ MARKETPLACE ================ */
.market-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .market-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .market-grid { grid-template-columns: 1fr; } }

.product {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.product-image {
  aspect-ratio: 1;
  border-radius: var(--r-lg);
  background: var(--bg-elev);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-image.mint { background: repeating-linear-gradient(45deg, #8ECFB8, #8ECFB8 10px, #A4D8C4 10px, #A4D8C4 20px); }
.product-image.peach { background: repeating-linear-gradient(45deg, #F5B8A0, #F5B8A0 10px, #F8C6B1 10px, #F8C6B1 20px); }
.product-image.cream { background: repeating-linear-gradient(45deg, var(--cream-deep), var(--cream-deep) 10px, var(--cream) 10px, var(--cream) 20px); }
.product-image.teal { background: repeating-linear-gradient(45deg, #3D8A75, #3D8A75 10px, #4FA088 10px, #4FA088 20px); }
.product-image.pink { background: repeating-linear-gradient(45deg, #E8879A, #E8879A 10px, #EDA1B0 10px, #EDA1B0 20px); }
.product-image-tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-family: var(--font-mono), monospace;
  font-size: 10px;
  background: rgba(42,58,53,0.8);
  color: var(--cream-light);
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}
.product-creator {
  font-size: 12px;
  color: var(--ink-muted);
}
.product h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.15;
  margin-top: 4px;
}
.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
}
.product-price {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}

/* ================ ARTICLE ================ */
.article-hero {
  padding: 80px 0 48px;
  max-width: 820px;
  margin: 0 auto;
}
.article-hero .eyebrow { display: block; margin-bottom: 14px; }
.article-hero h1 {
  font-size: clamp(40px, 6.5vw, 76px);
  font-style: italic;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 26px;
  text-wrap: balance;
}
.article-hero .byline {
  font-size: 13px;
  color: var(--ink-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
}
.article-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 28px 0 72px;
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.article-body p { margin-bottom: 24px; }
.article-body h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.15;
  margin: 48px 0 18px;
  color: var(--ink);
}
.article-body blockquote {
  border-left: 3px solid var(--teal);
  padding: 8px 20px;
  margin: 24px 0;
  font-style: italic;
  color: var(--ink);
  background: var(--bg-sunken);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.article-disclaimer {
  margin-top: 32px;
  padding: 20px;
  background: var(--cream-deep);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 13px;
  font-style: italic;
  color: var(--ink-muted);
}

/* ================ DIAGNOSED LANDING ================ */
.diag-hero {
  padding-top: 90px;
  padding-bottom: 60px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 900px) { .diag-hero { grid-template-columns: 1fr; gap: 40px; padding-top: 60px; padding-bottom: 40px; } }

.diag-hero h1 {
  font-size: clamp(44px, 6vw, 72px);
  font-style: italic;
  line-height: 1.0;
}
.diag-hero .hl { color: var(--teal); font-style: italic; }
.diag-hero p {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.6;
  margin-top: 20px;
  max-width: 48ch;
}
.diag-card {
  position: relative;
  padding: 28px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.diag-card-cover {
  aspect-ratio: 1 / 1.3;
  background: linear-gradient(160deg, var(--cream) 0%, var(--cream-deep) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.diag-card h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 26px;
  margin-bottom: 6px;
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}
@media (max-width: 900px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps-grid { grid-template-columns: 1fr; } }

.step {
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--bg-elev);
  border: 1px solid var(--line);
}
.step-num {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--teal);
  color: var(--cream-light);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  margin-bottom: 14px;
}
.step h4 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  margin-bottom: 8px;
}
.step p { font-size: 14px; color: var(--ink-muted); }

/* About */
.about-hero h1 {
  font-size: clamp(48px, 7vw, 88px);
  font-style: italic;
  max-width: 14ch;
}
.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 40px;
}
@media (max-width: 800px) { .mission-grid { grid-template-columns: 1fr; } }
.mission-block .eyebrow { display: block; margin-bottom: 14px; }
.mission-block h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 26px;
  margin-bottom: 12px;
}
.mission-block p { color: var(--ink-soft); font-size: 15px; }

/* Signup */
.auth-shell {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 800px) { .auth-shell { grid-template-columns: 1fr; } }
.auth-form-wrap {
  padding: 60px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 560px;
  width: 100%;
  justify-self: center;
}
.auth-form-wrap h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 48px;
  margin-bottom: 12px;
}
.auth-form-wrap .sub {
  color: var(--ink-muted);
  margin-bottom: 32px;
  font-size: 15px;
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  background: var(--bg-elev);
  border-radius: var(--r-md);
  font-size: 15px;
  outline: none;
  transition: border-color .2s;
}
.field input:focus { border-color: var(--teal); }

.auth-visual {
  background: var(--cream-deep);
  position: relative;
  overflow: hidden;
  border-left: 1px solid var(--line);
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
@media (max-width: 800px) { .auth-visual { display: none; } }
.auth-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 30px;
  line-height: 1.3;
  color: var(--ink);
  max-width: 20ch;
}
.auth-quote-who {
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 14px;
}

/* Scroll to top */
.scroll-top-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--cream-light);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, background .2s ease;
}
.scroll-top-fab.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.scroll-top-fab:hover, .scroll-top-fab:focus-visible {
  background: var(--teal-deep);
  outline: none;
}

/* Tweaks panel */
.tweaks-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--cream-light);
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
}
.tweaks-panel {
  position: fixed;
  bottom: 74px;
  right: 20px;
  z-index: 100;
  width: 280px;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  display: none;
  animation: fadeUp .25s ease;
}
.tweaks-panel.open, .tweaks-fab.visible { display: flex; }
.tweaks-panel.open { flex-direction: column; gap: 14px; }
.tweaks-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
}
.tweaks-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}
.toggle {
  position: relative;
  width: 40px;
  height: 22px;
  background: var(--line-strong);
  border-radius: 999px;
  transition: background .2s;
  cursor: pointer;
}
.toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  transition: transform .2s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.toggle.on { background: var(--teal); }
.toggle.on::after { transform: translateX(18px); }

/* Modal */
.modal-back {
  position: fixed;
  inset: 0;
  background: rgba(42,58,53,0.5);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeUp .2s ease;
}
.modal {
  background: var(--bg-elev);
  border-radius: var(--r-xl);
  max-width: 480px;
  width: 100%;
  padding: 40px;
  position: relative;
  animation: fadeUp .3s ease;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
}
.modal-close:hover { background: var(--bg-sunken); }
.modal h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 32px;
  margin-bottom: 12px;
}
.modal p { color: var(--ink-soft); margin-bottom: 20px; font-size: 15px; }
