/* Page styles for styrinapp.com. Tokens come from theme.css (generated). */
@font-face {
  font-family: "BebasNeue_400Regular";
  src: url("bebas-neue-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter_400Regular";
  src: url("inter-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter_600SemiBold";
  src: url("inter-semibold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

* { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text-primary);
  font-family: var(--nav-action-font-family), system-ui, sans-serif;
  font-size: var(--nav-action-font-size);
  line-height: 1.5;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 4px; border-radius: 4px; }

.page {
  width: 100%;
  max-width: 68rem;
  margin-inline: auto;
  padding: var(--space-6) var(--space-6) var(--space-12);
}

/* Header and footer */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-divider);
}

.site-header img { display: block; width: 4.5rem; height: auto; }

.site-nav { display: flex; gap: var(--space-6); }

.site-nav a,
.site-footer a {
  color: var(--color-text-secondary);
  text-decoration: none;
}

.site-nav a:hover,
.site-footer a:hover { color: var(--color-text-primary); }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-16);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
  color: var(--color-text-secondary);
  font-size: var(--row-subtitle-font-size);
  line-height: var(--row-subtitle-line-height);
}

.site-footer nav { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-6); }

/* Shared type */
.display {
  margin: 0;
  font-family: var(--display-hero-font-family), Impact, sans-serif;
  font-weight: 400;
}

.eyebrow {
  margin: 0;
  color: var(--stat-label-color);
  font-family: var(--stat-label-font-family), system-ui, sans-serif;
  font-size: var(--stat-label-font-size);
  line-height: var(--stat-label-line-height);
  font-weight: 600;
  letter-spacing: var(--stat-label-letter-spacing);
  text-transform: uppercase;
}

.lead { margin: 0; color: var(--color-text-secondary); }

.small {
  color: var(--row-subtitle-color);
  font-size: var(--row-subtitle-font-size);
  line-height: var(--row-subtitle-line-height);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0 var(--space-6);
  border-radius: var(--radius-control);
  background: var(--color-primary);
  color: var(--color-text-on-accent);
  font-family: var(--button-label-font-family), system-ui, sans-serif;
  font-size: var(--button-label-font-size);
  line-height: var(--button-label-line-height);
  font-weight: 600;
  text-decoration: none;
}

.button:hover,
.button:active { opacity: 0.9; }
.button:focus-visible { outline: 2px solid var(--color-text-primary); outline-offset: 4px; }

.card {
  background: var(--color-surface);
  border-radius: var(--radius-container);
  padding: var(--space-6);
}

/* Home: hero */
.hero {
  display: grid;
  gap: var(--space-12);
  align-items: center;
  padding: var(--space-16) 0;
}

.hero h1 {
  margin-top: var(--space-4);
  font-size: clamp(3rem, 9vw, 6rem);
  line-height: 0.92;
}

.hero h1 span { display: block; }

.hero .lead { margin-top: var(--space-6); max-width: 36ch; font-size: 1.125rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  margin-top: var(--space-8);
}

/* Site-only pattern: phone frame with screenshot. */
.phone {
  justify-self: center;
  width: min(18.75rem, 80vw);
  padding: 0.625rem;
  border-radius: 2.75rem;
  background: var(--color-surface);
  box-shadow: 0 0 0 1px var(--color-divider), 0 2.5rem 7.5rem var(--color-primary-tint);
}

.phone img { display: block; width: 100%; height: auto; border-radius: 2.25rem; }

/* Site-only pattern: numbered feature cards. */
.features { display: grid; gap: var(--space-4); }

.feature-number {
  color: var(--color-primary);
  font-family: var(--display-hero-font-family), Impact, sans-serif;
  font-size: 1.25rem;
}

.features h2 { font-size: 2rem; line-height: 1; }
.features p { margin: var(--space-3) 0 0; color: var(--color-text-secondary); font-size: var(--row-title-font-size); }

/* Site-only pattern: outlined audience blocks. */
.audiences { display: grid; gap: var(--space-4); margin-top: var(--space-16); }

.audience {
  padding: var(--space-8);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-container);
}

.audience h2 { margin-top: var(--space-3); font-size: 2.5rem; line-height: 1; }

.audience ul {
  display: grid;
  gap: var(--space-3);
  margin: var(--space-6) 0 0;
  padding: 0;
  list-style: none;
  color: var(--color-text-secondary);
}

.audience li::before { content: "—  "; color: var(--color-primary); }

/* Inner pages: support, terms, 404 */
.content { max-width: 44rem; padding-top: var(--space-12); }

.content h1 { font-size: 4rem; line-height: 1; }

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-8);
}

.contact-address { margin: var(--space-1) 0 0; font-family: var(--row-title-font-family), system-ui, sans-serif; font-weight: 600; }

.faq { display: grid; gap: var(--space-2); margin-top: var(--space-8); }

.faq details {
  padding: var(--space-4);
  border-radius: var(--radius-control);
  background: var(--color-surface);
}

.faq summary {
  cursor: pointer;
  font-family: var(--row-title-font-family), system-ui, sans-serif;
  font-size: var(--row-title-font-size);
  font-weight: 600;
}

.faq p { margin: var(--space-2) 0 0; color: var(--color-text-secondary); font-size: var(--row-title-font-size); }

.not-found h1 { margin-top: var(--space-4); }
.not-found .lead { margin-top: var(--space-6); }
.not-found .button { margin-top: var(--space-8); }

/* Terms */
.legal h1 {
  margin: 0 0 var(--space-6);
  font-family: var(--display-hero-font-family), Impact, sans-serif;
  font-weight: 400;
  font-size: 3rem;
  line-height: 1;
}

.legal .legal-date {
  color: var(--row-subtitle-color);
  font-size: var(--row-subtitle-font-size);
}

.legal h2 {
  margin: 0 0 var(--space-4);
  font-family: var(--row-title-font-family), system-ui, sans-serif;
  font-size: var(--button-label-font-size);
  line-height: var(--button-label-line-height);
  font-weight: 600;
}

.legal p,
.legal li { color: var(--color-text-secondary); line-height: 1.6; }

.legal strong { color: var(--color-text-primary); }
.legal p { margin: 0 0 var(--space-4); }
.legal ul { padding-left: var(--space-6); }
.legal li + li { margin-top: var(--space-2); }
.legal section { margin-top: var(--space-8); }
.legal a { color: var(--color-primary); text-underline-offset: var(--space-1); }

@media (max-width: 23.75rem) {
  .page { padding-inline: var(--space-4); }
  .site-nav { gap: var(--space-4); }
  .audience { padding: var(--space-6); }
  .content h1 { font-size: 3rem; }
}

@media (min-width: 52rem) {
  .hero { grid-template-columns: 1.1fr 0.9fr; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .audiences { grid-template-columns: 1fr 1fr; }
}
