/* ============================================================
   AUTOMATIC PLATFORM — BASE STYLES
   Typography, body defaults, global utilities
   ============================================================ */

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  color: var(--n-900);
  background-color: var(--n-50);
  overflow-x: hidden;
}

/* ── Typography Scale ─────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  color: var(--ap-black);
}

.display-heading {
  font-family: var(--font-display);
  font-weight: var(--weight-black);
  letter-spacing: -0.01em;
  line-height: var(--leading-none);
  text-transform: uppercase;
}

p { line-height: var(--leading-relaxed); }

.text-2xs  { font-size: var(--text-2xs); }
.text-xs   { font-size: var(--text-xs); }
.text-sm   { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg   { font-size: var(--text-lg); }
.text-xl   { font-size: var(--text-xl); }
.text-2xl  { font-size: var(--text-2xl); }
.text-3xl  { font-size: var(--text-3xl); }
.text-4xl  { font-size: var(--text-4xl); }
.text-5xl  { font-size: var(--text-5xl); }
.text-6xl  { font-size: var(--text-6xl); }
.text-7xl  { font-size: var(--text-7xl); }

.font-light     { font-weight: var(--weight-light); }
.font-regular   { font-weight: var(--weight-regular); }
.font-medium    { font-weight: var(--weight-medium); }
.font-semibold  { font-weight: var(--weight-semibold); }
.font-bold      { font-weight: var(--weight-bold); }
.font-extrabold { font-weight: var(--weight-extrabold); }
.font-black     { font-weight: var(--weight-black); }

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

.tracking-tighter { letter-spacing: -0.05em; }
.tracking-tight   { letter-spacing: -0.025em; }
.tracking-normal  { letter-spacing: 0; }
.tracking-wide    { letter-spacing: 0.05em; }
.tracking-wider   { letter-spacing: 0.1em; }
.tracking-widest  { letter-spacing: 0.2em; }

.uppercase { text-transform: uppercase; }

/* ── Color Utilities ──────────────────────────────────────── */
.text-white       { color: #ffffff; }
.text-ap-black    { color: var(--ap-black); }
.text-ap-orange   { color: var(--ap-orange); }
.text-ap-gold     { color: var(--ap-gold); }
.text-ap-success  { color: var(--ap-success); }
.text-ap-warning  { color: var(--ap-warning); }
.text-ap-error    { color: var(--ap-error); }
.text-muted       { color: var(--n-600); }
.text-subtle      { color: var(--n-500); }

/* ── Section Titles ──────────────────────────────────────── */
.section-title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--ap-black);
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .section-title { font-size: var(--text-3xl); }
}

.section-subtitle {
  font-size: var(--text-sm);
  color: var(--n-600);
  margin-top: var(--sp-2);
}

@media (min-width: 640px) {
  .section-subtitle { font-size: var(--text-base); }
}

.accent-line {
  display: block;
  width: 3rem;
  height: 3px;
  background: var(--ap-orange);
  margin-top: var(--sp-3);
  border-radius: var(--radius-sm);
}

/* ── Price Display ───────────────────────────────────────── */
.price-current  { font-size: var(--text-xl); font-weight: var(--weight-black); color: var(--ap-black); }
.price-original { font-size: var(--text-sm); color: var(--n-500); text-decoration: line-through; }
.price-discount { font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--ap-orange); }

/* ── Layout helpers ──────────────────────────────────────── */
.flex          { display: flex; }
.flex-col      { flex-direction: column; }
.items-center  { align-items: center; }
.items-start   { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.flex-1        { flex: 1; }
.shrink-0      { flex-shrink: 0; }
.flex-wrap     { flex-wrap: wrap; }
.gap-1 { gap: var(--sp-1); }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.gap-5 { gap: var(--sp-5); }
.gap-6 { gap: var(--sp-6); }
.gap-8 { gap: var(--sp-8); }

.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }

/* ── Responsive visibility ───────────────────────────────── */
@media (max-width: 639px)  { .hide-mobile { display: none !important; } }
@media (min-width: 640px)  { .hide-sm-up  { display: none !important; } }
@media (max-width: 1023px) { .hide-tablet { display: none !important; } }
@media (min-width: 1024px) { .hide-desktop{ display: none !important; } }
