/* =========================================================
   Tag My Assets — Marketing site shared styles
   Brand palette: primary #5B2150 · accent #A32770 · deep #351232
   No external CSS/JS/CDN dependencies (Google Fonts link is loaded
   per-page in the HTML <head>). Light theme, mobile-first.
   ========================================================= */

:root {
  /* Brand */
  --primary: #5B2150;
  --accent: #A32770;
  --deep: #351232;

  /* Derived brand tints */
  --primary-700: #4a1a41;
  --accent-600: #8f2262;
  --tint: #faf5f9;      /* very light surface wash */
  --tint-2: #f3e9f1;    /* light section band */
  --chip: #f7eef5;

  /* Neutrals / text */
  --ink: #26121f;       /* body text */
  --ink-soft: #5a4b55;  /* secondary text */
  --ink-faint: #8a7b85; /* captions */
  --white: #ffffff;
  --line: #ecdfe8;      /* hairline borders */

  /* Layout */
  --maxw: 1140px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(53, 18, 50, 0.06), 0 2px 8px rgba(53, 18, 50, 0.05);
  --shadow-md: 0 8px 24px rgba(53, 18, 50, 0.10);
  --shadow-lg: 0 24px 60px rgba(53, 18, 50, 0.18);

  --gradient: linear-gradient(135deg, var(--deep) 0%, var(--primary) 52%, var(--accent) 100%);
  --gradient-soft: linear-gradient(135deg, #fbf6fa 0%, #f4e9f1 100%);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--accent-600); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  margin: 0 0 0.4em;
  line-height: 1.15;
  color: var(--deep);
  font-weight: 700;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }

/* Accessibility: visible keyboard focus */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--deep);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

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

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

.section { padding: clamp(48px, 8vw, 96px) 0; }
.section--tint { background: var(--tint); border-block: 1px solid var(--line); }
.section--band { background: var(--gradient-soft); }

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(28px, 4vw, 52px);
  text-align: center;
}
.section-head.left { margin-inline: 0; text-align: left; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.lead { font-size: 1.12rem; color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 20px rgba(163, 39, 112, 0.32);
}
.btn-primary:hover { box-shadow: 0 12px 26px rgba(163, 39, 112, 0.42); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }

.btn-on-dark {
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-on-dark:hover { background: #fff; color: var(--deep); }

.btn-light {
  background: #fff;
  color: var(--primary);
}
.btn-light:hover { color: var(--primary-700); }

.btn-sm { padding: 10px 18px; font-size: 0.9rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 40px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}
.nav-links a:hover { color: var(--accent); background: var(--chip); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--accent); font-weight: 600; }

.nav-cta { display: inline-flex; align-items: center; gap: 10px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--gradient);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(255, 255, 255, 0.16), transparent 60%),
    radial-gradient(900px 500px at 5% 110%, rgba(163, 39, 112, 0.45), transparent 60%);
  z-index: -1;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding: clamp(56px, 9vw, 104px) 0 clamp(56px, 9vw, 96px);
}
.hero h1 { color: #fff; }
.hero .eyebrow { color: #f3c9e4; }
.hero p.lead { color: rgba(255, 255, 255, 0.88); max-width: 46ch; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-note { margin-top: 18px; font-size: 0.86rem; color: rgba(255, 255, 255, 0.72); }

.hero-visual { display: flex; justify-content: center; }
.hero-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  max-width: 420px;
  width: 100%;
}
.hero-card img { width: 100%; height: auto; }
.hero-card-foot {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.pill {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--chip);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
}

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  background: #fff;
  padding: 26px 18px;
  text-align: center;
}
.stat b {
  display: block;
  font-size: 1.5rem;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.stat span { font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- Generic card grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #e0cad9; }
.card h3 { color: var(--deep); }
.card p { color: var(--ink-soft); margin-bottom: 0; }

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--gradient-soft);
  color: var(--accent);
  margin-bottom: 18px;
  border: 1px solid var(--line);
}
.icon svg { width: 26px; height: 26px; }

/* Value props (accent numbered) */
.value .icon { background: var(--gradient); color: #fff; border: none; }

/* ---------- How it works ---------- */
.steps { counter-reset: step; }
.step { position: relative; }
.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gradient);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 16px;
  box-shadow: 0 6px 16px rgba(163, 39, 112, 0.28);
}

/* ---------- Feature list (checks) ---------- */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; color: var(--ink-soft); }
.checks li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gradient);
  background-repeat: no-repeat;
  background-position: center;
  /* white checkmark */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 15px no-repeat, linear-gradient(#000, #000);
  -webkit-mask-composite: source-out;
  mask: linear-gradient(#000, #000);
}
/* Simpler robust check badge (works everywhere) */
.checks li::after {
  content: "✓";
  position: absolute;
  left: 0; top: 1px;
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 700;
  border-radius: 50%;
  background: var(--gradient);
}
.checks li::before { display: none; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--gradient);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 64px);
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 300px at 80% -20%, rgba(255,255,255,0.16), transparent 60%);
  pointer-events: none;
}
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: rgba(255,255,255,0.9); position: relative; max-width: 56ch; margin-inline: auto; }
.cta-band .hero-actions { justify-content: center; position: relative; }

/* ---------- Split (image/text) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.split .media {
  background: var(--gradient-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.split .media img { margin-inline: auto; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 5vw, 48px);
  align-items: start;
}
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--shadow-md);
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 7px;
  color: var(--deep);
}
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--tint);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.15s var(--ease);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(163, 39, 112, 0.12);
}
.field textarea { resize: vertical; min-height: 140px; }
.form-note {
  font-size: 0.84rem;
  color: var(--ink-faint);
  margin-top: 4px;
}

.info-card {
  background: var(--gradient);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 34px);
  box-shadow: var(--shadow-md);
}
.info-card h3 { color: #fff; }
.info-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .ic {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border-radius: 11px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.25);
  display: inline-flex; align-items: center; justify-content: center;
}
.info-list .ic svg { width: 20px; height: 20px; color: #fff; }
.info-list b { display: block; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: #f3c9e4; font-weight: 700; }
.info-list a, .info-list span { color: #fff; }
.info-list a:hover { color: #fff; }

.pending {
  background: rgba(255,255,255,0.14);
  border: 1px dashed rgba(255,255,255,0.5);
  border-radius: 6px;
  padding: 1px 7px;
  font-size: 0.82rem;
}

/* ---------- Products / chips ---------- */
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.tag {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--chip);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--deep);
  color: rgba(255, 255, 255, 0.78);
  padding: clamp(44px, 6vw, 72px) 0 28px;
  font-size: 0.94rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
}
.footer-brand img {
  height: 46px;
  background: #fff;
  border-radius: 12px;
  padding: 6px 10px;
  margin-bottom: 14px;
}
.site-footer h4 {
  color: #fff;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { color: rgba(255,255,255,0.78); }
.footer-links a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.14);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: left; }
  .hero-visual { order: -1; }
  .hero-card { max-width: 360px; }
  .split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav { min-height: 60px; }
  .brand img { height: 34px; }
  .nav-links { gap: 2px; }
  .nav-links a { padding: 7px 8px; font-size: 0.9rem; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { justify-content: flex-start; }
  .btn { width: 100%; }
  .nav .btn { width: auto; }
  .hero-actions .btn, .cta-band .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .btn, .card { transition: none; }
  .btn:hover, .card:hover { transform: none; }
}
