/**
 * oweasy.app ortak stili.
 *
 * Renkler ve yazı tipleri uygulamanın `src/theme/tokens.ts` dosyasından
 * geliyor; site ile uygulama yan yana konduğunda aynı ürün gibi durmalı.
 * Uygulama yalnızca açık temada çalıştığı için site de tek temalı.
 */

:root {
  --ink: #102b73; /* Marina Mavisi */
  --ink-soft: #2a4a93;
  --ground: #f8fcfc;
  --surface: #ffffff;
  --sea: #ddf5f3;
  --sand: #f3e9dc;
  --accent: #ffc857; /* Güneş Sarısı */
  --accent-deep: #b07c00;
  --muted: #64748b;
  --line: #d7e8e8;
  --line-soft: #e8f2f2;
  --success: #0e7c5a;

  --f-display: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --f-body: "Manrope", "Helvetica Neue", Arial, sans-serif;

  --shadow-sm: 0 1px 2px rgba(16, 43, 115, 0.05);
  --shadow-md: 0 2px 4px rgba(16, 43, 115, 0.04), 0 12px 32px rgba(16, 43, 115, 0.07);
  --shadow-lg: 0 4px 8px rgba(16, 43, 115, 0.05), 0 28px 64px rgba(16, 43, 115, 0.11);

  --wrap: 1120px;
  color-scheme: light;
}

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}

p {
  margin: 0;
}

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

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

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

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

/* ---------- Üst bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 252, 252, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.03em;
}

.brand .mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  flex: none;
  object-fit: cover;
  /* İkonun kendi zemini beyaz; kenarı zeminden ayırmak için ince çizgi. */
  box-shadow: 0 0 0 1px var(--line);
}

.topnav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14.5px;
  font-weight: 500;
}

.topnav a {
  text-decoration: none;
  color: var(--muted);
}

.topnav a:hover {
  color: var(--ink);
}

/* ---------- Düğmeler ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 14px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.btn small {
  display: block;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.68;
  line-height: 1.3;
}

.btn .lbl {
  font-size: 15px;
  line-height: 1.2;
}

/* ---------- Alt bilgi ---------- */

.foot {
  margin-top: 96px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  justify-content: space-between;
  padding-top: 40px;
  padding-bottom: 44px;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  font-size: 14.5px;
}

.foot-links a {
  color: var(--muted);
  text-decoration: none;
}

.foot-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.foot-note {
  color: var(--muted);
  font-size: 13.5px;
  max-width: 46ch;
}

/* ---------- Yasal sayfalar ---------- */

.legal {
  padding-top: 56px;
}

.legal-head {
  max-width: 72ch;
  margin-bottom: 34px;
}

.legal-head h1 {
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.08;
  margin-bottom: 12px;
}

.legal-meta {
  color: var(--muted);
  font-size: 14.5px;
}

.langswitch {
  display: inline-flex;
  padding: 3px;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  margin-bottom: 34px;
}

.langswitch button {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 13.5px;
  padding: 7px 16px;
  border-radius: 9px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.langswitch button[aria-pressed="true"] {
  background: var(--sea);
  color: var(--ink);
}

.legal-body {
  max-width: 74ch;
}

.legal-body h2 {
  font-size: 21px;
  margin: 42px 0 10px;
}

.legal-body h3 {
  font-size: 16.5px;
  margin: 26px 0 6px;
}

.legal-body p,
.legal-body li {
  color: #33456f;
}

.legal-body p + p {
  margin-top: 12px;
}

.legal-body ul {
  margin: 12px 0;
  padding-left: 22px;
}

.legal-body li {
  margin-bottom: 7px;
}

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

.legal-body a {
  color: var(--ink-soft);
}

.callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 26px 0;
}

.tablewrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  margin: 20px 0;
}

.tablewrap table {
  border-collapse: collapse;
  width: 100%;
  min-width: 540px;
  font-size: 14.5px;
}

.tablewrap th {
  text-align: left;
  font-family: var(--f-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: #f1f8f8;
  padding: 11px 15px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.tablewrap td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
  color: #33456f;
}

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

/* Yapışkan üst bar çapa hedeflerini kesmesin. */
section[id],
main[id] {
  scroll-margin-top: 84px;
}

[data-lang] {
  display: none;
}

[data-lang].on {
  display: block;
}

@media (max-width: 720px) {
  .topnav {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
