/* elowaapp.com · Gece ışığı (0048): renkler docs/product/tasarim-tokens.json'daki anlam adlarıyla, koyu tema. */
/* Yazı boyutları rem (kullanıcının tarayıcı ayarı geçerli kalsın, #527); 1rem = 16px. */
@font-face { font-family: "Figtree"; src: url("fonts/figtree.ttf") format("truetype"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #0F2226;
  --surface: #17323A;
  --line: #2A4A52;
  --ink: #EEF3F1;
  --ink-soft: #C9D7D4;
  --ink-muted: #A3B8B4;
  --accent-text: #F0A14A;
  --glow: #FFC27D;
  --bg-deep: #0B1B1E;
  --line-strong: #5B7D86;
  --accent: #F0A14A;
  --on-accent: #1A1206;
  --sos: #E0775C;
  --sos-text: #F09A82;
  --focus: #FFC27D;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-soft);
  font: 1.0625rem/1.6 Figtree, system-ui, sans-serif;
  overflow-wrap: break-word;
}
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Klavyeyle ilk odak: menüyü atlayıp içeriğe geçer; odaklanınca görünür. */
.skip {
  position: absolute; inset-inline-start: 16px; top: 12px; z-index: 1; transform: translateY(calc(-100% - 16px));
  padding: 10px 16px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-weight: 700; text-decoration: none;
}
.skip:focus { transform: none; }

header, main, footer { max-width: 760px; margin: 0 auto; padding: 0 16px; }
header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding-top: 28px; padding-bottom: 8px; }
.brand { font: 400 1.625rem/1.2 Fraunces, Georgia, serif; color: var(--glow); text-decoration: none; }
.tagline { color: var(--ink-muted); font-size: 0.9375rem; }
.langs { margin-inline-start: auto; font-size: 0.9375rem; color: var(--ink-muted); }
.langs a[aria-current] { color: var(--ink); text-decoration: none; font-weight: 600; }

h1, h2, h3 { color: var(--ink); line-height: 1.25; text-wrap: balance; hyphens: auto; }
h1 { font: 400 2rem/1.15 Fraunces, Georgia, serif; letter-spacing: -0.01em; margin: 32px 0 16px; }
h2 { font-size: 1.3125rem; margin: 36px 0 8px; }
h3 { font-size: 1.125rem; margin: 24px 0 6px; }
p, li { text-wrap: pretty; }
/* Okuma satırı 60–75 karakter (#527); kartlar ve etiket listeleri kendi genişliğinde. */
main :is(p, ul, ol):not(.cards, .topics), footer p { max-width: 68ch; }
strong { color: var(--ink); }
a { color: var(--accent-text); text-underline-offset: 3px; }
ul, ol { padding-inline-start: 22px; }
li { margin: 4px 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
code { font-size: 0.9em; }
mark { background: var(--accent); color: var(--on-accent); padding: 0 3px; border-radius: 3px; }

.table { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; }
th, td { text-align: start; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--ink); background: var(--surface); }
tr:last-child td { border-bottom: 0; }

footer { margin-top: 48px; padding-top: 16px; padding-bottom: 40px; border-top: 1px solid var(--line); color: var(--ink-muted); font-size: 0.875rem; }
footer nav { margin: 8px 0; }
/* in the app (#479): the app shows the title and the way back */
.in-app header, .in-app footer, .in-app .skip { display: none; }
.in-app main h1:first-child { display: none; }

/* Home page (#32): hero with screenshot, store buttons, feature cards. */
body.home header, body.home main, body.home footer { max-width: 1000px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: center; margin: 24px 0 16px; }
.hero h1 { font-size: clamp(2rem, 5vw, 2.875rem); line-height: 1.1; margin: 0 0 16px; }
.lead { font-size: 1.1875rem; color: var(--ink-soft); margin: 0 0 24px; }
.shot { width: 100%; height: auto; border-radius: 36px; border: 1px solid var(--line); background: var(--bg-deep); }
.stores-label { color: var(--ink-muted); font-size: 0.9375rem; margin: 0 0 10px; }
/* Before launch the line stands alone and carries the "coming soon" (no buttons that do nothing). */
.stores-soon { color: var(--ink-soft); font-size: 1rem; font-weight: 600; margin: 0; }
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.store {
  display: inline-flex; align-items: center; min-height: 48px; padding: 12px 22px;
  border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 700; text-decoration: none;
}
.store-soon { color: var(--ink); font-weight: 600; }
.store-soon small { color: var(--ink-muted); font-weight: 500; font-size: 0.8125rem; }
.cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card { margin: 0; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.card h3 { margin: 0 0 6px; color: var(--glow); }
.card p { margin: 0; font-size: 1rem; }
.card-sos { border-color: var(--sos); }
.card-sos h3 { color: var(--sos-text); }
.topics { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.topics li { margin: 0; border: 1px solid var(--line); border-radius: 999px; font-size: 0.9375rem; }
/* The whole pill is the link, not only its text (#527). */
.topics a { display: block; padding: 6px 14px; border-radius: inherit; color: inherit; text-decoration: none; }
.topics li:has(a:focus-visible) { border-color: var(--line-strong); color: var(--ink); }
@media (hover: hover) {
  .topics li:has(a:hover) { border-color: var(--line-strong); color: var(--ink); }
}
.note { color: var(--ink-muted); font-size: 0.9375rem; }

/* Topic pages (#32): kicker above the headline, three phase cards. */
.kicker { margin: 0 0 10px; color: var(--accent-text); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }

/* em: with a larger browser text size the layout collapses earlier (#527). 45em = 720px at the default size. */
@media (max-width: 45em) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .shot { max-width: 260px; justify-self: center; }
  .cards, .cards-3 { grid-template-columns: 1fr; }
}
