/* Rainstride — Apple-inspired palette, glass surfaces, minimal layout. */
:root {
  --bg: #ffffff;
  --bg-tint: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --hairline: rgb(0 0 0 / 0.08);
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --link: #0066cc;

  --glass-bg: rgb(255 255 255 / 0.62);
  --glass-edge: rgb(255 255 255 / 0.7);
  --glass-blur: blur(20px) saturate(180%);

  --shadow-card: 0 0 0 1px rgb(0 0 0 / 0.04), 0 1px 2px rgb(0 0 0 / 0.04), 0 10px 30px -14px rgb(0 0 0 / 0.14);
  --shadow-glass: 0 1px 0 rgb(255 255 255 / 0.8) inset, 0 0 0 1px rgb(0 0 0 / 0.05), 0 20px 50px -20px rgb(0 0 0 / 0.18);
  --img-outline: oklch(0 0 0 / 0.1);

  --r-card: 20px;
  --r-tile: 24px;
  --r-media: 12px;
  --wrap: 1120px;
  --nav-h: 52px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Segoe UI", Inter, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.1; text-wrap: balance; font-weight: 600; }
h2 { font-size: clamp(2rem, 4.4vw, 3rem); letter-spacing: -0.03em; }
h3 { font-size: 1.2rem; letter-spacing: -0.015em; }
h4 { font-size: 1.05rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 3px solid rgb(0 113 227 / 0.6); outline-offset: 3px; border-radius: 8px; }
.muted { color: var(--muted); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.eyebrow { font-size: .95rem; font-weight: 600; color: var(--muted); margin-bottom: .5em; letter-spacing: 0; }

/* Glass surface */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow-glass);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgb(255 255 255 / 0.94); }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 22px; border-radius: 980px;
  background: var(--blue); color: #fff;
  border: 1px solid transparent;
  font: inherit; font-size: 17px; font-weight: 500; letter-spacing: -0.01em;
  cursor: pointer; text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition-property: background-color, color, scale;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}
.btn:hover { text-decoration: none; }
.btn-sm { min-height: 32px; padding: 0 14px; font-size: 14px; }
.btn-glass {
  color: var(--ink);
  background: rgb(255 255 255 / 0.55);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-color: rgb(255 255 255 / 0.7);
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.08), 0 4px 14px -6px rgb(0 0 0 / 0.16);
}
@media (hover: hover) {
  .btn:hover { background: var(--blue-hover); }
  .btn-glass:hover { background: rgb(255 255 255 / 0.85); }
}
@media (prefers-reduced-motion: no-preference) {
  .btn:not(:disabled):active { scale: 0.96; }
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Navigation */
.nav-bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgb(255 255 255 / 0.68);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: 0 1px 0 var(--hairline);
}
.nav-inner { display: flex; align-items: center; gap: 24px; min-height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; font-size: 1.1rem; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 22px; height: 22px; color: var(--ink); }
.nav-bar nav { margin-left: auto; }
.nav { display: flex; gap: 28px; }
.nav a { color: var(--ink); font-size: 14px; opacity: .8; transition-property: opacity; transition-duration: 150ms; }
@media (hover: hover) { .nav a:hover { opacity: 1; text-decoration: none; } }

/* Hero: Apple-style product showcase */
.hero { background: var(--bg); padding: calc(var(--nav-h) + 72px) 0 0; text-align: center; overflow: hidden; }
.hero-copy { max-width: 860px; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.5rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.04; margin-bottom: .3em; }
.lede { font-size: clamp(1.1rem, 1.9vw, 1.5rem); color: var(--muted); max-width: 32em; margin: 0 auto 1.4em; line-height: 1.4; letter-spacing: -0.015em; }
.hero .actions, .promo .actions { justify-content: center; }
.hero-product { margin: 32px auto 0; padding-bottom: 64px; }
.hero-product img { width: auto; max-width: min(560px, 86vw); max-height: max(300px, calc(100svh - var(--nav-h) - 360px)); margin: 0 auto; filter: drop-shadow(0 30px 40px rgb(0 0 0 / 0.14)); }
.hero .enter.hero-product { animation-delay: 300ms; }

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

/* Promo tiles (Apple homepage rhythm) */
.promo { text-align: center; padding: 72px 0 0; overflow: hidden; }
.promo-tint { background: var(--bg-tint); }
.promo h2, .promo-half h2 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 700; letter-spacing: -0.035em; margin-bottom: .15em; }
.promo .lede, .promo-half .lede { margin-bottom: 1.1em; }
.promo-lineup {
  display: flex; justify-content: center; align-items: flex-end; gap: clamp(8px, 3vw, 40px);
  max-width: 1000px; margin: 40px auto 0; padding: 0 24px 56px;
}
.promo-lineup img { width: 30%; height: auto; filter: drop-shadow(0 22px 26px rgb(0 0 0 / 0.12)); }
.promo-lineup img:nth-child(3) { width: 26%; }

.promo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 12px; padding-bottom: 12px; max-width: none; }
.promo-half {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--bg-tint); border-radius: var(--r-tile); padding: 56px 32px 0; overflow: hidden; min-height: 580px;
}
.promo-half img { width: min(78%, 420px); margin-top: auto; padding-top: 24px; padding-bottom: 40px; filter: drop-shadow(0 22px 26px rgb(0 0 0 / 0.14)); }
.promo-dark { background: #000; color: #f5f5f7; }
.promo-dark .lede { color: #a1a1a6; }
.promo-dark img { width: min(52%, 280px); filter: drop-shadow(0 22px 30px rgb(255 255 255 / 0.08)); }

/* Staged hero entrance: 100ms stagger, opacity + 4px blur + 12px rise, 300ms ease-out */
@keyframes enter-up { from { opacity: 0; filter: blur(4px); transform: translateY(12px); } }
@keyframes enter-fade { from { opacity: 0; } }
.enter { animation: enter-fade 300ms ease-out both; }
@media (prefers-reduced-motion: no-preference) {
  .enter { animation-name: enter-up; }
}
.enter:nth-child(1) { animation-delay: 0ms; }
.enter:nth-child(2) { animation-delay: 100ms; }
.enter:nth-child(3) { animation-delay: 200ms; }
.enter:nth-child(4) { animation-delay: 300ms; }

/* Highlights */
.highlights { background: var(--bg); box-shadow: 0 -1px 0 var(--hairline), 0 1px 0 var(--hairline); }
.highlight-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 32px; padding-bottom: 32px; }
.highlight-list li { display: flex; flex-direction: column; gap: 2px; }
.highlight-list strong { font-weight: 600; font-size: 1rem; }
.highlight-list span { color: var(--muted); font-size: .95rem; }

/* Sections */
.section { padding: 112px 0; }
.section-tint { background: var(--bg-tint); }
.section-head { max-width: 700px; margin: 0 auto 56px; text-align: center; }
.section-head p:last-child { color: var(--muted); font-size: 1.15rem; margin-bottom: 0; }

.cat-title { font-size: 1.5rem; letter-spacing: -0.02em; margin: 64px 0 20px; }
.section-head + .cat-title { margin-top: 0; }

.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--bg);
  border: 1px solid transparent;
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.card-media { background: var(--bg); padding: 28px 24px 8px; }
.card img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; filter: drop-shadow(0 14px 16px rgb(0 0 0 / 0.1)); }
.card-body { padding: 8px 20px 22px; text-align: center; }
.card-body h4 { margin-bottom: 2px; }
.card-body p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Content-image outlines (pure black at 10%, inset) */
.lining-grid img, .gallery img { outline: 1px solid var(--img-outline); outline-offset: -1px; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile {
  background: var(--bg);
  border: 1px solid transparent;
  border-radius: var(--r-tile);
  box-shadow: var(--shadow-card);
  padding: 32px;
}
.tile h3 { font-size: 1.35rem; margin-bottom: .3em; }
.tile p { color: var(--muted); margin: 0; }
.tile-linings { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; }
.tile-wide { grid-column: span 3; }
.lining-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: auto; padding-top: 28px; }
.lining-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--r-media); }
.lining-grid figcaption, .gallery figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; margin-bottom: 64px; }
.step-n {
  display: inline-grid; place-items: center; width: 32px; height: 32px; margin-bottom: 14px;
  border-radius: 50%; background: var(--ink); color: #fff; font-size: 15px; font-weight: 600;
}
.steps h3 { font-size: 1.1rem; margin-bottom: 6px; }
.steps p { color: var(--muted); margin: 0; font-size: .95rem; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-card); }

/* About */
.about { max-width: 860px; text-align: center; }
.statement { font-size: clamp(1.9rem, 4vw, 2.9rem); letter-spacing: -0.035em; line-height: 1.12; margin-bottom: .8em; }
.about-copy p { color: var(--muted); font-size: 1.2rem; max-width: 40em; margin-left: auto; margin-right: auto; }

/* Contact */
.contact { position: relative; isolation: isolate; overflow: hidden; padding: 128px 0; background: var(--bg); }
.contact-glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(28% 40% at 22% 35%, rgb(0 113 227 / 0.6), transparent 70%),
    radial-gradient(26% 38% at 78% 30%, rgb(191 90 242 / 0.5), transparent 70%),
    radial-gradient(30% 40% at 60% 80%, rgb(100 210 255 / 0.6), transparent 70%),
    radial-gradient(22% 30% at 35% 85%, rgb(255 100 130 / 0.4), transparent 70%);
  filter: blur(40px);
}
.contact-card {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start;
  padding: 48px; border-radius: 32px;
}
.contact-card h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.email-line { margin: 20px 0 16px; }
.email { font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 600; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.copy-status { min-height: 1.5em; margin: 12px 0 0; color: var(--muted); font-size: .95rem; }
.checklist {
  background: rgb(255 255 255 / 0.55);
  border: 1px solid transparent;
  border-radius: var(--r-card);
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.05);
  padding: 24px 26px;
}
.checklist h3 { font-size: 1.05rem; }
.checklist li { position: relative; padding: 6px 0 6px 26px; color: var(--ink); font-size: .98rem; }
.checklist li::before {
  content: ""; position: absolute; left: 3px; top: 13px; width: 11px; height: 6px;
  border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg);
}

/* Footer */
.site-footer { background: var(--bg-tint); color: var(--muted); font-size: 13px; box-shadow: 0 -1px 0 var(--hairline); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 22px; padding-bottom: 22px; }
.footer-inner p { margin: 0; }
.footer-links { display: flex; gap: 20px; }
.site-footer a { color: var(--ink); }

/* Placeholder marker: must be gone before launch */
.tbd { background: #fff3c4; color: #5a4300; padding: 0 4px; border-radius: 4px; }

/* Legal pages */
.legal { padding: calc(var(--nav-h) + 64px) 0 96px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3rem); letter-spacing: -0.035em; }
.legal h2 { font-size: 1.35rem; letter-spacing: -0.02em; margin-top: 2em; }
.legal li { list-style: disc; margin-left: 1.25em; margin-bottom: .4em; }
.legal ul { margin-bottom: 1em; }

/* Responsive */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .highlight-list { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile-linings, .tile-wide { grid-column: span 2; grid-row: auto; }
  .contact-card { grid-template-columns: 1fr; gap: 32px; padding: 36px; }
  .section { padding: 88px 0; }
}
@media (max-width: 760px) {
  :root { --nav-h: 92px; }
  .promo-pair { grid-template-columns: 1fr; }
  .promo-half { min-height: 0; padding-top: 48px; }
  .hero { padding-top: calc(var(--nav-h) + 48px); }
  .nav-inner { flex-wrap: wrap; row-gap: 0; padding-top: 8px; }
  .nav-bar .btn-sm { margin-left: auto; }
  .nav-bar nav { order: 3; width: 100%; margin: 0; overflow-x: auto; scrollbar-width: none; }
  .nav-bar nav::-webkit-scrollbar { display: none; }
  .nav { gap: 22px; padding: 10px 0 12px; white-space: nowrap; }
}
@media (max-width: 560px) {
  .wrap { padding-left: 18px; padding-right: 18px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid { gap: 12px; }
  .card { border-radius: 16px; }
  .card-body { padding: 12px 12px 14px; }
  .highlight-list { grid-template-columns: 1fr; gap: 16px; }
  .steps { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .tile-linings, .tile-wide { grid-column: auto; }
  .tile { padding: 24px; }
  .gallery { grid-template-columns: 1fr; }
  .contact { padding: 72px 0; }
  .contact-card { padding: 24px; border-radius: 24px; }
  .section { padding: 72px 0; }
  .hero { padding-bottom: 80px; }
}
