/* Public product site — home, privacy, terms, sign-in, sign-up.
 *
 * The Social Deviser brand: cream paper, near-black ink, the flag red as the
 * one signal colour, gold for the second beat, Archivo for the wordmark and
 * headlines, the system UI font for everything else. Stands alone: no
 * session, no app.js, one stylesheet.
 *
 * Theme: light by default, dark via prefers-color-scheme, and [data-theme]
 * wins over both so the dashboard's saved preference carries across. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("/fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("/fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;
  --bg: #fbfaf6;
  --surface: #ffffff;
  --surface-muted: #f3f1ea;
  --border: #e4e1d8;
  --border-strong: #d8d4c8;
  --text: #1a1a1a;
  --text-2: #5f5c55;
  --text-3: #8b877d;
  --on-action: #ffffff;
  --action: #d31f25;
  --action-hover: #bd1b20;
  --action-surface: #fbe9e9;
  --gold: #f5c518;
  --gold-surface: rgba(245, 197, 24, 0.12);
  --warn: #b7791f;
  --warn-surface: #f8efd9;
  --success: #2e8b57;
  --success-surface: #e6f1e8;
  --ink: #1a1a1a;
  --on-ink: #fbfaf6;
  --ink-row: rgba(255, 255, 255, 0.07);
  --ink-copy: rgba(255, 255, 255, 0.78);
  --ink-check: #8fe0b0;
  --ig: #c13584;
  --tt: #111111;
  --yt: #d92c20;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 18px 44px rgba(0, 0, 0, 0.07);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
  --gutter: 56px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #121412;
    --surface: #1c1e1c;
    --surface-muted: #242724;
    --border: #33362f;
    --border-strong: #454a42;
    --text: #f2f1ec;
    --text-2: #b7b4aa;
    --text-3: #807d74;
    --action-surface: #3a2222;
    --gold-surface: rgba(245, 197, 24, 0.14);
    --warn: #e0b25c;
    --warn-surface: #332a21;
    --success: #6cc48b;
    --success-surface: #20291f;
    --ink: #0c0d0c;
    --on-ink: #f2f1ec;
    --ink-row: rgba(255, 255, 255, 0.06);
    --tt: #f2f1ec;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    --shadow-card: 0 18px 44px rgba(0, 0, 0, 0.45);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121412;
  --surface: #1c1e1c;
  --surface-muted: #242724;
  --border: #33362f;
  --border-strong: #454a42;
  --text: #f2f1ec;
  --text-2: #b7b4aa;
  --text-3: #807d74;
  --action-surface: #3a2222;
  --gold-surface: rgba(245, 197, 24, 0.14);
  --warn: #e0b25c;
  --warn-surface: #332a21;
  --success: #6cc48b;
  --success-surface: #20291f;
  --ink: #0c0d0c;
  --on-ink: #f2f1ec;
  --ink-row: rgba(255, 255, 255, 0.06);
  --tt: #f2f1ec;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 18px 44px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

a { color: var(--action); text-decoration: none; }
a:hover { color: var(--action-hover); }
:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; border-radius: 4px; }
svg { display: block; }

h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; }
h1 { font-size: clamp(38px, 5.2vw, 64px); line-height: 1; letter-spacing: -0.038em; text-wrap: pretty; }
h2 { font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -0.03em; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0; }

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

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

/* ── Brand mark ─────────────────────────────────────────────────── */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: -0.4px; white-space: nowrap; }
.brand:hover { color: var(--text); }
.mark { width: 28px; height: 28px; flex: none; }
.mark .frame { fill: none; stroke: var(--text); stroke-width: 6; }
.mark .cell { fill: var(--text); opacity: 0.18; }
.mark .cell.today { fill: var(--gold); opacity: 1; }
.mark .cell.next { fill: var(--action); opacity: 1; }

/* ── Header ───────────────────────────────────────────────────────
 * No hamburger anywhere: every link stays visible at every width and wraps
 * onto a second row on phones. App reviewers must reach the policies without
 * opening anything. */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(1.6) blur(12px);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--border);
}
@supports not (backdrop-filter: blur(10px)) { .site-header { background: var(--bg); } }
.header-inner { display: flex; align-items: center; gap: 14px 28px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.nav { display: flex; align-items: center; gap: 4px 28px; flex-wrap: wrap; margin-left: auto; }
.nav a { color: var(--text-2); font-size: 14px; font-weight: 600; white-space: nowrap; }
.nav a:hover { color: var(--text); }
.nav a[aria-current], .footer-links a[aria-current] {
  color: var(--text); font-weight: 700; text-decoration: underline;
  text-decoration-thickness: 1.5px; text-underline-offset: 7px;
}
.header-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  width: 36px; height: 36px; flex: none; display: grid; place-items: center;
  padding: 0; border: 1px solid var(--border-strong); border-radius: 999px;
  background: var(--surface); color: var(--text); font: inherit; font-size: 18px;
  line-height: 1; cursor: pointer;
}
.theme-toggle:hover { background: var(--surface-muted); }
.theme-toggle [data-theme-icon] { display: block; transform: translateY(-1px); }

/* Language: EN | TR as one pill, the current language filled in ink.
 * The pages exist twice (/, /tr/); each link goes to its counterpart. */
.lang-switch {
  display: inline-flex; align-items: center; height: 36px; padding: 3px; flex: none;
  border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface);
}
.lang-switch a {
  display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 999px;
  color: var(--text-2); font-size: 12px; font-weight: 700; letter-spacing: 0.4px; line-height: 1;
}
.lang-switch a:hover { color: var(--text); }
.lang-switch a[aria-current] { background: var(--ink); color: var(--on-ink); }

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 26px; height: 50px; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--font); font-size: 16px; font-weight: 700; line-height: 1; white-space: nowrap; cursor: pointer;
  transition: transform 120ms ease, filter 120ms ease, background 120ms ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--action); color: var(--on-action); }
.btn-primary:hover { background: var(--action-hover); color: var(--on-action); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); font-weight: 600; }
.btn-ghost:hover { background: var(--surface); color: var(--text); }
.btn-gold { background: var(--gold); color: #1a1a1a; }
.btn-gold:hover { filter: brightness(1.04); color: #1a1a1a; }
.btn-sm { height: 38px; padding: 0 20px; font-size: 14px; }

/* ── Sections ───────────────────────────────────────────────────── */
section { scroll-margin-top: 96px; }
.section { padding: 64px 0; }
.section + .section { border-top: 1px solid var(--border); }
.section-head { max-width: 640px; margin-bottom: 32px; display: grid; gap: 12px; }
.section-head p { color: var(--text-2); font-size: 16px; line-height: 1.55; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; align-self: start; justify-self: start;
  font-size: 12px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase;
  color: var(--warn); background: var(--warn-surface);
  padding: 6px 13px; border-radius: 999px;
}
.eyebrow.plain { padding: 0; background: transparent; color: var(--text-3); font-size: 11px; }

/* ── Hero ───────────────────────────────────────────────────────── */
.hero { padding: 64px 0 56px; }
.hero-grid { display: grid; gap: 48px; align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }
.hero-copy { display: grid; gap: 22px; justify-items: start; min-width: 0; }
.hero-copy .lede { font-size: 18px; line-height: 1.55; color: var(--text-2); max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }
.hero-checks { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; color: var(--text-3); }
.hero-checks span { display: inline-flex; align-items: center; gap: 7px; }
.hero-checks svg { width: 16px; height: 16px; color: var(--success); }

/* The illustration: a week card, drawn in real DOM so it themes with the page. */
.week-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 22px;
  display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-card);
}
.week-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill.success { color: var(--success); background: var(--success-surface); }
.pill.warn { color: var(--warn); background: var(--warn-surface); }
.pill.tiny { font-size: 10px; font-weight: 600; padding: 3px 8px; }
.week-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }
.week-strip div { border-radius: 12px; background: var(--bg); border: 1px solid var(--border); padding: 9px 0; text-align: center; }
.week-strip div span { display: block; font-size: 10px; font-weight: 600; color: var(--text-3); }
.week-strip div b { display: block; font-size: 15px; font-weight: 700; }
.week-strip div.today { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.week-strip div.today span { color: inherit; opacity: 0.7; }
.up-next {
  border-radius: 16px; background: var(--action); color: #ffffff; padding: 16px;
  display: flex; gap: 14px; align-items: center;
}
.up-next .cover { width: 56px; height: 56px; border-radius: 12px; flex: none; display: grid; place-items: center; }
.up-next .cover svg { width: 22px; height: 22px; }
.up-next .copy { flex: 1; min-width: 0; }
.up-next .copy span { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; opacity: 0.85; }
.up-next .copy b { display: block; font-size: 15px; font-weight: 700; line-height: 1.3; }
.up-next .action { font-size: 12px; font-weight: 700; background: #ffffff; color: var(--action); border-radius: 999px; padding: 7px 13px; flex: none; }
.post-row {
  display: flex; gap: 10px; align-items: center; background: var(--bg); border: 1px solid var(--border);
  border-left: 4px solid var(--ig); border-radius: 12px; padding: 11px 13px;
}
.post-row .cover { width: 38px; height: 38px; border-radius: 9px; flex: none; }
.post-row .copy { flex: 1; min-width: 0; }
.post-row .copy b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-row .copy span { display: block; font-size: 11px; color: var(--text-3); }
.suggest {
  display: flex; gap: 10px; align-items: center; background: var(--gold-surface); border: 1px dashed #e0c25e;
  border-radius: 12px; padding: 11px 13px; font-size: 12px; color: var(--text-2);
}
.suggest .flash { width: 30px; height: 30px; border-radius: 999px; background: var(--gold); color: #1a1a1a; display: grid; place-items: center; flex: none; }
.suggest .flash svg { width: 15px; height: 15px; }
.g-sun { background: linear-gradient(140deg, #f9d976, #e8714a); }
.g-sea { background: linear-gradient(140deg, #8ec5c0, #3a7ca5); }
.g-plum { background: linear-gradient(140deg, #e7b7d2, #a14a86); }
.g-sky { background: linear-gradient(140deg, #b6c7e8, #5c6ea8); }

/* ── Feature cards ──────────────────────────────────────────────── */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 26px; display: grid; gap: 12px; align-content: start;
}
.card p { color: var(--text-2); font-size: 14px; line-height: 1.55; }
.card-icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; }
.card-icon svg { width: 22px; height: 22px; }
.card-icon.red { background: var(--action-surface); color: var(--action); }
.card-icon.gold { background: var(--warn-surface); color: var(--warn); }
.card-icon.green { background: var(--success-surface); color: var(--success); }
.card-icon.ink { background: var(--surface-muted); color: var(--text); }
.card.compact { padding: 20px; gap: 8px; grid-template-columns: 36px 1fr; column-gap: 14px; }
.card.compact .card-icon { width: 36px; height: 36px; border-radius: 11px; grid-row: 1 / 3; }
.card.compact .card-icon svg { width: 18px; height: 18px; }
.card.compact h3 { font-size: 16px; }
.card.compact p { font-size: 13.5px; }

/* ── Callout ────────────────────────────────────────────────────── */
.callout {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 26px; display: grid; gap: 14px;
}
.callout p { color: var(--text-2); font-size: 15px; line-height: 1.6; }
.callout ul { margin: 0; padding-left: 20px; color: var(--text-2); display: grid; gap: 8px; font-size: 14.5px; line-height: 1.55; }
.callout strong { color: var(--text); font-weight: 650; }

/* ── Steps ──────────────────────────────────────────────────────── */
.steps { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.step { display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 2px solid var(--border-strong); }
.step-n { font-size: 11px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; color: var(--action); }
.step h3 { font-size: 18px; }
.step p { color: var(--text-2); font-size: 14px; line-height: 1.55; }

/* ── Pricing block ──────────────────────────────────────────────── */
.pricing { padding: 40px 0 64px; }
.pricing-box {
  border-radius: 24px; background: var(--ink); color: #ffffff; padding: 44px 48px;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: center;
}
@media (min-width: 900px) { .pricing-box { grid-template-columns: 1fr 1fr; gap: 44px; } }
.pricing-copy { display: grid; gap: 16px; justify-items: start; min-width: 0; }
.pricing-copy h2 { color: #ffffff; font-size: clamp(30px, 3.4vw, 38px); }
.pricing-copy p { font-size: 16px; line-height: 1.55; color: var(--ink-copy); }
.price { display: flex; align-items: baseline; gap: 12px; padding-top: 6px; }
.price b { font-family: var(--display); font-size: 48px; font-weight: 800; letter-spacing: -1.5px; line-height: 1; }
.price span { font-size: 15px; color: rgba(255, 255, 255, 0.7); }
.pricing-list { display: grid; gap: 12px; }
.pricing-list div { display: flex; align-items: center; gap: 12px; background: var(--ink-row); border-radius: 14px; padding: 14px 16px; font-size: 15px; }
.pricing-list svg { width: 19px; height: 19px; color: var(--ink-check); flex: none; }
.pricing-note { font-size: 13px; color: rgba(255, 255, 255, 0.6); }

/* ── Platform table ─────────────────────────────────────────────── */
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 14.5px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { font-size: 11px; letter-spacing: 0.5px; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
tbody tr:last-child td { border-bottom: 0; }
td strong { font-weight: 650; }
.muted { color: var(--text-2); }
.plat { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; }
.plat svg { width: 16px; height: 16px; }
.plat.ig { color: var(--ig); } .plat.tt { color: var(--tt); } .plat.yt { color: var(--yt); }
.plat span { color: var(--text); }

/* ── Contact ────────────────────────────────────────────────────── */
.contact-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 24px; display: grid; gap: 6px; align-content: start; }
.contact-label { font-size: 11px; letter-spacing: 0.5px; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.contact-card a { font-size: 16px; font-weight: 600; word-break: break-word; }
.contact-card p { color: var(--text-2); font-size: 14px; line-height: 1.55; }

/* ── Footer ─────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); padding: 36px 0 40px; margin-top: 24px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; font-size: 13px; color: var(--text-3); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-links a { color: var(--text-3); font-size: 13px; font-weight: 500; }
.footer-links a:hover { color: var(--text); }
.footer-note { color: var(--text-3); font-size: 13px; max-width: 420px; }

/* ── Legal pages ────────────────────────────────────────────────── */
.legal { padding: 56px 0 72px; }
.legal-head { display: grid; gap: 12px; max-width: 46em; margin-bottom: 12px; }
.legal-head h1 { font-size: clamp(32px, 4.6vw, 48px); }
.legal-head .updated { color: var(--text-3); font-size: 14px; }
.legal-head p { color: var(--text-2); font-size: 15.5px; line-height: 1.6; }
.legal-body { max-width: 46em; display: grid; gap: 30px; margin-top: 34px; }
.legal-body section { display: grid; gap: 12px; }
.legal-body h2 { font-size: 22px; letter-spacing: -0.02em; }
.legal-body p, .legal-body li { color: var(--text-2); font-size: 15px; line-height: 1.6; }
.legal-body ul { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.legal-body strong { color: var(--text); font-weight: 650; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px 22px; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14.5px; }

/* ── Phone widths ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  :root { --gutter: 24px; }
  .pricing-box { padding: 32px 26px; }
}
@media (max-width: 620px) {
  :root { --gutter: 16px; }
  .section { padding: 48px 0; }
  .hero { padding: 36px 0 44px; }
  .hero-copy .lede { font-size: 16.5px; }
  .card, .callout, .contact-card { padding: 20px; }
  .week-card { padding: 16px; }
  .nav { margin-left: 0; width: 100%; gap: 4px 18px; order: 3; }
  .header-inner { gap: 10px 14px; padding-top: 14px; padding-bottom: 14px; }
  .header-inner > .brand { order: 1; }
  .header-inner > .header-actions { order: 2; margin-left: auto; }
  .btn { height: 48px; padding: 0 22px; font-size: 15px; }
  .hero-actions .btn { width: 100%; }
  .pricing-box { padding: 28px 22px; border-radius: 20px; }
  .price b { font-size: 40px; }
}
