/* Shared styles for the Tersten / Backwards website (marketing, support, privacy). */
:root {
  --purple: #6B4BD8;
  --pink: #E6306B;
  --orange: #FFB224;
  --ink: #1D2B5C;
  --muted: #5A6690;
  --card: #FFFFFF;
  --soft: #F4F1FF;
  --line: #E2DDF7;
  --radius: 24px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #FBF9FF;
  color: var(--ink);
  font-family: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.55;
}

a { color: var(--purple); }
a:hover { color: var(--pink); }

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

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(251, 249, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 24px; color: var(--ink); text-decoration: none; }
.brand .mark { width: 38px; height: 38px; border-radius: 10px; }
.nav { display: flex; align-items: center; gap: 18px; font-weight: 700; font-size: 16px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.lang {
  border: 2px solid var(--line); border-radius: 999px; padding: 2px 12px; color: var(--ink) !important;
}

/* Hero */
.hero {
  background: linear-gradient(150deg, var(--purple) 0%, var(--pink) 55%, var(--orange) 100%);
  color: #fff; overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.logo { font-size: clamp(56px, 10vw, 104px); line-height: 1; font-weight: 800; margin: 0; display: inline-block; transform: scaleX(-1); text-shadow: 0 6px 0 rgba(0,0,0,0.2); }
.hero p.lead { font-size: 22px; margin: 18px 0 26px; max-width: 34ch; }
.badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store-btn {
  display: inline-flex; align-items: center; gap: 10px; background: #111; color: #fff; text-decoration: none;
  border-radius: 14px; padding: 10px 18px; font-weight: 700; line-height: 1.2;
}
.store-btn small { display: block; font-weight: 500; font-size: 12px; opacity: 0.8; }
.store-btn:hover { color: #fff; background: #000; }
.pill { background: rgba(255,255,255,0.2); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 15px; }
.hero-phones { display: flex; justify-content: center; align-items: flex-start; gap: 18px; }
.hero-phones .phone:nth-child(2) { margin-top: 48px; }

/* Phone frame around screenshots */
.phone {
  width: 220px; border-radius: 34px; padding: 8px; background: #111;
  box-shadow: 0 20px 40px rgba(20, 10, 60, 0.35);
}
.phone img { border-radius: 27px; width: 100%; height: auto; }

/* Sections */
section { padding: 64px 0; }
section.alt { background: var(--soft); }
h2 { font-size: clamp(30px, 4vw, 40px); line-height: 1.15; margin: 0 0 12px; }
.sub { color: var(--muted); margin: 0 0 32px; max-width: 60ch; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step .num {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff;
  background: var(--pink); margin-bottom: 10px;
}
.step:nth-child(2) .num { background: var(--purple); }
.step:nth-child(3) .num { background: #13B3A5; }
.step h3 { margin: 0 0 6px; font-size: 22px; line-height: 1.2; }
.step p { margin: 0; color: var(--muted); }

.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.theme { border-radius: 20px; padding: 16px; color: #fff; font-weight: 800; font-size: 19px; min-height: 110px; display: flex; flex-direction: column; justify-content: space-between; }
.theme span { font-size: 34px; line-height: 1; }
.t-futbol { background: linear-gradient(135deg, #0FA34A, #05461F); }
.t-noel { background: linear-gradient(135deg, #0B3B3C, #0F5B4F, #C2182B); }
.t-unluler { background: linear-gradient(135deg, #FF3CAC, #784BA0, #2B86C5); }
.t-arabalar { background: linear-gradient(135deg, #F2344B, #1B1B3A); }
.t-hayvanlar { background: linear-gradient(135deg, #FFD23F, #B5501A); }
.t-yemekler { background: linear-gradient(135deg, #FF9A8B, #C2306B); }
.t-diger { background: linear-gradient(135deg, #00C9FF, #5B6CFF, #B14BFF); }

.gallery { display: flex; gap: 22px; overflow-x: auto; padding: 8px 4px 24px; scroll-snap-type: x mandatory; }
.gallery figure { margin: 0; flex: none; scroll-snap-align: start; }
.gallery figcaption { text-align: center; font-weight: 700; color: var(--muted); margin-top: 10px; font-size: 16px; }

.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.feature { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 20px; }
.feature .ico { font-size: 30px; }
.feature h3 { margin: 6px 0 4px; font-size: 20px; line-height: 1.25; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }

.cta { text-align: center; }

/* Document pages (support, privacy) */
.doc-head { background: linear-gradient(150deg, var(--purple), var(--pink)); color: #fff; padding: 48px 0 40px; }
.doc-head h1 { margin: 0; font-size: clamp(36px, 5vw, 52px); line-height: 1.1; }
.doc-head p { margin: 8px 0 0; opacity: 0.92; }
.doc { max-width: 760px; padding-top: 40px; padding-bottom: 64px; }
.doc h2 { font-size: 28px; margin: 36px 0 10px; }
.doc h3 { font-size: 21px; margin: 24px 0 6px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }
.note { background: var(--soft); border-left: 5px solid var(--purple); border-radius: 12px; padding: 14px 18px; margin: 18px 0; }
.contact-card { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 24px 0; }
.contact-card a.button {
  display: inline-block; margin-top: 8px; background: var(--pink); color: #fff; text-decoration: none; font-weight: 800;
  border-radius: 999px; padding: 8px 20px;
}
details { background: var(--card); border: 2px solid var(--line); border-radius: 16px; padding: 12px 18px; margin: 10px 0; }
details summary { cursor: pointer; font-weight: 800; font-size: 19px; }
details p { margin: 8px 0 2px; color: var(--muted); }
.with-shot { display: grid; grid-template-columns: 1fr 200px; gap: 28px; align-items: start; }
.with-shot .phone { width: 200px; }

/* Footer */
footer { background: var(--ink); color: #C9CFEA; padding: 32px 0; font-size: 16px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
footer a { color: #fff; text-decoration: none; margin-right: 18px; font-weight: 700; }
footer a:hover { color: var(--orange); }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; padding-top: 40px; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .badges { justify-content: center; }
  .phone { width: 170px; }
  .hero-phones .phone:nth-child(2) { margin-top: 28px; }
  .steps { grid-template-columns: 1fr; }
  .with-shot { grid-template-columns: 1fr; }
  .with-shot .phone { margin: 0 auto; }
  .nav { gap: 12px; font-size: 15px; }
  .nav .hide-sm { display: none; }
}

@media (max-width: 480px) {
  .brand { font-size: 18px; line-height: 1.05; gap: 8px; }
  .brand .mark { width: 32px; height: 32px; }
}
