/* ==========================================================================
   Pintaz Draf – base.css  (A1: reset, tokens, nav, hero, explore, CTA, footer)
   Owns: layout shell + .btn system. Does NOT style .carousel-* or .onboarding-*.
   ========================================================================== */

:root {
  --bg: #FAF8F2;          /* page background */
  --bg-card: #FFFEF9;     /* card background */
  --ink: #1C1913;         /* primary text */
  --ink-soft: #4A443A;    /* secondary text */
  --muted: #8A8274;       /* tertiary/meta text */
  --line: #E7E1D4;        /* hairline borders */
  --accent: #1C1913;      /* buttons = near-black */
  --accent-ink: #FAF8F2;  /* text on buttons */
  --brand: #F27427;       /* PINTAZ orange – accents only, never buttons */
  --radius-card: 20px;
  --radius-pill: 999px;
  --shadow-card: 0 18px 40px -18px rgba(28, 25, 19, 0.28);
  --ease-carousel: cubic-bezier(0.2, 0.86, 0.24, 1);
  --font: 'Inter', -apple-system, 'Segoe UI', sans-serif;

  --container: 1120px;
  --gutter: 20px;
  --section-y: 96px;
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body,
h1, h2, h3, h4, p, figure, blockquote, dl, dd {
  margin: 0;
}

body {
  min-height: 100%;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button { background: none; border: 0; }

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

ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 { font-weight: 600; line-height: 1.15; }

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

::selection {
  background: rgba(28, 25, 19, 0.88);
  color: var(--accent-ink);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--accent-ink);
  border-radius: 0 0 12px 0;
  font-size: 14px;
  font-weight: 600;
}

.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 1px 2px rgba(28, 25, 19, 0.18);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -12px rgba(28, 25, 19, 0.55);
}

.btn-primary:active { transform: translateY(0); }

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

.btn-ghost:hover {
  transform: translateY(-1px);
  background-color: var(--bg-card);
  border-color: #D8D1C0;
  box-shadow: 0 8px 20px -14px rgba(28, 25, 19, 0.5);
}

.btn-ghost:active { transform: translateY(0); }

.btn-lg {
  height: 56px;
  padding: 0 32px;
  font-size: 17px;
  letter-spacing: -0.01em;
}

/* --------------------------------------------------------------------------
   Sticky nav
   -------------------------------------------------------------------------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background-color: rgba(250, 248, 242, 0.78);
  border-bottom: 1px solid rgba(231, 225, 212, 0.9);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
}

.nav-logo img {
  height: 26px;
  width: auto;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 160ms ease, background-color 160ms ease;
}

.nav-link:hover {
  color: var(--ink);
  background-color: rgba(28, 25, 19, 0.045);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  padding-top: clamp(56px, 9vw, 116px);
  padding-bottom: clamp(28px, 4vw, 48px);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-title {
  max-width: 18ch;
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--ink);
  text-wrap: balance;
}

.hero-sub {
  max-width: 46rem;
  margin-top: clamp(18px, 2.2vw, 26px);
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.6;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(26px, 3vw, 38px);
}

.hero-note {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--muted);
}

/* Entrance: fade + rise (disabled under prefers-reduced-motion, below) */
.rise {
  opacity: 0;
  transform: translateY(14px);
  animation: rise-in 720ms var(--ease-carousel) forwards;
}

.rise-2 { animation-delay: 90ms; }
.rise-3 { animation-delay: 180ms; }
.rise-4 { animation-delay: 260ms; }

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   Showcase (carousel mount — A3 owns everything inside #carousel-root)
   -------------------------------------------------------------------------- */

.showcase {
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: var(--section-y);
}

.showcase .section-eyebrow { margin-bottom: clamp(20px, 3vw, 32px); }

/* Reserves the carousel's height before JS mounts. Sized to the mounted
   height so nothing shifts in and no dead space is left under the cards —
   A3 owns the height of #carousel-root itself. */
.showcase-stage {
  position: relative;
  width: 100%;
  min-height: 420px;
}

/* --------------------------------------------------------------------------
   Explore strip – drafting-table surface
   -------------------------------------------------------------------------- */

.explore {
  padding-block: clamp(48px, 6vw, 72px);
}

.explore-band {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 52px) clamp(20px, 4vw, 56px) clamp(32px, 4vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background-color: var(--bg-card);
  background-image:
    linear-gradient(rgba(28, 25, 19, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 25, 19, 0.035) 1px, transparent 1px);
  background-size: 32px 32px, 32px 32px;
  box-shadow: var(--shadow-card);
}

.explore-band::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.explore-art {
  position: relative;
  margin-bottom: clamp(24px, 3.5vw, 40px);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.explore-art img {
  width: 100%;
  height: auto;
  opacity: 0.92;
}

.explore-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.explore-title {
  max-width: 20ch;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-wrap: balance;
}

.explore-sub {
  max-width: 44rem;
  margin-top: 14px;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  color: var(--ink-soft);
  text-wrap: pretty;
}

.explore-copy .btn { margin-top: clamp(20px, 2.5vw, 28px); }

/* --------------------------------------------------------------------------
   Family strip – the other PINTAZ products, kept quiet
   -------------------------------------------------------------------------- */

.family {
  padding-block: clamp(6px, 1.5vw, 16px) clamp(28px, 4vw, 48px);
}

.family-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.family-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}

.family-note {
  max-width: 52rem;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

.family-note a {
  color: var(--ink-soft);
  border-bottom: 1px solid rgba(242, 116, 39, 0.4);
  transition: color 160ms ease, border-color 160ms ease;
}

.family-note a:hover {
  color: var(--ink);
  border-bottom-color: var(--brand);
}

/* --------------------------------------------------------------------------
   Final CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  padding-block: clamp(72px, 9vw, 128px);
  border-top: 1px solid var(--line);
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta-title {
  max-width: 22ch;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-wrap: balance;
}

.cta-sub {
  max-width: 40rem;
  margin-top: 16px;
  font-size: clamp(0.98rem, 1.15vw, 1.1rem);
  color: var(--ink-soft);
  text-wrap: pretty;
}

.cta-inner .btn { margin-top: clamp(24px, 3vw, 34px); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 32px 40px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-copy {
  font-size: 14px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
}

.footer-links a {
  font-size: 14px;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.footer-links a:hover {
  color: var(--brand);
  border-bottom-color: rgba(242, 116, 39, 0.5);
}

/* --------------------------------------------------------------------------
   Responsive – 360 / 768 / 1024 / 1440
   -------------------------------------------------------------------------- */

/* Narrow phones (360px and below) */
@media (max-width: 400px) {
  :root { --gutter: 18px; }

  .hero-title { max-width: 14ch; }
  .hero-cta .btn-lg { width: 100%; }
  .nav-link { padding: 0 10px; }
  .footer-inner { justify-content: center; text-align: center; }
  .footer-links { justify-content: center; }
}

/* Tablet and up */
@media (min-width: 768px) {
  :root { --gutter: 32px; --section-y: 108px; }

  body { font-size: 17px; }

  .nav-inner { height: 72px; }
  .nav-logo img { height: 28px; }

  .showcase-stage { min-height: 520px; }
}

/* Small laptop and up */
@media (min-width: 1024px) {
  :root { --gutter: 40px; --section-y: 120px; }

  .hero { padding-top: clamp(88px, 8vw, 132px); }
  .hero-title { max-width: 20ch; }
}

/* Large desktop */
@media (min-width: 1440px) {
  :root { --section-y: 128px; }

  .hero-sub { font-size: 1.15rem; }
  .explore-band { padding-inline: 64px; }
}

/* --------------------------------------------------------------------------
   Motion preferences
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .rise {
    opacity: 1;
    transform: none;
    animation: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
