/* SYFRA editorial layout pass
   Intentionally keeps the existing color palette and ambient background.
   This file changes hierarchy, typography, geometry and layout only. */

:root {
  --editorial-radius: 10px;
  --editorial-display: Bahnschrift, "DIN Alternate", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --editorial-body: "Segoe UI Variable", "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  font-family: var(--editorial-body);
  letter-spacing: -.008em;
}

h1, h2, h3,
.brand,
.section-kicker,
.hero-kicker,
.roadmap-topline,
.design-card-meta,
.news-card-meta,
.content-meta {
  font-family: var(--editorial-display);
}

/* Remove the repeated pill / floating-card language. */
.button,
.nav-auth,
.account-button,
.admin-launch,
.filter-button,
.drivelab-reset,
.auth-tab,
.admin-tabs button,
.vote-button,
.text-button {
  border-radius: 4px;
}

.button {
  min-height: 46px;
  padding-inline: 20px;
  letter-spacing: .025em;
  text-transform: uppercase;
  font-size: .78rem;
  font-weight: 720;
}

.button:hover { transform: translateY(-1px); }
.float-card { animation: none !important; }

/* Navigation: compact, technical, less app-like. */
.site-header { height: 72px; }
:root { --header: 72px; }
.nav-shell { gap: 30px; }
.brand { gap: 10px; letter-spacing: .22em; }
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 30%;
  box-shadow: none;
}
.site-nav { gap: 19px; }
.site-nav a {
  position: relative;
  font-family: var(--editorial-display);
  font-size: .74rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 650;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 1px;
  background: currentColor;
  transition: right .22s var(--ease);
}
.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after { right: 0; }
.site-nav a.is-active {
  color: var(--text);
  font-weight: 800;
}
.nav-auth {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  background: transparent;
  font-family: var(--editorial-display);
  font-size: .7rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Shared section rhythm: editorial rules instead of isolated cards. */
.section { padding: 132px 0; }
.section-heading {
  position: relative;
  max-width: none;
  margin-bottom: 64px;
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
}
.section-heading-split {
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, .55fr);
  gap: clamp(32px, 6vw, 88px);
}
.section-kicker,
.hero-kicker {
  font-size: .68rem;
  letter-spacing: .19em;
  font-weight: 680;
}
.section-heading h2,
.drive-copy h2,
.submit-copy h2 {
  font-family: var(--editorial-display);
  font-size: clamp(2.8rem, 5.6vw, 6rem);
  line-height: .93;
  letter-spacing: -.058em;
  font-weight: 650;
}
.section-heading > p:last-child,
.drive-copy > p,
.submit-copy > p {
  max-width: 430px;
  font-size: .98rem;
  line-height: 1.65;
}

/* Hero: wide automotive editorial spread, not a centered SaaS split-card. */
.hero {
  min-height: 100svh;
  padding: calc(var(--header) + 74px) 0 70px;
}
.hero-shell {
  grid-template-columns: minmax(330px, .72fr) minmax(540px, 1.28fr);
  gap: clamp(36px, 5vw, 78px);
  align-items: end;
}
.hero-copy { padding-bottom: 52px; }
.hero h1 {
  font-family: var(--editorial-display);
  font-size: clamp(4rem, 7.4vw, 8.4rem);
  line-height: .86;
  letter-spacing: -.075em;
  font-weight: 650;
}
.hero h1 em { font-weight: 360; }
.hero-text {
  max-width: 570px;
  margin-top: 34px;
  font-size: 1rem;
  line-height: 1.7;
}
.hero-actions { margin-top: 30px; }
.hero-stage {
  min-height: min(70vh, 720px);
  border-radius: var(--editorial-radius);
  box-shadow: none;
  overflow: hidden;
}
.hero-stage::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid var(--line);
  pointer-events: none;
  z-index: 5;
}
.hero-stage-panel {
  border-radius: 3px !important;
  backdrop-filter: none;
  box-shadow: none;
}
.hero-stage-panel-a {
  inset: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.hero-stage-panel-a img { object-fit: cover; object-position: center 64%; }
.hero-stage-grid { display: none; }
.hero-stage-panel-b {
  right: 3%;
  bottom: 4%;
  width: 31%;
  height: 22%;
  padding: 8px;
}
.hero-stage-panel-c {
  left: 3%;
  bottom: 4%;
  width: 22%;
  height: 17%;
  padding: 8px;
}
.hero-stage-caption {
  top: auto;
  left: auto;
  right: 28px;
  bottom: 28px;
  z-index: 6;
  max-width: 280px;
  text-align: right;
}
.hero-stage-caption span { letter-spacing: .16em; }

/* About: numbered manifesto rows instead of three rounded tiles. */
.about-section { background: transparent; }
.about-grid {
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(50px, 9vw, 140px);
  align-items: start;
}
.about-grid .section-heading {
  margin-bottom: 0;
  border-top: 0;
  padding-top: 0;
}
.about-copy { max-width: 680px; }
.about-copy .about-lead { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.5; }
.about-principles {
  margin-top: 88px;
  display: block;
  border-top: 1px solid var(--line-strong);
}
.principle-card {
  display: grid;
  grid-template-columns: 86px minmax(150px, .55fr) minmax(0, 1.45fr);
  gap: 30px;
  align-items: baseline;
  padding: 28px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.principle-card > span {
  font-family: var(--editorial-display);
  font-size: .72rem;
  letter-spacing: .12em;
}
.principle-card h3 { margin: 0; font-size: 1.35rem; }
.principle-card p { margin: 0; max-width: 620px; }

/* Roadmap: reads like a development index / timeline, not six cards. */
.roadmap-list {
  display: block;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}
.roadmap-card {
  display: grid;
  grid-template-columns: 180px minmax(240px, .75fr) minmax(280px, 1.25fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
  padding: 32px 0 36px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.roadmap-card::before { display: none; }
.roadmap-topline {
  display: grid;
  gap: 6px;
  align-content: start;
  justify-content: start;
}
.roadmap-topline span,
.roadmap-topline strong { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.roadmap-card h3 { margin: 0; font-size: clamp(1.35rem, 2vw, 1.85rem); line-height: 1.2; }
.roadmap-card ul { margin: 0; padding: 0; list-style: none; }
.roadmap-card li {
  position: relative;
  padding-left: 18px;
}
.roadmap-card li::before {
  content: "—";
  position: absolute;
  left: 0;
}

.dark-surface { border-radius: 5px; }

/* News / design library: editorial tiles with fewer container shapes. */
.news-grid { gap: 28px 18px; }
.news-card,
.design-card,
.loading-card {
  border-radius: 4px;
  box-shadow: none;
}
.news-card {
  border-left: 0;
  border-right: 0;
  border-top: 0;
  background: transparent;
}
.news-card:hover { transform: none; }
.news-card:hover .news-card-media img { transform: none; }
.news-card-body { padding: 22px 0 0; }
.news-card:first-child {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  border-top: 1px solid var(--line-strong);
  padding-top: 22px;
}
.news-card h3 { font-family: var(--editorial-display); font-size: clamp(1.4rem, 2vw, 2rem); }
.design-toolbar {
  padding: 0 0 18px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
}
.filter-group { gap: 26px; }
.filter-button {
  min-height: 34px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  font-family: var(--editorial-display);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.filter-button.is-active,
.filter-button:hover {
  border-color: currentColor;
  background: transparent;
}
.design-grid { gap: 30px 18px; }
.design-card { border: 0; background: transparent; }
.design-card-media { border-radius: 4px; }
.design-card-body { padding: 18px 0 0; border-top: 1px solid var(--line); }
.design-card:hover .design-card-media img { transform: none; }

/* Viewer: framed technical viewport, not another rounded app card. */
.drive-copy {
  max-width: 760px;
  margin-bottom: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
}
.drivelab-panel {
  border-radius: 6px;
  box-shadow: none;
}
.drivelab-reset,
.drivelab-hud,
.drivelab-hint {
  backdrop-filter: none;
  border-radius: 3px;
}

/* Community form: two-column editorial form with flat field language. */
.submit-grid { gap: clamp(48px, 8vw, 120px); }
.submit-card,
.account-prompt {
  border-radius: 5px;
  box-shadow: none;
}
.submit-card { padding: clamp(28px, 4vw, 48px); }
input, textarea, select { border-radius: 3px; }

/* Footer: removes the "big rounded CTA card" ending. */
.site-footer { padding-top: 72px; }
.footer-shell {
  padding-top: 28px;
  border-top: 1px solid var(--line-strong);
}
.footer-action-panel {
  margin-top: 42px;
  padding: 28px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.footer-action-buttons .button { min-height: 38px; }
.footer-credit {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: .78rem;
  line-height: 1.5;
}
.footer-credit a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.footer-credit a:hover { color: var(--text); }

/* Dialogs keep usability but lose exaggerated soft-card styling. */
.dialog-card,
.content-dialog-card,
.admin-shell {
  border-radius: 8px;
  box-shadow: none;
}
.auth-header img { border-radius: 30%; }
.auth-tabs,
.admin-tabs { border-radius: 4px; }
.admin-stat-grid article,
.admin-note,
.admin-management-card,
.admin-content-row,
.admin-comment-row { border-radius: 4px; }

@media (max-width: 1120px) {
  .site-nav { gap: 14px; }
  .site-nav a { font-size: .68rem; }
  .hero-shell { grid-template-columns: minmax(0, .8fr) minmax(460px, 1.2fr); }
  .roadmap-card { grid-template-columns: 150px minmax(220px, .8fr) minmax(240px, 1.2fr); }
}

@media (max-width: 960px) {
  .section { padding: 100px 0; }
  .section-heading-split,
  .hero-shell,
  .about-grid {
    grid-template-columns: 1fr;
  }
  .hero-copy { padding-bottom: 0; }
  .hero-stage { min-height: 610px; }
  .roadmap-card {
    grid-template-columns: 125px 1fr;
  }
  .roadmap-card ul { grid-column: 2; }
}

@media (max-width: 720px) {
  .shell { width: min(calc(100% - 30px), var(--max)); }
  .section { padding: 82px 0; }
  .section-heading { margin-bottom: 42px; }
  .section-heading h2,
  .drive-copy h2,
  .submit-copy h2 { font-size: clamp(2.5rem, 13vw, 4.5rem); }
  .hero { min-height: auto; padding-top: calc(var(--header) + 52px); }
  .hero h1 { font-size: clamp(3rem, 13vw, 4.35rem); line-height: .97; }
  .hero-stage { min-height: 500px; }
  .about-principles { margin-top: 58px; }
  .principle-card {
    grid-template-columns: 54px 1fr;
    gap: 14px 20px;
  }
  .principle-card p { grid-column: 2; }
  .roadmap-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .roadmap-card ul { grid-column: auto; }
  .news-card:first-child { grid-template-columns: 1fr; }
  .filter-group { gap: 16px; }
  .footer-shell { display: grid; }
  .footer-nav { justify-content: start; }
  .footer-action-panel { display: grid; gap: 20px; }
  .footer-credit { display: grid; gap: 8px; }
}

@media (max-width: 900px) {
  .site-nav a::after { display: none !important; }
  .site-nav a {
    margin-left: -14px;
    padding: 5px 0 5px 12px;
    border-left: 2px solid transparent;
  }
  .site-nav a.is-active {
    border-left-color: var(--accent);
    color: var(--text);
  }
}

/* Shared studio primitives — used across the multi-page redesign
   (Home, S1, Products, Design, Journal) for a consistent, restrained
   editorial identity instead of repeated card grids. */
.section-number {
  font-family: var(--editorial-display);
  font-size: clamp(3.6rem, 8vw, 7.4rem);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -.03em;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
}
.tech-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--editorial-display);
  font-size: .68rem;
  font-weight: 650;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.tech-label::before,
.section-kicker::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
}
.page-hero {
  padding: calc(var(--header) + 64px) 0 60px;
  border-bottom: 1px solid var(--line-strong);
}
.page-hero-kicker { margin: 0 0 20px; }
.page-hero h1 {
  margin: 0;
  max-width: 980px;
  font-family: var(--editorial-display);
  font-size: clamp(3.2rem, 6.6vw, 6.4rem);
  line-height: .95;
  letter-spacing: -.06em;
  font-weight: 650;
}
.page-hero-text {
  max-width: 620px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* Archive and Journal should lead straight from the introduction into the
   content; the generic section rhythm is intentionally looser elsewhere. */
.design-section,
.news-section { padding-top: 76px; }

@media (max-width: 720px) {
  .design-section,
  .news-section { padding-top: 54px; }
}

/* Restrained "Development Updates" feed, shared by /products and /s1 — a
   plain divider list, not another card grid. */
.update-feed { border-top: 1px solid var(--line-strong); }
.update-feed-item {
  display: grid;
  gap: 6px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.update-feed-date {
  color: var(--muted-2);
  font-family: var(--editorial-display);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.update-feed-title { margin: 0; font-size: 1.32rem; letter-spacing: -.01em; }
.update-feed-excerpt { margin: 0; max-width: 720px; color: var(--muted); font-size: 1rem; line-height: 1.65; }
.update-feed-link { font-size: .85rem; font-weight: 700; letter-spacing: .02em; color: var(--accent); text-decoration: none; }
.update-feed-link:hover { text-decoration: underline; }
.update-feed-empty { margin: 0; padding: 24px 0; color: var(--muted); }
