/* Tinta Piel — shared visual polish. Content stays untouched. */
:root {
  --site-max: 74rem;
  --read-max: 68ch;
  --site-shadow-soft: 0 18px 48px -34px rgba(52, 38, 15, .34);
  --site-shadow-lift: 0 24px 58px -32px rgba(52, 38, 15, .42);
}

html { scroll-behavior: smooth; }
body.site-page {
  background:
    radial-gradient(70rem 34rem at 8% -12rem, rgba(201, 138, 38, .09), transparent 64%),
    var(--paper);
}
body.site-page :where(h1, h2, h3, p) { text-wrap: pretty; }
body.site-page :where(h1, h2) { text-wrap: balance; }
body.site-page ::selection { background: var(--accent); color: #fffaf0; }
body.site-page :where(a, button, input, [tabindex]):focus-visible {
  outline: 3px solid rgba(201, 138, 38, .58);
  outline-offset: 3px;
}
body.site-page :where(button, .btn, .gcard, .card, .rel-card, .style-card):active {
  transform: translateY(1px) scale(.992);
}

/* Shared shell */
body.site-page .wrap,
body.site-page .nav-in,
body.site-page .foot { max-width: var(--site-max); }
body.site-page .nav {
  background: rgba(246, 243, 235, .9);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .65);
}
body.site-page .nav-in { min-height: 64px; }
body.site-page .brand { flex: 0 0 auto; justify-self: start; }
body.site-page .nav-in {
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
  align-items: center;
  width: 100%;
  max-width: none;
  padding-inline: clamp(1rem, 2.5vw, 3rem);
}
body.site-page .nav-links {
  justify-content: center;
  min-width: 0;
  grid-column: 2;
  justify-self: center;
  margin-left: 0;
}
body.site-page .nav-actions {
  grid-column: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  white-space: nowrap;
  justify-self: end;
}
body.site-page .nav-actions .btn-sm { width: auto; }
body.site-page .nav-menu-toggle { display: none; }
body.site-page .nav-links a {
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}
body.site-page .nav-links a:hover { transform: translateY(-1px); }
body.site-page .nav-link-active,
body.site-page .nav-links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }

body.site-page footer { margin-top: clamp(3.8rem, 8vw, 7rem); }
body.site-page .foot { padding-top: 2rem; padding-bottom: 2.5rem; }
body.site-page .foot a { transition: color .2s ease; }

/* Home */
body.home-page .hero {
  position: relative;
  padding-top: clamp(3.6rem, 8vw, 6.5rem);
  padding-bottom: clamp(2rem, 4vw, 3.4rem);
}
body.home-page .hero::before {
  content: "";
  position: absolute;
  width: min(38rem, 82vw);
  height: min(38rem, 82vw);
  left: 50%;
  top: -52%;
  transform: translateX(-50%);
  border: 1px solid rgba(201, 138, 38, .18);
  border-radius: 50%;
  pointer-events: none;
}
body.home-page .hero h1 {
  max-width: 15ch;
  margin-inline: auto;
  font-size: clamp(2.6rem, 6.4vw, 4.7rem);
  letter-spacing: -.035em;
  line-height: 1.02;
}
body.home-page .hero p { max-width: 58ch; font-size: clamp(.98rem, 1.4vw, 1.1rem); }
body.home-page .gtitle { text-align: left; padding: 0; margin-top: 1rem; }
body.home-page .grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(17rem, .8fr);
  grid-template-rows: repeat(2, minmax(12rem, 1fr));
  gap: 1rem;
  padding-top: 1.4rem;
}
body.home-page .gcard {
  border-width: 1px;
  box-shadow: var(--site-shadow-soft);
  transition: transform .24s var(--ease), box-shadow .24s var(--ease), border-color .24s var(--ease);
}
body.home-page .gcard:hover {
  transform: translateY(-4px);
  box-shadow: var(--site-shadow-lift);
  border-color: #cfc8b2;
}
body.home-page .gcard:first-child { grid-row: 1 / span 2; }
body.home-page .gcard:first-child .gimg { flex: 1; min-height: 25rem; }
body.home-page .gcard:first-child .gimg img { height: 100%; aspect-ratio: auto; }
body.home-page .gcard:not(:first-child) { display: grid; grid-template-columns: 42% 1fr; }
body.home-page .gcard:not(:first-child) .gimg img { height: 100%; aspect-ratio: auto; }
body.home-page .gtxt { justify-content: center; }
body.home-page .gtxt em { margin-top: auto; padding-top: .65rem; }
body.home-page .prose {
  max-width: 52rem;
  padding-top: clamp(2rem, 4vw, 3.8rem);
}
body.home-page .prose h2 { font-size: clamp(1.65rem, 3vw, 2.2rem); letter-spacing: -.02em; }
body.home-page .prose p { max-width: var(--read-max); }
body.home-page .band {
  border-radius: 1.35rem;
  box-shadow: 0 28px 70px -38px rgba(27, 23, 16, .72);
}

/* Editorial article pages */
body.article-page .hero {
  padding-top: clamp(3.5rem, 7vw, 6rem);
  padding-bottom: clamp(1.8rem, 4vw, 3rem);
}
body.article-page .hero h1 {
  max-width: 17ch;
  font-size: clamp(2.7rem, 6.2vw, 5rem);
  letter-spacing: -.035em;
}
body.article-page .hero .lede { max-width: 58ch; }
body.article-page #galeria { padding-top: clamp(3rem, 6vw, 5rem); }
body.article-page #galeria > .wrap > .grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
body.article-page #galeria .card {
  border-width: 1px;
  box-shadow: var(--site-shadow-soft);
}
body.article-page #galeria .card:first-child { grid-column: span 2; }
body.article-page #galeria .card:first-child img { aspect-ratio: 2 / 1.25; }
body.article-page .card .body { padding: 1.05rem 1.1rem 1.15rem; }
body.article-page .card .name { font-size: 1.02rem; }
body.article-page .card .meta { min-height: 2.65em; }
body.article-page .pchip { min-height: 38px; }
body.article-page .guide-block .prose { max-width: var(--read-max); font-size: 1.015rem; line-height: 1.82; }
body.article-page .guide-block + .guide-block {
  padding-top: clamp(2.8rem, 5vw, 4.5rem);
  border-top: 1px solid var(--line);
}
body.article-page .gfig,
body.article-page .gwide { border-radius: 1rem; box-shadow: var(--site-shadow-soft); }
body.article-page .band-dark {
  border-block: 1px solid rgba(201, 138, 38, .22);
  box-shadow: inset 0 1px rgba(255, 255, 255, .035);
}
body.article-page .faq { max-width: 56rem; }
body.article-page .rel-card { box-shadow: var(--site-shadow-soft); }

/* Simple text pages and the guide index */
body.simple-page .lg,
body.not-found-page .lg { max-width: 48rem; padding-top: clamp(3.8rem, 8vw, 6.5rem); }
body.simple-page .lg h1,
body.not-found-page .lg h1 {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  letter-spacing: -.03em;
  line-height: 1.04;
}
body.simple-page .lg .lg-lede { font-size: 1.08rem; }
body.simple-page .lg h2 {
  margin-top: 3rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: clamp(1.35rem, 2.8vw, 1.7rem);
}
body.simple-page .lg p,
body.simple-page .lg li { line-height: 1.88; }
body.simple-page .lg ul { padding-left: 1.4rem; }
body.simple-page .lg li::marker { color: var(--accent-deep); }
body.simple-page .upd { padding-top: 1.4rem; border-top: 1px solid var(--line); }

/* Pricing */
body.pricing-page .hero { padding-top: clamp(3.8rem, 8vw, 6rem); }
body.pricing-page .hero h1 {
  max-width: 14ch;
  margin-inline: auto;
  font-size: clamp(2.6rem, 6vw, 4.35rem);
  line-height: 1.03;
  letter-spacing: -.035em;
}
body.pricing-page .plans { gap: 1.2rem; padding-top: 2.6rem; }
body.pricing-page .plans .card {
  border-width: 1px;
  border-radius: 1rem;
  box-shadow: var(--site-shadow-soft);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
body.pricing-page .plans .card:hover { transform: translateY(-4px); box-shadow: var(--site-shadow-lift); }
body.pricing-page .plans .card.hot {
  transform: translateY(-10px);
  background: linear-gradient(180deg, #fffdf8 0%, var(--surface) 100%);
  box-shadow: 0 30px 70px -40px rgba(158, 108, 22, .72);
}
body.pricing-page .plans .card.hot:hover { transform: translateY(-14px); }
body.pricing-page .pprice .num { font-variant-numeric: tabular-nums; }
body.pricing-page .pbtn { min-height: 46px; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
body.pricing-page .pbtn:hover { box-shadow: 0 12px 26px -18px rgba(27, 23, 16, .65); }
body.pricing-page .strip { border-width: 1px; box-shadow: var(--site-shadow-soft); }
body.pricing-page .prose { max-width: 48rem; }

/* Simulator */
body.simulator-page { background: #e9e4d7; }
body.simulator-page .app { height: 100dvh; }
body.simulator-page .stage {
  background:
    radial-gradient(70% 55% at 50% 42%, rgba(255, 253, 246, .95), transparent 74%),
    radial-gradient(100% 90% at 50% 38%, #f1ede2 0%, #e6dfd0 62%, #dcd4c2 100%);
}
body.simulator-page .brandchip,
body.simulator-page .uploadcta .uc-plus,
body.simulator-page .uploadcta .uc-label,
body.simulator-page .zoomctl { box-shadow: var(--site-shadow-lift); }
body.simulator-page .panel { width: clamp(400px, 29vw, 480px); box-shadow: -18px 0 50px -38px rgba(27, 23, 16, .5); }
body.simulator-page .panel-scroll { gap: 1.6rem; padding: 1.35rem; }
body.simulator-page .sec {
  gap: .75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
body.simulator-page .sec:first-of-type { border-top: 0; padding-top: 0; }
body.simulator-page .sec-h { color: var(--ink-2); }
body.simulator-page :where(.mtile, .dtile, .dropzone, .photoup, .mirrorrow, .lrow) {
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
body.simulator-page :where(.mtile, .dtile):hover { transform: translateY(-2px); box-shadow: var(--site-shadow-soft); }
body.simulator-page .btn-ai { min-height: 48px; background: var(--accent); color: #241a05; }
body.simulator-page .btn-ai:hover { background: #d5962f; }
body.simulator-page .result { box-shadow: var(--site-shadow-soft); }

/* 404 */
body.not-found-page .lg-404 { min-height: calc(100dvh - 190px); display: grid; align-content: center; }
body.not-found-page .lg-404::before {
  content: "404";
  display: block;
  font-family: var(--serif);
  font-size: clamp(5rem, 18vw, 11rem);
  line-height: .72;
  color: rgba(201, 138, 38, .13);
  letter-spacing: -.08em;
  pointer-events: none;
}

@media (max-width: 68rem) {
  body.site-page .brand .bsub { display: none; }
  body.article-page #galeria > .wrap > .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 68rem) {
  body.site-page .nav-in {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .5rem 1rem;
    padding-top: .65rem;
    padding-bottom: .55rem;
  }
  body.site-page .brand { min-width: 0; }
  body.site-page .nav-menu-toggle {
    display: inline-flex;
    grid-column: 2;
    grid-row: 1;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    border: 1px solid var(--line-2);
    border-radius: 10px;
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
  }
  body.site-page .nav-menu-toggle span {
    display: block;
    width: 17px;
    height: 1.5px;
    background: currentColor;
    transition: transform .2s ease, opacity .2s ease;
  }
  body.site-page .nav-open .nav-menu-toggle span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
  body.site-page .nav-open .nav-menu-toggle span:nth-child(2) { opacity: 0; }
  body.site-page .nav-open .nav-menu-toggle span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
  body.site-page .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    display: none;
    min-width: 0;
    padding: .45rem 0 .25rem;
    border-top: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: .15rem;
  }
  body.site-page .nav-open .nav-links { display: flex; }
  body.site-page .nav-links a { flex: 0 0 auto; padding: .7rem .2rem; }
  body.site-page .nav-actions {
    display: none;
    grid-column: 1 / -1;
    grid-row: 3;
    justify-content: flex-start;
    padding: .35rem 0 .45rem;
  }
  body.site-page .nav-open .nav-actions { display: flex; }

  body.home-page .grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  body.home-page .gcard:first-child { grid-row: auto; }
  body.home-page .gcard:first-child .gimg { min-height: 18rem; }
  body.home-page .gcard:not(:first-child) { grid-template-columns: 38% 1fr; min-height: 11rem; }

  body.article-page #galeria > .wrap > .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.article-page #galeria .card:first-child { grid-column: span 2; }
  body.article-page .card .meta { min-height: 0; }

  body.pricing-page .plans .card.hot,
  body.pricing-page .plans .card.hot:hover { transform: none; }

  body.simulator-page .app { height: auto; }
  body.simulator-page .stage { height: 58dvh; min-height: 28rem; }
  body.simulator-page .panel { width: 100%; box-shadow: 0 -18px 48px -38px rgba(27, 23, 16, .5); }
  body.simulator-page .panel-scroll { padding: 1.1rem; }
}

@media (max-width: 38rem) {
  body.site-page .nav-in { grid-template-columns: minmax(0, 1fr) auto; }
  body.site-page .brand { min-height: 34px; }
  body.site-page .nav-links { width: 100%; margin-left: 0; gap: .1rem; }

  body.home-page .hero { text-align: left; }
  body.home-page .hero h1 { margin-inline: 0; max-width: 12ch; }
  body.home-page .hero p { margin-inline: 0; }
  body.home-page .kicker { border-radius: .45rem; }
  body.home-page .gcard:not(:first-child) { grid-template-columns: 1fr; }
  body.home-page .gcard:not(:first-child) .gimg img { aspect-ratio: 16 / 10; }
  body.home-page .band { border-radius: 1rem; }

  body.article-page .hero { text-align: left; }
  body.article-page .hero h1 { margin-inline: 0; }
  body.article-page .hero .lede { margin-inline: 0; }
  body.article-page .hero-cta,
  body.article-page .hero-chips { justify-content: flex-start; }
  body.article-page #galeria > .wrap > .grid { grid-template-columns: 1fr; }
  body.article-page #galeria .card:first-child { grid-column: auto; }
  body.article-page #galeria .card:first-child img { aspect-ratio: 1; }
  body.article-page .picker { border-radius: .85rem; }
  body.article-page .pchip { min-height: 42px; }

  body.simple-page .lg,
  body.not-found-page .lg { padding-inline: 1.1rem; }
  body.simple-page .lg h2 { margin-top: 2.3rem; }

  body.pricing-page .hero { text-align: left; }
  body.pricing-page .hero h1,
  body.pricing-page .hero p { margin-inline: 0; }
  body.pricing-page .plans { padding-top: 2rem; }

  body.simulator-page .stage { height: 52dvh; min-height: 24rem; }
  body.simulator-page .hintpill { top: 4.2rem; max-width: calc(100% - 2rem); }
  body.simulator-page .brandchip .b-tag { display: none; }
  body.simulator-page .modelgrid,
  body.simulator-page .designs { grid-template-columns: repeat(3, 1fr); }
  body.simulator-page :where(.mtile, .dtile, .zoomctl button) { min-width: 44px; min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
