/* Koza tanıtım sitesi — açık tema, uygulama renkleri (lib/theme ve
   koza_ogretmen AppColors ile aynı palet). */

:root {
  --brand: #07558c;
  --brand-light: #0284c7;
  --brand-dark: #053b61;
  --teal: #0d9488;
  --amber: #f59e0b;
  --cyan: #22c1dc;

  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-tint: #eff6fb;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 12px 32px -12px rgba(7, 85, 140, 0.18);
  --shadow-lg: 0 32px 64px -24px rgba(7, 85, 140, 0.32);

  --container: 1160px;
  --gutter: 24px;
}

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

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

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: balance;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid rgba(2, 132, 199, 0.45);
  outline-offset: 2px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

/* ---------------------------------------------------------------- Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

/* Logo görselinin kendi içinde geniş bir kenar boşluğu var. */
.brand img {
  height: 54px;
  width: auto;
  margin-left: -14px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: auto;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
}

.site-nav a:hover {
  background: var(--bg-soft);
  color: var(--text);
}

.site-nav a[aria-current='page'] {
  color: var(--brand);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
}

.menu-toggle svg {
  margin: auto;
}

@media (max-width: 960px) {
  .site-header .container {
    gap: 12px;
  }

  .menu-toggle {
    display: grid;
  }

  .site-nav,
  .header-actions {
    display: none;
  }

  .site-header.is-open .site-nav,
  .site-header.is-open .header-actions {
    display: flex;
  }

  .site-header.is-open .container {
    flex-wrap: wrap;
    height: auto;
    padding-top: 13px;
    padding-bottom: 16px;
  }

  .site-header.is-open .site-nav {
    order: 3;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin: 8px 0 0;
  }

  .site-header.is-open .site-nav a {
    padding: 12px;
  }

  .site-header.is-open .header-actions {
    order: 4;
    width: 100%;
  }

  .site-header.is-open .header-actions .btn {
    flex: 1;
  }
}

/* --------------------------------------------------------------- Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 16px -8px rgba(7, 85, 140, 0.6);
}

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

.btn-secondary {
  background: var(--bg);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
}

.btn-ghost:hover {
  background: var(--bg-soft);
  color: var(--text);
}

.btn-lg {
  min-height: 52px;
  padding: 14px 24px;
  font-size: 16px;
}

.btn svg {
  flex: none;
}

/* -------------------------------------------------------------- Sections */

.section {
  padding: 96px 0;
}

.section-soft {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head.left {
  margin-left: 0;
  text-align: left;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--brand-light);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
}

.section-lead {
  margin-top: 16px;
  color: var(--muted);
  font-size: 18px;
}

@media (max-width: 720px) {
  :root {
    --gutter: 16px;
  }

  .section {
    padding: 64px 0;
  }

  .section-head {
    margin-bottom: 40px;
  }
}

/* ------------------------------------------------------------------ Hero */

.hero {
  padding: 72px 0 0;
  background: linear-gradient(180deg, var(--bg-tint) 0%, var(--bg) 62%);
  overflow: hidden;
}

.hero-copy {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 6px 14px 6px 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
}

.hero-badge strong {
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(13, 148, 136, 0.12);
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.hero h1 .accent {
  color: var(--brand);
}

.hero-lead {
  max-width: 640px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.hero-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.hero-visual {
  position: relative;
  max-width: 1080px;
  margin: 56px auto 0;
  padding-bottom: 56px;
}

.hero-visual .phone {
  position: absolute;
  right: -24px;
  bottom: 0;
  width: 23%;
  min-width: 150px;
}

@media (max-width: 720px) {
  .hero {
    padding-top: 48px;
  }

  .hero-visual {
    margin-top: 40px;
    padding-bottom: 32px;
  }

  .hero-visual .phone {
    right: 0;
    width: 32%;
    min-width: 0;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }
}

/* ---------------------------------------------------------------- Frames */

.browser {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow-lg);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}

.browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}

.browser-bar .url {
  width: auto;
  height: auto;
  margin: 0 auto;
  padding: 2px 14px;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}

.browser img {
  width: 100%;
  height: auto;
}

.phone {
  padding: 8px;
  border-radius: 36px;
  background: #0f172a;
  box-shadow: var(--shadow-lg);
}

.phone img {
  width: 100%;
  height: auto;
  border-radius: 28px;
}

/* ------------------------------------------------------------ Logos/strip */

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text-2);
  font-size: 15px;
  font-weight: 600;
}

@media (max-width: 900px) {
  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .trust-strip {
    grid-template-columns: 1fr;
  }
}

/* ----------------------------------------------------------------- Icons */

.icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-tint);
  color: var(--brand);
}

.icon.sm {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.icon.teal {
  background: rgba(13, 148, 136, 0.1);
  color: var(--teal);
}

.icon.amber {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}

.icon.sky {
  background: rgba(2, 132, 199, 0.1);
  color: var(--brand-light);
}

/* ----------------------------------------------------------------- Cards */

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

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

a.card {
  color: inherit;
}

a.card:hover {
  border-color: rgba(7, 85, 140, 0.35);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card h3 {
  font-size: 19px;
  font-weight: 700;
}

.card p {
  color: var(--muted);
  font-size: 15px;
}

.card .more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: var(--brand);
  font-size: 15px;
  font-weight: 600;
}

/* ---------------------------------------------------------- Feature rows */

.feature-row {
  display: grid;
  grid-template-columns: 5fr 7fr;
  align-items: center;
  gap: 64px;
}

.feature-row + .feature-row {
  margin-top: 112px;
}

.feature-row.reverse {
  grid-template-columns: 7fr 5fr;
}

.feature-row.reverse .feature-copy {
  order: 2;
}

.feature-copy h2 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
}

.feature-copy > p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
}

.feature-copy .icon {
  margin-bottom: 20px;
}

.checklist {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: flex;
  gap: 12px;
  color: var(--text-2);
  font-size: 15px;
}

.checklist li::before {
  content: '';
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(13, 148, 136, 0.12)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d9488' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

.feature-media .browser {
  box-shadow: var(--shadow);
}

.phone-pair {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.phone-pair .phone {
  width: 46%;
  max-width: 270px;
}

.phone-pair .phone:nth-child(2) {
  margin-top: 48px;
}

.phone-pair .phone:only-child {
  width: 62%;
  max-width: 300px;
}

@media (max-width: 900px) {
  .feature-row,
  .feature-row.reverse {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .feature-row.reverse .feature-copy {
    order: 0;
  }

  .feature-row + .feature-row {
    margin-top: 80px;
  }
}

/* ----------------------------------------------------------------- Steps */

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step {
  position: relative;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}

.step h3 {
  font-size: 18px;
  font-weight: 700;
}

.step p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

@media (max-width: 800px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------- Page head */

.page-head {
  padding: 72px 0 56px;
  background: linear-gradient(180deg, var(--bg-tint) 0%, var(--bg) 100%);
  text-align: center;
}

.page-head h1 {
  max-width: 820px;
  margin: 0 auto;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.page-head p {
  max-width: 680px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 18px;
}

.subnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.subnav a {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
}

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

/* --------------------------------------------------------------- Pricing */

.billing-toggle {
  display: inline-flex;
  gap: 4px;
  margin: 32px auto 0;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
}

.billing-toggle[hidden] {
  display: none;
}

.billing-toggle button {
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.billing-toggle button[aria-pressed='true'] {
  background: var(--brand);
  color: #fff;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: 20px;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
}

.plan.featured {
  border: 2px solid var(--brand);
  box-shadow: var(--shadow);
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 32px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.plan h3 {
  font-size: 20px;
  font-weight: 700;
}

.plan-desc {
  margin-top: 8px;
  min-height: 48px;
  color: var(--muted);
  font-size: 15px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  align-content: flex-end;
  gap: 6px;
  min-height: 76px;
  margin: 24px 0;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.plan-price .amount {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.plan-price .amount.quote {
  font-size: 28px;
}

.plan-price .period {
  color: var(--muted);
  font-size: 15px;
}

.plan .checklist {
  margin: 0 0 32px;
}

.plan .btn {
  margin-top: auto;
}

@media (max-width: 960px) {
  .plans {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }
}

.compare {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 15px;
}

.compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
}

.compare th,
.compare td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.compare th:first-child,
.compare td:first-child {
  text-align: left;
}

.compare thead th {
  background: var(--bg-soft);
  font-weight: 700;
}

.compare tbody th {
  font-weight: 500;
  color: var(--text-2);
}

.compare tr.group th {
  background: var(--bg-tint);
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.compare tr:last-child td,
.compare tr:last-child th {
  border-bottom: 0;
}

.yes {
  color: var(--teal);
  font-weight: 700;
}

.no {
  color: var(--border-strong);
}

/* ------------------------------------------------------------------- FAQ */

.faq {
  max-width: 820px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  font-size: 17px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

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

.faq summary::after {
  content: '+';
  flex: none;
  color: var(--brand);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}

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

.faq details p {
  padding: 0 4px 22px;
  color: var(--muted);
}

/* --------------------------------------------------------------- Contact */

.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.form {
  display: grid;
  gap: 18px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .form {
    padding: 22px;
  }
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 15px;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-light);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.form-note {
  color: var(--muted);
  font-size: 13px;
}

/* ------------------------------------------------------------- CTA band */

.cta-band {
  padding: 56px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  color: #fff;
  text-align: center;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
}

.cta-band p {
  max-width: 560px;
  margin: 14px auto 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 17px;
}

.cta-band .hero-actions {
  margin-top: 28px;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--brand);
  box-shadow: none;
}

.cta-band .btn-primary:hover {
  background: var(--bg-tint);
  color: var(--brand-dark);
}

.cta-band .btn-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.cta-band .btn-secondary:hover {
  border-color: #fff;
  color: #fff;
}

@media (max-width: 640px) {
  .cta-band {
    padding: 40px 22px;
  }
}

/* ------------------------------------------------------------------ Prose */

.prose {
  max-width: 760px;
  margin: 0 auto;
  color: var(--text-2);
}

.prose h2 {
  margin: 40px 0 12px;
  font-size: 22px;
  font-weight: 700;
}

.prose p,
.prose ul {
  margin: 0 0 14px;
}

.prose li {
  margin-bottom: 6px;
}

/* ---------------------------------------------------------------- Footer */

.site-footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 15px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 32px;
}

.footer-brand img {
  height: 50px;
  width: auto;
  margin: -8px 0 8px -13px;
}

.footer-brand p {
  max-width: 320px;
}

.footer-col h4 {
  margin-bottom: 14px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.footer-col a {
  display: block;
  padding: 4px 0;
  color: var(--muted);
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* --------------------------------------------------------------- Helpers */

.center {
  text-align: center;
}

.mt-48 {
  margin-top: 48px;
}

.muted {
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}

/* -------------------------------------------------- Screenshot Showcase */

.screenshot-showcase {
  margin-top: 40px;
}

.showcase-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
}

.showcase-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text-2);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.showcase-tab:hover {
  border-color: var(--brand-light);
  color: var(--brand);
  background: var(--bg-soft);
}

.showcase-tab.active,
.showcase-tab[aria-selected="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 6px 16px -4px rgba(7, 85, 140, 0.4);
}

.showcase-tab svg {
  flex: none;
}

.showcase-panel {
  display: none;
}

.showcase-panel.active {
  display: block;
  animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.showcase-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding: 18px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.showcase-meta-copy h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.showcase-meta-copy p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 3px;
}

.showcase-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-tint);
  color: var(--brand);
  border: 1px solid rgba(7, 85, 140, 0.12);
}

.tag.teal {
  background: rgba(13, 148, 136, 0.1);
  color: var(--teal);
  border-color: rgba(13, 148, 136, 0.15);
}

/* --------------------------------------------------- Pricing Calculator */

.pricing-calculator {
  max-width: 860px;
  margin: 56px auto 0;
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: var(--shadow);
}

.calc-head {
  text-align: center;
  margin-bottom: 32px;
}

.calc-head h3 {
  font-size: 24px;
  font-weight: 800;
}

.calc-head p {
  color: var(--muted);
  font-size: 15px;
  margin-top: 6px;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

@media (max-width: 768px) {
  .calc-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.calc-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
}

.calc-val {
  color: var(--brand);
  font-weight: 700;
  font-size: 16px;
}

.calc-slider {
  width: 100%;
  height: 6px;
  accent-color: var(--brand);
  cursor: pointer;
}

.calc-result-box {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--bg-tint) 0%, rgba(2, 132, 199, 0.08) 100%);
  border: 1px solid rgba(7, 85, 140, 0.15);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.calc-result-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.calc-price {
  font-size: 38px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.02em;
}

.calc-period {
  font-size: 14px;
  color: var(--muted);
  margin-top: -6px;
}

.calc-saving {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(13, 148, 136, 0.12);
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
}

.billing-toggle button .badge-discount {
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(13, 148, 136, 0.15);
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
}

.billing-toggle button[aria-pressed='true'] .badge-discount {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* ----------------------------------------------------- Community Page (Light) */

.community-hero {
  padding: 64px 0 40px;
  background: linear-gradient(180deg, var(--bg-tint) 0%, var(--bg) 100%);
  text-align: center;
}

.community-hero-copy {
  max-width: 760px;
  margin: 0 auto;
}

.community-hero h1 {
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 800;
  margin-top: 12px;
}

.community-hero p {
  color: var(--muted);
  font-size: 18px;
  margin-top: 14px;
}

.community-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.community-stats {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin-top: 36px;
}

.community-stats > div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.community-stats strong {
  font-size: 30px;
  font-weight: 800;
  color: var(--brand);
}

.community-stats span {
  color: var(--muted);
  font-size: 14px;
}

.community-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin: 32px 0 24px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}

.community-search,
.community-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
}

.community-search input {
  min-width: 260px;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
}

.community-filter select {
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
}

.community-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.community-chip {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.community-chip.active,
.community-chip:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .community-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .community-grid {
    grid-template-columns: 1fr;
  }
}

.community-game-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.community-game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--brand-light);
}

.community-game-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--bg-tint) 0%, rgba(2, 132, 199, 0.15) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.community-game-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.generated-cover {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  width: 100%;
  height: 100%;
}

.generated-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
}

.generated-cover p {
  font-size: 12px;
  color: var(--text-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-type-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.community-game-body {
  display: flex;
  flex-direction: column;
  padding: 20px;
  flex: 1;
}

.game-card-meta {
  display: flex;
  gap: 8px;
  color: var(--brand-light);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}

.community-game-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.community-game-body p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 16px;
  flex: 1;
}

.game-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

.community-play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  background: var(--bg-tint);
  color: var(--brand);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.15s ease;
}

.community-play-btn:hover {
  background: var(--brand);
  color: #fff;
}

.creator-role {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: var(--bg-soft);
  color: var(--text-2);
}

.community-empty {
  text-align: center;
  padding: 64px 20px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg);
}

.empty-mark {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-tint);
  color: var(--brand);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 14px;
}

.skeleton-card {
  height: 280px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
