/* TryonMe — risograph-inspired marketing pages
   Color, type, halftone and misregistration directly mirror the iOS app */

:root {
  --cream:     #f5efe0;
  --pink:      #ff4d8b;
  --yellow:    #ffc83d;
  --blue:      #2d3d7a;
  --pink-soft: rgba(255, 77, 139, 0.55);
  --blue-soft: rgba(45, 61, 122, 0.55);
  --ink-overlap: #e63c3c;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--cream);
  color: var(--blue);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* === Paper grain ===
   Two stacked layers — a soft fiber noise + a subtle halftone — glued onto
   every page. Mimics the SwiftUI `.paperGrain()` modifier in the iOS app. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(45, 61, 122, 0.05) 1px, transparent 0),
    radial-gradient(circle at 2px 3px, rgba(255, 77, 139, 0.025) 1px, transparent 0);
  background-size: 3px 3px, 7px 9px;
  mix-blend-mode: multiply;
  opacity: 0.9;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(255, 200, 61, 0.08) 0%, transparent 45%),
    radial-gradient(ellipse at 80% 90%, rgba(255, 77, 139, 0.06) 0%, transparent 45%);
}

/* === Container === */
.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 22px 60px;
}

/* === Brand wordmark — yellow underprint slipped slightly === */
header.site-header {
  border-bottom: 2px solid var(--pink);
  padding-bottom: 22px;
  margin-bottom: 36px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.brand {
  font-weight: 900;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--blue);
  text-decoration: none;
  position: relative;
  display: inline-block;
  text-transform: uppercase;
}
.brand::before {
  content: "TRYONME";
  position: absolute;
  top: 3px;
  left: 4px;
  color: var(--yellow);
  z-index: -1;
}
.brand::after {
  content: "TRYONME";
  position: absolute;
  top: 5px;
  left: 6px;
  color: var(--pink);
  mix-blend-mode: multiply;
  opacity: 0.45;
  z-index: -2;
}

nav a {
  margin-left: 16px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.15s;
}
nav a:hover { border-bottom-color: var(--pink); }
nav a[aria-current="page"] {
  border-bottom-color: var(--pink);
  color: var(--pink);
}

/* === Hero === */
.hero {
  padding: 24px 0 44px;
  border-bottom: 2px solid var(--pink);
  margin-bottom: 36px;
  position: relative;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 11px;
  color: var(--pink);
  font-weight: 700;
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--pink);
}

/* Misregistered display headline */
h1 {
  font-size: clamp(40px, 7vw, 78px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 900;
  text-transform: uppercase;
  position: relative;
  color: var(--blue);
  display: inline-block;
}
h1::before {
  content: attr(data-text);
  position: absolute;
  top: 4px;
  left: 6px;
  color: var(--pink);
  z-index: -1;
  mix-blend-mode: multiply;
  white-space: pre-line;
}
h1::after {
  content: attr(data-text);
  position: absolute;
  top: 7px;
  left: 9px;
  color: var(--yellow);
  z-index: -2;
  white-space: pre-line;
}

h2 {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 36px 0 14px;
  position: relative;
  display: inline-block;
}
h2::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--pink);
  transform: scaleY(0.6);
}

h3 {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pink);
  margin: 24px 0 8px;
}

.hero p.lead {
  font-size: 19px;
  line-height: 1.5;
  margin-top: 22px;
  max-width: 580px;
  color: var(--blue);
}

/* === Updated stamp === */
.updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow);
  color: var(--blue);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 18px;
  position: relative;
  transform: rotate(-1.2deg);
  box-shadow: 3px 3px 0 var(--pink);
}

/* === Content === */
section { margin-bottom: 28px; }

p, li {
  color: var(--blue);
  margin-bottom: 12px;
}

ul {
  margin-left: 18px;
  list-style: none;
}
ul li {
  position: relative;
  padding-left: 16px;
}
ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  background: var(--pink);
  border-radius: 1px;
  transform: rotate(45deg);
}

a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: var(--pink);
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
  font-weight: 600;
}
a:hover {
  background: var(--yellow);
  color: var(--blue);
}

strong { font-weight: 800; }

/* === Pill button === */
.pill-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: var(--cream);
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 13px;
  text-decoration: none;
  margin-top: 16px;
  border: none;
  cursor: pointer;
  position: relative;
}
.pill-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--yellow);
  z-index: -1;
  transform: translate(4px, 5px);
}
.pill-cta:hover {
  background: var(--pink);
  color: var(--cream);
}

/* === Footer === */
footer {
  margin-top: 60px;
  padding-top: 22px;
  border-top: 2px solid var(--pink);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
footer nav a { margin: 0 12px 0 0; }

/* === Feature grid (landing) === */
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin: 30px 0;
}
@media (max-width: 540px) { .features { grid-template-columns: 1fr; } }

.feature {
  background: var(--cream);
  border: 2px solid var(--pink);
  border-radius: 14px;
  padding: 18px;
  position: relative;
  box-shadow: 4px 6px 0 var(--yellow);
}
.feature h3 { margin-top: 0; }

/* === Halftone divider — riso-style accent rule === */
.halftone-rule {
  margin: 28px 0;
  height: 14px;
  background-image:
    radial-gradient(circle at 50% 50%, var(--pink) 1.5px, transparent 2px);
  background-size: 8px 14px;
  background-position: 0 50%;
  opacity: 0.85;
}

/* === Ink-stamp callout box === */
.callout {
  border: 2px solid var(--blue);
  background: var(--cream);
  padding: 16px 18px;
  margin: 20px 0;
  position: relative;
  box-shadow: 5px 5px 0 var(--yellow);
}
.callout::before {
  content: "NOTE";
  position: absolute;
  top: -10px;
  left: 14px;
  background: var(--blue);
  color: var(--cream);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  padding: 2px 8px;
}

/* === FAQ-style sections === */
.faq h3 {
  color: var(--blue);
  font-size: 17px;
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 800;
  margin-top: 26px;
  margin-bottom: 6px;
}
.faq h3::before {
  content: "Q ";
  color: var(--pink);
  font-weight: 900;
}

/* === Plate registration mark (decorative corner crosshair) === */
.reg-mark {
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
}
.reg-mark::before,
.reg-mark::after {
  content: "";
  position: absolute;
  background: var(--pink);
}
.reg-mark::before {
  top: 50%; left: 0; right: 0; height: 1.5px; transform: translateY(-50%);
}
.reg-mark::after {
  left: 50%; top: 0; bottom: 0; width: 1.5px; transform: translateX(-50%);
}
.reg-mark.tl { top: 8px;    left: 8px; }
.reg-mark.tr { top: 8px;    right: 8px; }
.reg-mark.bl { bottom: 8px; left: 8px; }
.reg-mark.br { bottom: 8px; right: 8px; }
