/* ──────────────────────────────────────────────────────────────────────────
   1inc.com.tr — shared stylesheet
   Theme palette mirrors the SubsTracka mobile app.
   ────────────────────────────────────────────────────────────────────────── */

:root {
  /* Brand */
  --primary: #E63946;
  --primary-soft: rgba(230, 57, 70, 0.12);
  --primary-strong: #d12c39;
  --gradient: linear-gradient(135deg, #E63946 0%, #FF8A3D 100%);

  /* Dark theme (default) — matches darkTheme in app */
  --bg: #1A0F0A;
  --surface: #2A1A12;
  --surface-2: #3D2A1E;
  --surface-3: #4A3326;
  --text: #FFF8F5;
  --text-secondary: #A89488;
  --border: #3D2A1E;
  --shadow: rgba(0, 0, 0, 0.3);

  --radius: 14px;
  --radius-lg: 20px;
  --max-width: 980px;

  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color-scheme: dark;
}

html[data-theme="light"] {
  /* Light theme — matches lightTheme in app */
  --bg: #FFF8F5;
  --surface: #FFFFFF;
  --surface-2: #F5EDE8;
  --surface-3: #EDE0D8;
  --text: #1A0F0A;
  --text-secondary: #6B5A52;
  --border: #E8DDD9;
  --shadow: rgba(26, 15, 10, 0.08);
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
  transition: background-color 0.2s, color 0.2s;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: opacity 0.15s;
}
a:hover { opacity: 0.8; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Header ───────────────────────────────────────────────── */
header.site {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  z-index: 10;
}
header.site .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  font-weight: 800;
  letter-spacing: -0.5px;
  font-size: 20px;
  color: var(--text);
  display: flex;
  align-items: center;
}
.brand span { color: var(--primary); }
.brand img.brand-logo {
  height: 70px;
  width: auto;
  border-radius: 50%;
  border: 2px solid var(--primary);
  padding: 3px;
  display: block;
}
nav.main {
  display: flex;
  align-items: center;
  gap: 6px;
}
nav.main a.nav-link {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
nav.main a.nav-link:hover {
  color: var(--text);
  background: var(--surface-2);
  opacity: 1;
}

/* Toggle pill buttons (lang + theme) */
.toggle-btn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  letter-spacing: 0.3px;
}
.toggle-btn:hover {
  border-color: var(--primary);
  color: var(--text);
}
.toggle-btn .icon { width: 14px; height: 14px; }

/* ─── Hero ─────────────────────────────────────────────────── */
/* Only set vertical padding here so the .container horizontal padding
   (0 24px) is preserved — otherwise content touches the screen edges. */
.hero {
  padding-top: 96px;
  padding-bottom: 56px;
  text-align: center;
}
.hero h1 {
  font-size: 52px;
  line-height: 1.1;
  margin: 0 0 18px;
  letter-spacing: -1.5px;
  font-weight: 800;
  background: var(--gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.hero p.lead {
  font-size: 17px;
  color: var(--text-secondary);
  margin: 0 auto;
  max-width: 540px;
}
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

/* ─── Section ──────────────────────────────────────────────── */
section.block {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}
section.block h2 {
  font-size: 28px;
  margin: 0 0 8px;
  letter-spacing: -0.6px;
  font-weight: 800;
}
section.block p.sub {
  color: var(--text-secondary);
  margin: 0 0 32px;
  font-size: 15px;
}

/* ─── Product cards ────────────────────────────────────────── */
.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 560px) {
  .products { grid-template-columns: 1fr; }
}
.product-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  display: block;
  color: var(--text);
}
.product-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--shadow);
  opacity: 1;
}
/* Header row: real app icon on the left, product name to its right */
.pc-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.pc-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px var(--shadow);
}
.pc-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.4px;
  line-height: 1.1;
}
.pc-title .ink   { color: var(--text); }
.pc-title .red   { color: #E63946; }
.pc-title .blue  { color: #2563EB; }
.pc-title .green { color: #16A34A; }
.pc-title .purple{ color: #7C3AED; }
.product-card p {
  margin: 0 0 14px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}
.product-card .more {
  font-size: 13px;
  color: var(--primary);
  font-weight: 700;
}

/* Coming-soon cards (HealthTracka, HomeTracka) */
.product-card.soon { cursor: not-allowed; }
.product-card.soon:hover {
  transform: none;
  border-color: var(--border);
  box-shadow: 0 1px 0 var(--shadow);
}
.product-card.soon .pc-icon,
.product-card.soon .pc-title,
.product-card.soon p { opacity: 0.9; }
.soon-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.18s;
  pointer-events: none;
}
.product-card.soon:hover .soon-overlay { opacity: 1; }
.soon-overlay span {
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: 0.4px;
  color: var(--text);
  border: 1px solid var(--text);
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--surface);
}

/* Legacy single-letter icon (kept for any old markup) */
.product-card .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px;
  margin-bottom: 16px;
}

/* ─── Buttons ──────────────────────────────────────────────── */
.cta-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.btn:hover { border-color: var(--primary); opacity: 1; }
.btn.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.btn.primary:hover {
  background: var(--primary-strong);
  border-color: var(--primary-strong);
}
.btn[disabled], .btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ─── Feature grid ─────────────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 8px;
}
@media (max-width: 680px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .features { grid-template-columns: 1fr; }
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.feature .num { display: none; }
.feature h4 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
}
.feature p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

/* ─── Contact form ─────────────────────────────────────────── */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 540px;
  margin: 0 auto;
}
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--primary);
}
.field textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.55;
}
.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}
.form-status {
  font-size: 13px;
  color: var(--text-secondary);
  flex: 1;
}
.form-status.success { color: #22C55E; }
.form-status.error { color: var(--primary); }

/* ─── Hero supporting note ─────────────────────────────────── */
.hero-note {
  max-width: 600px;
  margin: 22px auto 0;
  color: var(--text-secondary);
  font-size: 15.5px;
  line-height: 1.7;
}

/* ─── Contact layout ──────────────────────────────────────── */
.contact-form-wrap { display: flex; flex-direction: column; gap: 0; }
.contact-top-row {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 18px;
  align-items: start;
}
.contact-top-fields {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.contact-top-fields .field:last-child { margin-bottom: 0; }
.contact-message-row {
  margin-top: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.contact-message-row .field { margin-bottom: 8px; }
.contact-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (max-width: 720px) {
  .contact-top-row { grid-template-columns: 1fr; }
}
.contact-email {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  color: var(--text);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.contact-email:hover {
  border-color: var(--primary);
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px var(--shadow);
}
.contact-email .ce-ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.contact-email small {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 3px;
  letter-spacing: 0.2px;
}
.contact-email b {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.contact-reassure {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
  padding: 0 4px;
  line-height: 1.6;
}
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 18px;
  align-items: start;
}
.contact-grid .contact-card { max-width: none; margin: 0; }
@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ─── Access request section ───────────────────────────── */
.access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.access-info { padding-top: 8px; }
.access-info h2 { margin: 12px 0 14px; }
.access-info p { color: var(--text-secondary); font-size: 15px; line-height: 1.7; margin: 0 0 22px; }
.access-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.access-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.access-features li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.access-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 4px 24px var(--shadow);
}
@media (max-width: 720px) {
  .access-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ─── Long-form documents (privacy / terms / support) ───── */
.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}
.doc h1 {
  font-size: 34px;
  letter-spacing: -0.9px;
  margin: 0 0 6px;
  font-weight: 800;
}
.doc .meta {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 30px;
}
.doc h2 {
  font-size: 18px;
  margin: 36px 0 8px;
  letter-spacing: -0.2px;
  font-weight: 700;
}
.doc h3 {
  font-size: 14px;
  margin: 22px 0 6px;
  letter-spacing: 0.2px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
}
.doc p, .doc li {
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
}
.doc ul { padding-left: 20px; }
.doc hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}
.doc strong { color: var(--text); }

/* ─── Footer ───────────────────────────────────────────────── */
footer.site {
  border-top: 1px solid var(--border);
  padding: 26px 0;
  margin-top: 60px;
  color: var(--text-secondary);
  font-size: 13px;
}
footer.site .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  color: var(--text);
}
.foot-brand img {
  height: 24px;
  width: auto;
  border-radius: 6px;
}
.foot-brand .yr { color: var(--text-secondary); font-weight: 500; }
.foot-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
}
.foot-links a { color: var(--text-secondary); }
.foot-links a:hover { color: var(--text); opacity: 1; }
@media (max-width: 560px) {
  footer.site .row { flex-direction: column; text-align: center; gap: 14px; }
  .foot-links { justify-content: center; }
}
/* legacy footer links (any old markup) */
footer.site .row > div > a { color: var(--text-secondary); margin-left: 14px; }
footer.site .row > div > a:hover { color: var(--text); opacity: 1; }

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 600px) {
  .hero { padding-top: 56px; padding-bottom: 40px; }
  .hero h1 { font-size: 34px; letter-spacing: -1px; }
  .hero p.lead { font-size: 16px; }
  .hero-note { font-size: 14.5px; }
  section.block { padding: 48px 0; }
  section.block h2 { font-size: 24px; }
  nav.main a.nav-link { display: none; }
  header.site .row { gap: 8px; }
  .doc h1 { font-size: 28px; }
}
@media (max-width: 380px) {
  .container { padding: 0 18px; }
  .hero h1 { font-size: 30px; }
}

/* hide-on-mobile utility used in header nav */
.mobile-hide {}
@media (max-width: 600px) {
  .mobile-hide { display: none; }
}

/* ─── Subscription catalog (SubsTracka /abonelikler) ───────── */
.cat-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 32px;
}
.cat-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 20px;
  min-width: 120px;
}
.cat-stat b {
  display: block;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
}
.cat-stat span {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.cat-group { margin-bottom: 30px; }
.cat-group h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-secondary);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cat-group h3 .count {
  background: var(--surface-2);
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}
.sub-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (max-width: 600px) { .sub-list { grid-template-columns: 1fr; } }
.sub-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 14px;
  transition: border-color 0.15s, transform 0.15s;
}
.sub-row:hover { border-color: var(--primary); transform: translateY(-1px); }
.sub-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -0.3px;
}
.sub-meta { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sub-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sub-cat { font-size: 12px; color: var(--text-secondary); }

/* ─── i18n helpers ─────────────────────────────────────────── */
html[lang="tr"] [data-en]:not([data-tr]) { display: none; }
html[lang="en"] [data-tr]:not([data-en]) { display: none; }
