/* ==========================================================================
   halitgumus.com — shared styles
   Dark, Apple-inspired. System fonts only (no third-party font requests).
   ========================================================================== */

:root {
  color-scheme: dark;

  --bg: #000;
  --bg-elev: #0b0b0c;
  --surface: #141416;
  --surface-2: #1c1c1e;
  --fill: rgba(255, 255, 255, 0.06);
  --fill-hover: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);

  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #6e6e73;
  --accent: #2997ff;

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 24px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Helvetica Neue", "Segoe UI", Roboto, Inter, system-ui, sans-serif;

  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
}

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

/* --------------------------------------------------------------------------
   Language toggle: every translatable string exists twice, marked with lang.
   The inactive language is hidden.
   -------------------------------------------------------------------------- */

html[data-lang="tr"] body [lang="en"],
html[data-lang="en"] body [lang="tr"] {
  display: none !important;
}

.lang-switch {
  display: flex;
  gap: 20px;
  font-size: 13px;
}

.lang-switch button {
  position: relative;
  color: var(--text-3);
  padding: 4px 0;
  transition: color 0.2s var(--ease);
}

.lang-switch button:hover {
  color: var(--text-2);
}

.lang-switch button[aria-pressed="true"] {
  color: var(--text);
}

.lang-switch button[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 16px;
  height: 1px;
  margin-left: -8px;
  background: currentColor;
}

/* --------------------------------------------------------------------------
   Home (link-in-bio card)
   -------------------------------------------------------------------------- */

.home {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
}

.home__card {
  flex: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(900px 600px at 78% 50%, rgba(255, 255, 255, 0.045), transparent 65%),
    radial-gradient(700px 500px at 10% 0%, rgba(41, 151, 255, 0.05), transparent 60%),
    linear-gradient(180deg, #121214 0%, #0a0a0b 100%);
}

.home__intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 7vw, 104px);
  border-right: 1px solid var(--line);
}

.home__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 6vw, 96px);
}

.avatar {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--line-strong), 0 20px 60px rgba(0, 0, 0, 0.6);
}

.home__name {
  margin: 36px 0 0;
  font-size: clamp(40px, 4.6vw, 60px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.home__role {
  margin: 10px 0 0;
  font-size: 19px;
  color: var(--text-2);
  font-weight: 500;
}

.home__bio {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.4;
  color: var(--text-2);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--fill);
  border: 1px solid var(--line);
  color: var(--text);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.socials a:hover {
  background: var(--fill-hover);
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.menu {
  width: 100%;
  max-width: 520px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 20px;
}

.menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 0 28px 0 32px;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  border: 1px solid var(--line-strong);
  font-size: 20px;
  font-weight: 500;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.menu a:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
  border-color: rgba(255, 255, 255, 0.22);
}

.menu .icon {
  width: 22px;
  height: 22px;
  color: var(--text-2);
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}

.menu a:hover .icon {
  color: var(--text);
  transform: translateX(3px);
}

.menu a:hover .icon--external {
  transform: translate(2px, -2px);
}

.menu__label small {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-3);
}

.home__footer {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 16px;
  font-size: 13px;
  color: var(--text-3);
}

@media (max-width: 860px) {
  .home {
    padding: 12px;
  }

  .home__card {
    grid-template-columns: 1fr;
  }

  .home__intro {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 48px 28px 40px;
  }

  .home__nav {
    padding: 32px 20px 40px;
  }

  .avatar {
    width: 120px;
    height: 120px;
  }

  .home__name {
    margin-top: 28px;
  }

  .menu {
    gap: 14px;
  }

  .menu a {
    min-height: 60px;
    padding: 0 20px 0 24px;
    font-size: 18px;
  }

  .home__footer {
    padding: 4px 8px 8px;
  }
}

/* --------------------------------------------------------------------------
   Sub pages: top navigation + footer
   -------------------------------------------------------------------------- */

.topnav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}

.topnav__inner {
  max-width: 1080px;
  height: 52px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
}

.topnav__brand {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-right: auto;
}

.topnav__links {
  display: flex;
  gap: 24px;
  color: var(--text-2);
}

.topnav__links a {
  transition: color 0.2s var(--ease);
}

.topnav__links a:hover,
.topnav__links a[aria-current="page"] {
  color: var(--text);
}

.topnav .lang-switch {
  gap: 14px;
}

.topnav__links + .lang-switch {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

@media (max-width: 560px) {
  .topnav__inner {
    gap: 16px;
    padding: 0 16px;
  }

  .topnav__links {
    gap: 16px;
  }

  .topnav__links + .lang-switch {
    padding-left: 16px;
  }
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 96px;
}

.site-footer__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 22px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-3);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.site-footer__links a:hover {
  color: var(--text-2);
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 22px;
}

/* --------------------------------------------------------------------------
   CV
   -------------------------------------------------------------------------- */

.cv-hero {
  padding: 88px 0 40px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
}

.cv-hero .avatar {
  width: 148px;
  height: 148px;
}

.eyebrow {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0;
}

.cv-hero h1 {
  margin: 8px 0 0;
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.cv-hero__role {
  margin: 10px 0 0;
  font-size: clamp(21px, 2.4vw, 28px);
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: -0.02em;
}

.cv-summary {
  max-width: 820px;
  margin: 0;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.45;
  color: var(--text-2);
  letter-spacing: -0.015em;
}

.cv-summary strong {
  color: var(--text);
  font-weight: 600;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.chip-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--fill);
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--text);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

a.chip-link:hover {
  background: var(--fill-hover);
  border-color: var(--line-strong);
}

.chip-link .icon {
  width: 16px;
  height: 16px;
  color: var(--text-2);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 56px;
}

.stat {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.stat__value {
  display: block;
  font-size: clamp(36px, 4.4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  background: linear-gradient(180deg, #fff 0%, #9a9aa0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat__label {
  display: block;
  margin-top: 10px;
  font-size: 15px;
  color: var(--text-2);
}

.section {
  margin-top: 104px;
}

.section__title {
  margin: 0 0 32px;
  font-size: clamp(32px, 3.6vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

/* Experience timeline */

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}

.job {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.job__meta {
  font-size: 14px;
  color: var(--text-3);
}

.job__date {
  display: block;
  color: var(--text-2);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.job__title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.job__company {
  margin: 2px 0 0;
  font-size: 17px;
  color: var(--text-2);
}

.job__desc {
  margin: 14px 0 0;
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.55;
}

/* Projects grid */

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.project {
  display: flex;
  gap: 18px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.project__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.project h3 {
  margin: 2px 0 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.project p {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-2);
}

/* Skills */

.skills {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.skill-group {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.skill-group h3 {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
}

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

.tags li {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--fill);
  border: 1px solid var(--line);
  font-size: 14px;
}

/* Education + languages */

.split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
}

.list-card {
  padding: 8px 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

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

.list-card li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.list-card li:last-child {
  border-bottom: 0;
}

.list-card strong {
  display: block;
  font-size: 17px;
  font-weight: 600;
}

.list-card span {
  font-size: 15px;
  color: var(--text-2);
}

.list-card .muted {
  flex: none;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.note {
  margin: 24px 0 0;
  font-size: 14px;
  color: var(--text-3);
}

@media (max-width: 760px) {
  .cv-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 56px;
  }

  .cv-hero .avatar {
    width: 112px;
    height: 112px;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 40px;
  }

  .stat {
    padding: 22px 24px;
  }

  .section {
    margin-top: 72px;
  }

  .job {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .projects,
  .skills {
    grid-template-columns: 1fr;
  }

  .list-card {
    padding: 4px 22px;
  }
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    animation: reveal 0.8s var(--ease) both;
  }

  .reveal-2 {
    animation-delay: 0.08s;
  }

  .reveal-3 {
    animation-delay: 0.16s;
  }

  @keyframes reveal {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
  }
}

/* --------------------------------------------------------------------------
   Print (CV prints cleanly on white)
   -------------------------------------------------------------------------- */

@media print {
  :root {
    color-scheme: light;
    --text: #000;
    --text-2: #333;
    --text-3: #666;
    --surface: #fff;
    --fill: #fff;
    --line: #ddd;
  }

  body {
    background: #fff;
    font-size: 12px;
  }

  .topnav,
  .site-footer,
  .stats {
    display: none;
  }

  .stat__value {
    color: #000;
  }

  .section {
    margin-top: 32px;
    break-inside: avoid-page;
  }

  .job,
  .project,
  .skill-group {
    break-inside: avoid;
  }
}

/* --------------------------------------------------------------------------
   Studio: app list
   -------------------------------------------------------------------------- */

.studio-hero {
  padding: 120px 0 72px;
  text-align: center;
}

.studio-hero h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 80px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.studio-hero p {
  max-width: 620px;
  margin: 20px auto 0;
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.4;
  color: var(--text-2);
  letter-spacing: -0.015em;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 24px;
}

.app-card__shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  aspect-ratio: 3 / 2.1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  transition: transform 0.4s var(--ease);
}

.app-card__shots > * {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a.app-card__shots:hover {
  transform: scale(1.012);
}

.app-card__row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.app-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 22.5%;
  box-shadow: 0 0 0 1px var(--line);
}

.app-card__name {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.app-card__cat {
  margin: 0;
  font-size: 13px;
  color: var(--text-3);
}

.app-card__actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--fill);
  border: 1px solid var(--line);
  transition: background 0.2s var(--ease);
}

.icon-btn:hover {
  background: var(--fill-hover);
}

.icon-btn .icon {
  width: 17px;
  height: 17px;
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--fill);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
}

/* Placeholder screenshots until real ones are added */
.shot-placeholder {
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(255, 255, 255, 0.18), transparent 60%),
    linear-gradient(180deg, var(--ph-a, #2b5b8a), var(--ph-b, #0d1f33));
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  font-weight: 500;
}

@media (max-width: 760px) {
  .studio-hero {
    padding: 72px 0 48px;
  }

  .apps-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* --------------------------------------------------------------------------
   Studio: single app page
   -------------------------------------------------------------------------- */

.app-page {
  --app-accent: #5ac8fa;
  position: relative;
  overflow: hidden;
}

.app-page::before {
  content: "";
  position: absolute;
  inset: -200px -20% auto;
  height: 900px;
  background:
    radial-gradient(520px 380px at 62% 38%, color-mix(in srgb, var(--app-accent) 32%, transparent), transparent 70%),
    radial-gradient(700px 500px at 30% 20%, rgba(255, 255, 255, 0.05), transparent 70%);
  pointer-events: none;
}

.app-hero {
  position: relative;
  padding: 96px 22px 0;
  text-align: center;
}

.app-hero__icon {
  width: 104px;
  height: 104px;
  margin: 0 auto;
  border-radius: 22.5%;
  box-shadow: 0 0 0 1px var(--line-strong), 0 24px 60px rgba(0, 0, 0, 0.55);
}

.app-hero__cat {
  margin: 28px 0 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--app-accent);
}

.app-hero h1 {
  margin: 6px 0 0;
  font-size: clamp(44px, 6.4vw, 68px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.app-hero__tagline {
  max-width: 560px;
  margin: 16px auto 0;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.45;
  color: var(--text-2);
}

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

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 22px 0 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line-strong);
  font-size: 16px;
  font-weight: 600;
  transition: background 0.2s var(--ease);
}

.store-btn .icon {
  width: 20px;
  height: 20px;
}

a.store-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.store-btn small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
  line-height: 1.1;
}

.store-btn.is-soon {
  cursor: default;
  color: var(--text-2);
}

.app-hero__studio {
  display: inline-block;
  margin-top: 28px;
  font-size: 14px;
  color: var(--text-3);
}

.app-hero__studio:hover {
  color: var(--text-2);
}

.gallery {
  position: relative;
  display: flex;
  gap: 20px;
  margin-top: 64px;
  padding: 0 max(22px, calc((100vw - 1080px) / 2)) 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.gallery::-webkit-scrollbar {
  display: none;
}

.gallery > * {
  flex: none;
  width: min(270px, 68vw);
  aspect-ratio: 9 / 19.5;
  border-radius: 38px;
  object-fit: cover;
  scroll-snap-align: center;
  box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(0, 0, 0, 0.5);
}

@media (min-width: 1200px) {
  .gallery {
    justify-content: center;
  }
}

.app-about {
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(19px, 2vw, 22px);
  line-height: 1.5;
  color: var(--text-2);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.info {
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.info dt {
  font-size: 13px;
  color: var(--text-3);
}

.info dd {
  margin: 6px 0 0;
  font-size: 17px;
  font-weight: 600;
}

.link-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 17px;
  font-weight: 600;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.link-card small {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-2);
}

.link-card .icon {
  color: var(--text-3);
  transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}

.link-card:hover {
  background: var(--surface-2);
  border-color: var(--line-strong);
}

.link-card:hover .icon {
  color: var(--text);
  transform: translateX(3px);
}

@media (max-width: 760px) {
  .app-hero {
    padding-top: 64px;
  }

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

  .link-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* --------------------------------------------------------------------------
   Legal pages (privacy, terms, support, legal hub)
   -------------------------------------------------------------------------- */

.legal-hero {
  position: relative;
  overflow: hidden;
  padding: 96px 22px 64px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.legal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(520px 260px at 30% 0%, rgba(41, 151, 255, 0.22), transparent 70%),
    radial-gradient(520px 260px at 72% 0%, rgba(191, 90, 242, 0.2), transparent 70%);
  pointer-events: none;
}

.legal-hero > * {
  position: relative;
}

.pill {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--fill);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-2);
}

.legal-hero h1 {
  margin: 20px 0 0;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  background: linear-gradient(90deg, #64b5ff 0%, #bf5af2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.legal-hero__lead {
  max-width: 640px;
  margin: 18px auto 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-2);
}

.legal-hero__date {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--text-3);
}

.legal {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 22px 0;
}

.legal p,
.legal li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-2);
}

.legal p {
  margin: 0 0 14px;
}

.legal ul {
  margin: 0 0 14px;
  padding-left: 20px;
}

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

.legal li::marker {
  color: var(--text-3);
}

.legal strong {
  color: var(--text);
  font-weight: 600;
}

.legal a:not(.toc a) {
  color: var(--accent);
}

.legal a:not(.toc a):hover {
  text-decoration: underline;
}

.legal h3 {
  margin: 24px 0 10px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}

.legal-intro {
  margin-bottom: 32px !important;
}

.toc {
  margin: 0 0 24px;
  padding: 24px 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.toc__title,
.callout__label {
  margin: 0 0 14px !important;
  font-size: 12px !important;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3) !important;
}

.toc ol {
  margin: 0;
  padding-left: 22px;
  columns: 2;
  column-gap: 40px;
}

.toc li {
  margin: 0 0 8px;
  break-inside: avoid;
  font-size: 15px;
}

.toc a {
  color: var(--text-2);
  transition: color 0.2s var(--ease);
}

.toc a:hover {
  color: var(--text);
}

.callout {
  margin: 0 0 24px;
  padding: 28px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(41, 151, 255, 0.12), rgba(191, 90, 242, 0.1)),
    var(--surface);
  border: 1px solid rgba(100, 181, 255, 0.25);
}

.callout h2 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

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

.legal-section {
  margin: 0 0 16px;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  scroll-margin-top: 72px;
}

.legal-section h2 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.legal-section h2 span.num {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.legal-section > :last-child {
  margin-bottom: 0;
}

.table-wrap {
  margin: 8px 0 16px;
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.data-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
  line-height: 1.5;
}

.data-table th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
  background: rgba(255, 255, 255, 0.02);
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table td:first-child {
  color: var(--text);
  font-weight: 500;
}

.status {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.status--no {
  background: rgba(48, 209, 88, 0.14);
  color: #30d158;
}

.status--planned {
  background: rgba(255, 214, 10, 0.12);
  color: #ffd60a;
}

/* FAQ */

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

.faq details:last-child {
  border-bottom: 0;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  flex: none;
  font-size: 22px;
  font-weight: 400;
  color: var(--text-3);
  transition: transform 0.2s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details > div {
  padding: 0 0 18px;
}

.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.contact-card .store-btn {
  height: 46px;
}

/* Legal hub */

.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 56px 22px 0;
}

.hub-group {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}

.hub-group h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font-size: 17px;
  font-weight: 600;
}

.hub-group h2 img {
  width: 28px;
  height: 28px;
  border-radius: 22.5%;
}

.hub-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.hub-group a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--fill);
  border: 1px solid var(--line);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.hub-group a:hover {
  background: var(--fill-hover);
  border-color: var(--line-strong);
}

.hub-group a strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.hub-group a small {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--text-3);
}

.hub-group .icon {
  width: 18px;
  height: 18px;
  color: var(--text-3);
}

@media (max-width: 760px) {
  .legal-hero {
    padding: 64px 22px 48px;
  }

  .legal {
    padding-top: 36px;
  }

  .legal-section,
  .callout {
    padding: 24px 22px;
  }

  .toc ol {
    columns: 1;
  }

  .hub-grid {
    grid-template-columns: 1fr;
    padding-top: 36px;
  }
}

@media print {
  .legal-hero::before {
    display: none;
  }

  .legal-hero h1 {
    color: #000;
    background: none;
  }

  .legal-section,
  .callout,
  .toc {
    break-inside: avoid;
  }
}

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

.studio-footer {
  margin-top: 120px;
  padding: 72px 22px 40px;
  border-top: 1px solid var(--line);
  text-align: center;
  background: radial-gradient(600px 300px at 50% 55%, rgba(255, 255, 255, 0.035), transparent 70%);
}

.studio-footer__label {
  margin: 0;
  font-size: 13px;
  color: var(--text-3);
}

.studio-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 0;
  margin-top: 20px;
  font-size: 15px;
}

.studio-footer__nav a {
  color: var(--text);
  transition: color 0.2s var(--ease);
}

.studio-footer__nav a:hover {
  color: var(--text-2);
}

.studio-footer__nav a + a::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 14px;
  border-radius: 50%;
  background: var(--text-2);
  vertical-align: middle;
}

.studio-footer__phone {
  width: min(460px, 92%);
  height: auto;
  margin: 28px auto 0;
}

.studio-footer__groups {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px 72px;
  margin-top: 28px;
}

.studio-footer__circles {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.studio-footer__circles a {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--text);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.studio-footer__circles a:hover {
  background: var(--fill-hover);
  border-color: rgba(255, 255, 255, 0.4);
}

.studio-footer__circles .icon {
  width: 17px;
  height: 17px;
}

.studio-footer__copy {
  margin: 40px 0 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-3);
}
