/* Vyrra — shared styles */

/* Self-hosted fonts (latin subset). Kept local so no visitor IP reaches Google. */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/bricolage-grotesque-v9-latin-600.woff2") format("woff2");
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/bricolage-grotesque-v9-latin-700.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-sans-v4-latin-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/instrument-sans-v4-latin-500.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/instrument-sans-v4-latin-600.woff2") format("woff2");
}

:root {
  --bg: #FAFBF9;
  --ink: #1E2B2A;
  --muted: #5C6B68;
  --primary: #2E6E64;
  --primary-deep: #1F4F48;
  --amber: #F5B942;
  --coral: #E8845B;
  --surface: #EDF2EE;
  --line: #DCE5E0;
  --radius: 14px;
  --max: 1080px;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* UV strip — brand signature: dawn to dusk */
.uv-strip {
  height: 5px;
  background: linear-gradient(90deg,
    #2E6E64 0%, #7BB8A4 18%, #F5B942 42%, #E8845B 58%, #F5B942 74%, #7BB8A4 88%, #2E6E64 100%);
  background-size: 200% 100%;
}
@media (prefers-reduced-motion: no-preference) {
  .uv-strip { animation: daylight 24s linear infinite alternate; }
  @keyframes daylight {
    from { background-position: 0% 0; }
    to   { background-position: 100% 0; }
  }
}

/* Header */
header.site {
  border-bottom: 1px solid var(--line);
  background: rgba(250, 251, 249, 0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.logo:hover { text-decoration: none; }
.logo .dot { color: var(--primary); }
nav.main { display: flex; gap: 28px; }
nav.main a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}
nav.main a[aria-current="page"] { color: var(--ink); }
nav.main a:hover { color: var(--ink); text-decoration: none; }

/* Hero */
.hero { padding: 88px 0 64px; }
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 18px;
}
h1 {
  font-family: var(--display);
  font-size: clamp(38px, 6vw, 62px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 15ch;
}
.hero p.lede {
  margin-top: 22px;
  font-size: 20px;
  color: var(--muted);
  max-width: 54ch;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
}

/* Briefing card mock */
.briefing {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px -24px rgba(30, 43, 42, 0.35);
  overflow: hidden;
  max-width: 380px;
  margin-left: auto;
}
.briefing .bar { height: 4px; background: linear-gradient(90deg, var(--primary), var(--amber)); }
.briefing .inner { padding: 22px; }
.briefing .app-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
}
.briefing h3 {
  font-family: var(--display);
  font-size: 20px;
  margin: 8px 0 4px;
}
.briefing .conditions {
  display: flex;
  gap: 14px;
  margin: 14px 0;
  padding: 12px 14px;
  background: var(--surface);
  border-radius: 10px;
  font-size: 14px;
}
.briefing .conditions span { color: var(--muted); }
.briefing .conditions strong { display: block; color: var(--ink); font-size: 16px; }
.briefing .advice { font-size: 15px; color: var(--ink); }
.briefing .advice em { color: var(--primary); font-style: normal; font-weight: 600; }

/* Centered hero (homepage) */
.hero.centered { padding: 104px 0 72px; text-align: center; }
.hero.centered .eyebrow { letter-spacing: 0.2em; }
h1.stacked {
  max-width: none;
  margin: 0 auto;
  font-size: clamp(36px, 5.6vw, 60px);
}
h1.stacked .ink-soft { color: var(--muted); }
.hero.centered .lede { margin: 26px auto 0; }
.centered-row { justify-content: center; }

.scroll-cue {
  display: inline-block;
  margin-top: 52px;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  text-decoration: none;
}
.scroll-cue:hover { color: var(--primary); text-decoration: none; }
@media (prefers-reduced-motion: no-preference) {
  .scroll-cue { animation: nudge 2.4s ease-in-out infinite; }
  @keyframes nudge {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(6px); }
  }
}

/* Two-column split (SkinBrief section) */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.split .section-intro { margin-bottom: 20px; }
.split .briefing { margin-left: auto; }

/* Screenshot strip */
.shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  max-width: 1000px;
  margin: 64px auto 0;
}
.phone { margin: 0; }
/* Hero screenshot (SkinBrief page) — keep it near the old card's footprint */
.hero-grid .phone { max-width: 300px; margin: 0 auto; }
/* hero.jpg has its status bar cropped, so it's wider than 9/19.5 — let it keep
   its own proportions instead of being side-cropped. Three classes so it beats
   the equal-specificity .phone .screen rule below regardless of source order. */
.hero-grid .phone .screen { aspect-ratio: auto; object-fit: contain; }
.phone .screen {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 18px 40px -26px rgba(30, 43, 42, 0.4);
  display: block;
  object-fit: cover;
}
.phone .screen.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: repeating-linear-gradient(
    -45deg, #fff, #fff 10px, var(--surface) 10px, var(--surface) 20px);
  border-style: dashed;
}
.phone .screen.placeholder span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  padding: 13px 26px;
  border-radius: 999px;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--primary-deep); text-decoration: none; }
.btn.ghost {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn.ghost:hover { background: var(--surface); }
.btn-row { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.btn.soon {
  background: var(--surface);
  color: var(--muted);
  border: 1.5px dashed var(--line);
  cursor: default;
}
.btn.soon:hover { background: var(--surface); text-decoration: none; }

/* Sections */
section.band { padding: 72px 0; }
section.band.alt { background: var(--surface); }
h2 {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}
.section-intro { color: var(--muted); max-width: 60ch; margin-bottom: 44px; font-size: 18px; }

/* App cards */
.apps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.app-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.app-card .status {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.status.live { background: #E4F2EC; color: var(--primary-deep); }
.status.lab { background: #FBF1DC; color: #8A6410; }
.app-card h3 { font-family: var(--display); font-size: 24px; }
.app-card p { color: var(--muted); font-size: 16px; flex-grow: 1; }
.app-card a.more { font-weight: 600; }

/* Feature list */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.features.four { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 32px 28px; }
.feature h3 {
  font-family: var(--display);
  font-size: 19px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.feature .glyph {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--surface);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.feature p { color: var(--muted); font-size: 15.5px; }

/* Legal / prose pages */
.prose { max-width: 760px; padding: 64px 0 96px; }
.prose h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 8px; }
.prose .meta { color: var(--muted); font-size: 15px; margin-bottom: 40px; }
.prose h2 { font-size: 24px; margin: 44px 0 12px; }
.prose h3 { font-family: var(--display); font-size: 18px; margin: 28px 0 8px; }
.prose p { margin-bottom: 14px; }
.prose ul { margin: 0 0 14px 22px; }
.prose li { margin-bottom: 6px; }
.prose table { border-collapse: collapse; width: 100%; margin: 14px 0 20px; font-size: 15.5px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--surface); font-weight: 600; }
.notice {
  background: var(--surface);
  border-left: 4px solid var(--amber);
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  margin: 18px 0;
  font-size: 15.5px;
}

/* Footer */
footer.site {
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
  margin-top: 40px;
}
footer.site .wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
footer.site .brand { font-family: var(--display); font-weight: 700; font-size: 18px; }
footer.site .brand small { display: block; font-family: var(--body); font-weight: 400; color: var(--muted); font-size: 14px; margin-top: 4px; }
footer.site nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer.site nav a { color: var(--muted); font-size: 14.5px; }
footer.site nav a:hover { color: var(--ink); }
footer.site .copy { width: 100%; color: var(--muted); font-size: 13.5px; margin-top: 18px; }

@media (max-width: 800px) {
  .hero { padding: 56px 0 40px; }
  .hero.centered { padding: 64px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .briefing { margin-left: 0; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split .briefing { margin-left: 0; max-width: 100%; }
  .shots { grid-template-columns: 1fr; gap: 14px; margin-top: 44px; }
  .phone .screen { border-radius: 16px; }
  .phone .screen.placeholder span { font-size: 11px; padding: 5px 8px; }
  .scroll-cue { margin-top: 36px; }
  nav.main { gap: 18px; }
  nav.main a { font-size: 14px; }
}
