/* Rollertuning.hu – statikus oldal stílusok
   Színpaletta: elektromos kék #0066FF, narancs #FF6B00, zöld #00C853 */

:root {
  --brand: #0066ff;
  --brand-dark: #0052cc;
  --brand-darker: #003d99;
  --brand-light: #e6f0ff;
  --accent: #ff6b00;
  --accent-dark: #cc5500;
  --success: #00c853;
  --ink: #1a1a1a;
  --muted-bg: #f5f5f5;
  --line: #e5e5e5;
  --text: #4a4a4a;
  --text-light: #767676;
  --radius: 12px;
  --wrap: 1200px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 16px rgba(16, 24, 40, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand);
}

h1,
h2,
h3 {
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-weight: 700;
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
}

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

.wrap.narrow {
  max-width: 780px;
}

.center {
  text-align: center;
}

.muted {
  color: var(--text-light);
  font-size: 0.9rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 200;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  flex: none;
}

.logo-text {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.logo-text b {
  color: var(--brand);
  font-weight: 800;
}

.logo-text i {
  color: #9ca3af;
  font-style: normal;
  font-weight: 700;
}

.site-nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--brand);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

@media (max-width: 820px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px;
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 4px;
  }

  .site-nav a {
    display: block;
    padding: 10px 4px;
    border-bottom: 1px solid var(--muted-bg);
  }
}

/* ------------------------------------------------------------------ hero */

.hero {
  background: linear-gradient(135deg, var(--brand-darker) 0%, var(--brand) 55%, #3387ff 100%);
  color: #fff;
  padding: 64px 0 72px;
}

.hero-inner {
  max-width: 860px;
}

.hero h1 {
  color: #fff;
  margin-bottom: 16px;
}

.eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 18px;
}

.hero .lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: #cce1ff;
  max-width: 640px;
}

.launch-badge {
  display: inline-block;
  margin: 22px 0 0;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 10px 22px;
  border-radius: 999px;
}

.countdown {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
}

.countdown > div {
  min-width: 74px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 12px 8px;
  text-align: center;
}

.countdown span {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.1;
}

.countdown small {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #cce1ff;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 0;
}

.hero-points {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  color: #cce1ff;
  font-size: 0.94rem;
}

.hero-points li::before {
  content: '✓';
  color: #fff;
  font-weight: 700;
  margin-right: 8px;
}

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--accent-dark);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-ghost {
  background: transparent;
  color: currentColor;
  border-color: rgba(255, 255, 255, 0.45);
}

.hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.consent .btn-ghost,
.notfound .btn-ghost {
  color: var(--ink);
  border-color: var(--line);
}

.consent .btn-ghost:hover,
.notfound .btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* -------------------------------------------------------------- sections */

.section {
  padding: 56px 0;
}

.section-alt {
  background: var(--muted-bg);
}

.section-brand {
  background: var(--brand);
  color: #fff;
}

.section-brand h2 {
  color: #fff;
}

.section-brand p {
  color: #cce1ff;
}

.section-lead {
  color: var(--text);
  max-width: 620px;
  margin-top: -4px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.link-more {
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.link-more:hover {
  text-decoration: underline;
}

.note {
  margin-top: 24px;
  color: var(--text);
  font-size: 0.94rem;
}

.page-head {
  background: var(--muted-bg);
  padding: 40px 0 36px;
  border-bottom: 1px solid var(--line);
}

.page-head .lead {
  color: var(--text);
  font-size: 1.05rem;
  margin-bottom: 0;
}

.crumbs {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 14px;
}

.crumbs a {
  text-decoration: none;
}

.crumbs a:hover {
  text-decoration: underline;
}

/* ----------------------------------------------------------------- grids */

.grid {
  display: grid;
  gap: 18px;
}

.cards {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  margin-top: 28px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.cards .card img {
  width: 64px;
  height: 64px;
  margin-bottom: 10px;
}

.cards .card p {
  color: var(--text);
  font-size: 0.9rem;
  margin: 0;
}

.brands {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  margin-top: 28px;
}

.brand {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.brand h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.brand p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.84rem;
}

/* ----------------------------------------------------------------- posts */

.posts {
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
}

.posts-list {
  grid-template-columns: 1fr;
  gap: 14px;
}

.post-card {
  display: flex;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.post-thumb {
  flex: none;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  background: var(--muted-bg);
  border-radius: 10px;
  overflow: hidden;
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.post-card h2,
.post-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.post-card h2 a,
.post-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.post-card h2 a:hover,
.post-card h3 a:hover {
  color: var(--brand);
}

.post-card p {
  color: var(--text);
  font-size: 0.9rem;
  margin: 0 0 6px;
}

.meta {
  color: var(--text-light);
  font-size: 0.8rem;
  margin: 0 0 6px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}

.tags span,
.tags li {
  background: var(--muted-bg);
  color: var(--text-light);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.74rem;
}

/* --------------------------------------------------------------- article */

.article {
  padding: 36px 0 8px;
}

.article .lead {
  font-size: 1.1rem;
  color: var(--text);
}

.article-cover {
  display: block;
  width: 180px;
  height: 180px;
  margin: 24px auto 8px;
  background: var(--muted-bg);
  border-radius: var(--radius);
  padding: 16px;
}

.article-tags {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.nav-login {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 600;
}

.nav-login:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.prose {
  color: var(--text);
  font-size: 1.02rem;
}

.prose h2 {
  margin: 2em 0 0.5em;
  font-size: 1.5rem;
  color: var(--ink);
}

.prose h3 {
  margin: 1.6em 0 0.4em;
  font-size: 1.15rem;
  color: var(--ink);
}

.prose h4 {
  margin: 1.3em 0 0.35em;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
}

.prose hr {
  margin: 2em 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.prose code {
  background: var(--muted-bg);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.92em;
}

/* Az importált cikkek árakra vonatkozó, dátumozott megjegyzése */
.prose .note {
  margin-top: 2em;
  padding: 12px 16px;
  background: var(--muted-bg);
  border-left: 3px solid var(--line);
  border-radius: 0 6px 6px 0;
  font-size: 0.9rem;
  color: var(--text-light);
}

.prose ul,
.prose ol {
  margin: 0 0 1.2em;
  padding-left: 1.3em;
}

.prose li {
  margin-bottom: 0.45em;
}

.prose strong {
  color: var(--ink);
}

.prose blockquote {
  margin: 1.6em 0;
  padding: 14px 18px;
  background: var(--brand-light);
  border-left: 4px solid var(--brand);
  border-radius: 0 8px 8px 0;
  color: var(--ink);
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
  font-size: 0.92rem;
  display: block;
  overflow-x: auto;
}

.prose th,
.prose td {
  border-bottom: 1px solid var(--line);
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
}

.prose thead th,
.prose tbody th {
  background: var(--muted-bg);
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.notice {
  background: #fff8e6;
  border: 1px solid #f5d78e;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 0.92rem;
  color: #6b4d00;
}

.cta-box {
  margin: 40px 0 8px;
  background: var(--brand-light);
  border: 1px solid #cce1ff;
  border-radius: var(--radius);
  padding: 26px;
}

.cta-box h2 {
  margin-top: 0;
  font-size: 1.25rem;
}

.cta-box p {
  color: var(--text);
}

.related {
  display: grid;
  gap: 10px;
}

/* ---------------------------------------------------------------- signup */

.signup {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 8px;
}

.signup input {
  flex: 1 1 240px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
}

.section-brand .signup input {
  border-color: transparent;
}

.fineprint {
  font-size: 0.8rem;
  color: var(--text-light);
  margin: 0;
}

.section-brand .fineprint {
  color: #cce1ff;
}

.section-brand .fineprint a,
.section-brand a {
  color: #fff;
}

/* ------------------------------------------------------------------- faq */

.faq {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 10px;
  background: #fff;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  float: right;
  color: var(--brand);
  font-weight: 700;
}

.faq[open] summary::after {
  content: '–';
}

.faq p {
  margin: 12px 0 0;
  color: var(--text);
  font-size: 0.94rem;
}

/* --------------------------------------------------------------- contact */

.contact-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.contact-card h2 {
  font-size: 1.15rem;
  margin-top: 0;
}

.contact-card dl {
  margin: 0 0 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  font-size: 0.93rem;
}

.contact-card dt {
  color: var(--text-light);
  font-weight: 500;
}

.contact-card dd {
  margin: 0;
}

/* ------------------------------------------------------------------- 404 */

.notfound {
  padding: 80px 0;
}

.code404 {
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--brand);
  margin: 0;
  line-height: 1;
}

.notfound .hero-cta {
  justify-content: center;
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  background: var(--muted-bg);
  border-top: 1px solid var(--line);
  padding: 48px 0 24px;
  margin-top: 8px;
}

.footer-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.footer-logo {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.site-footer h2 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 12px;
}

.plain {
  list-style: none;
  margin: 0;
  padding: 0;
}

.plain li {
  margin-bottom: 8px;
}

.plain a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
}

.plain a:hover {
  color: var(--brand);
}

.site-footer address {
  font-style: normal;
  margin-top: 14px;
  line-height: 1.7;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--text-light);
  font-size: 0.85rem;
}

.footer-bottom p {
  margin: 0;
}

/* --------------------------------------------------------------- consent */

.consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
  padding: 16px 0;
}

.consent-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.consent p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text);
  max-width: 720px;
}

.consent-actions {
  display: flex;
  gap: 10px;
}

.consent .btn {
  padding: 10px 18px;
  font-size: 0.88rem;
}

@media (max-width: 560px) {
  .hero {
    padding: 44px 0 52px;
  }

  .section {
    padding: 42px 0;
  }

  .post-card {
    flex-direction: column;
  }

  .post-thumb {
    width: 64px;
    height: 64px;
  }

  .consent-actions {
    width: 100%;
  }

  .consent .btn {
    flex: 1;
  }
}

@media print {
  .site-header,
  .site-footer,
  .consent,
  .cta-box,
  .hero-cta {
    display: none;
  }
}
