/* Tremi landing — tokens follow docs/tasarim.md */
:root {
  --ground: #F6F3EE;
  --surface: #FFFFFF;
  --surface-muted: #EAE5DC;
  --ink: #1A1823;
  --muted: #5E5A66;
  --border: #D9D3C9;
  --accent: #FF5A36;
  --accent-ring: rgba(255, 90, 54, 0.14);
  --matched: #6C4DF6;
  --matched-poke: #FFD84D;
  --on-matched: #FFFFFF;
  --on-accent: #1A1823;
  --display: 'Bricolage Grotesque', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --body: 'DM Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #15131A;
    --surface: #211E27;
    --surface-muted: #25222C;
    --ink: #F4F1EC;
    --muted: #A7A2AF;
    --border: #3A3642;
    --accent: #FF7A5C;
    --accent-ring: rgba(255, 122, 92, 0.16);
    --matched: #3A2A8C;
    --on-accent: #15131A;
  }
  .phone { border-color: #3A3642; }
}

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 520px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }

/* Header */
.site-header { padding: 24px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -0.5px; line-height: 1; }
.lang { font-size: 15px; font-weight: 600; text-decoration: none; padding: 10px 14px; border-radius: 999px; background: var(--surface-muted); }
.lang:hover { color: var(--ink); background: var(--border); }

/* Hero */
.hero { padding: 40px 0 88px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 56px; } .hero { padding-top: 16px; } }

h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(44px, 7vw, 76px); line-height: 1.02; }
h2 { font-size: clamp(32px, 4.5vw, 48px); line-height: 1.08; }
h3 { font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; }

.lede { margin: 24px 0 0; font-size: clamp(18px, 2vw, 20px); color: var(--muted); max-width: 34em; }

.cta-row { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.pill {
  margin: 0; display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 24px; border-radius: 999px;
  font-weight: 700; font-size: 17px; text-decoration: none;
}
.pill-accent { background: var(--accent); color: var(--on-accent); }
.pill-outline { border: 2px solid var(--ink); color: var(--ink); }
.pill-outline:hover { background: var(--ink); color: var(--ground); }
.pill svg { width: 20px; height: 20px; flex-shrink: 0; }
@media (max-width: 520px) { .pill { padding: 0 18px; font-size: 16px; } }
.fineprint { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* Phones */
.phones { position: relative; height: 600px; display: flex; justify-content: center; align-items: flex-start; gap: 28px; padding-top: 20px; }
@media (max-width: 900px) { .phones { height: auto; } }

.phone {
  position: relative; width: 240px; aspect-ratio: 390 / 844; flex-shrink: 0;
  border-radius: 40px; border: 9px solid #1A1823; overflow: hidden;
  display: flex; flex-direction: column; padding: 32px 16px 22px;
  box-shadow: 0 30px 60px -20px rgba(26, 24, 35, 0.35);
}
.phone-back { margin-top: 56px; background: #F6F3EE; color: #1A1823; transform: rotate(-4deg); }
.phone-front { background: #6C4DF6; color: #FFFFFF; transform: rotate(3deg); }

@media (max-width: 520px) {
  .phones { gap: 14px; padding-top: 8px; }
  .phone { width: 158px; border-radius: 28px; border-width: 6px; padding: 20px 10px 14px; }
  .phone-back { margin-top: 36px; }
  .phone .phone-word { font-size: 14px; }
  .phone .phone-gear { width: 22px; height: 22px; }
  .phone .phone-gear svg { width: 12px; height: 12px; }
  .phone .phone-body { gap: 14px; }
  .phone .phone-note { font-size: 9px; }
  .phone .poke-idle { font-size: 20px; box-shadow: 0 0 0 6px rgba(255, 90, 54, 0.14); }
  .phone .poke-live { font-size: 16px; }
  .phone .phone-secondary { min-height: 28px; font-size: 9px; border-width: 1.5px; }
}

.phone-top { display: flex; justify-content: space-between; align-items: center; }
.phone-word { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.4px; }
.phone-gear { width: 30px; height: 30px; border-radius: 15px; display: flex; align-items: center; justify-content: center; }
.phone-back .phone-gear { background: #EAE5DC; }
.phone-front .phone-gear { background: rgba(255, 255, 255, 0.16); }
.phone-gear svg { width: 16px; height: 16px; }
.phone-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; text-align: center; }
.phone-note { font-size: 13px; }
.phone-back .phone-note { color: #5E5A66; }

.poke {
  width: 62%; aspect-ratio: 1; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 800; letter-spacing: -0.5px; line-height: 1;
}
.poke-idle { background: #FF5A36; color: #1A1823; font-size: 30px; box-shadow: 0 0 0 10px rgba(255, 90, 54, 0.14); }
.poke-live { position: relative; background: #FFD84D; color: #1A1823; font-size: 24px; }
.poke-live::before, .poke-live::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid #FFD84D; animation: pulse 1.8s ease-out infinite;
}
.poke-live::after { animation-delay: 0.9s; }
.phone-secondary { width: 100%; min-height: 40px; border-radius: 999px; border: 2px solid #FFFFFF; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }

@keyframes pulse { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(1.55); opacity: 0; } }

/* Sections */
section { padding: 88px 0; }
@media (max-width: 520px) { section { padding: 64px 0; } }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
.section-lede { margin: 16px 0 0; color: var(--muted); max-width: 36em; font-size: 18px; }

.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps li { background: var(--surface); border-radius: 22px; padding: 28px; counter-increment: step; }
.steps li::before {
  content: counter(step); display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; margin-bottom: 20px;
  background: var(--accent); color: var(--on-accent);
  font-family: var(--display); font-weight: 800; font-size: 22px;
}
.steps p { margin: 10px 0 0; color: var(--muted); }

.private { background: var(--matched); color: var(--on-matched); }
.private .eyebrow { color: var(--matched-poke); }
.private .section-lede { color: rgba(255, 255, 255, 0.86); }
.cards { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards { grid-template-columns: minmax(0, 1fr); } }
.card { background: rgba(255, 255, 255, 0.1); border-radius: 22px; padding: 26px; }
.card svg { width: 28px; height: 28px; color: var(--matched-poke); margin-bottom: 16px; }
.card p { margin: 8px 0 0; color: rgba(255, 255, 255, 0.86); font-size: 16px; }

.closing { text-align: center; }
.closing .wrap { display: flex; flex-direction: column; align-items: center; }
.closing .section-lede { margin-left: auto; margin-right: auto; }
.closing .cta-row { justify-content: center; }

/* Footer */
.site-footer { padding: 40px 0 48px; border-top: 1px solid var(--border); font-size: 15px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; color: var(--ink); }

/* Simple pages (support, delete account, 404) */
.page { padding: 24px 0 96px; }
.page .wrap { max-width: 720px; }
.page h1 { font-size: clamp(36px, 6vw, 56px); }
.page h2 { font-size: 28px; margin-top: 48px; }
.page p, .page li { color: var(--muted); }
.page strong { color: var(--ink); }
.page ol, .page ul { padding-left: 1.3em; }
.page li { margin: 8px 0; }
.box { background: var(--surface); border-radius: 22px; padding: 24px 28px; margin-top: 28px; }
.box p { margin: 0; }

/* Legal pages (privacy, terms, KVKK) */
.legal section { padding: 0; }
.legal .updated { margin: 16px 0 0; font-size: 15px; }
.legal h3 { margin-top: 28px; font-size: 20px; }
.legal li strong { font-weight: 600; }
.table-wrap { margin-top: 20px; overflow-x: auto; border-radius: 16px; background: var(--surface); }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal th, .legal td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); color: var(--muted); }
.legal th { color: var(--ink); font-weight: 700; background: var(--surface-muted); }
.legal tr:last-child td { border-bottom: 0; }
.page .legal-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.legal-nav li { margin: 0; }
.legal-nav a { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--surface-muted); font-size: 15px; font-weight: 600; text-decoration: none; color: var(--ink); }
.legal-nav a[aria-current="page"] { background: var(--ink); color: var(--ground); }

@media (prefers-reduced-motion: reduce) {
  .poke-live::before, .poke-live::after { animation: none; opacity: 0.25; transform: scale(1.2); }
}
