/* ============================================================
   OutfeedAI — official site stylesheet
   Brand: Editorial Neutrals + terracotta (docs/07_brand_visual.md)
   Light-only by design. No external resources — strict-CSP safe.
   ============================================================ */

/* ---------- Fonts (self-hosted, OFL) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/Fraunces72pt-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/Fraunces72pt-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/Fraunces72pt-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #fbf7ef;       /* page background */
  --cream: #f7f1e6;       /* alternate band */
  --surface: #ffffff;
  --ink: #2c2825;
  --ink-soft: #6f6962;
  --line: #e8e4dc;
  --terracotta: #c64a24;  /* exact app accent (lib/theme/tokens.dart) */
  --terracotta-deep: #a83d1c;
  --terracotta-tint: #f3ddd3;
  --olive: #5a6b3a;
  --shadow-soft: 0 18px 40px -22px rgba(97, 63, 44, 0.30);
  --shadow-lift: 0 30px 60px -28px rgba(97, 63, 44, 0.38);
  --radius-card: 28px;
  --measure: 70ch;
  --font-serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-sans: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset-ish ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--terracotta);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--terracotta-deep);
}
h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
p {
  margin: 0 0 1.1em;
}
:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Language switching ----------
   Every translated fragment carries data-lang="en|tr|de".
   The active language lives on <html lang="…">; markup ships with
   lang="en" so the site is fully readable without JavaScript. */
[data-lang] {
  display: none !important;
}
html[lang="en"] [data-lang="en"],
html[lang="tr"] [data-lang="tr"],
html[lang="de"] [data-lang="de"] {
  display: revert !important;
}

/* ---------- Layout primitives ---------- */
.wrap {
  width: min(1120px, calc(100% - 3rem));
  margin-inline: auto;
}
.section {
  padding-block: clamp(4rem, 9vw, 7rem);
}
.band-cream {
  background: var(--cream);
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 12px 0;
  z-index: 99;
}
.skip-link:focus {
  left: 0;
  color: var(--paper);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 239, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}
.brand:hover {
  color: var(--ink);
}
.brand .mark {
  width: 30px;
  height: 30px;
  flex: none;
}
.brand .ai {
  color: var(--terracotta);
}
.site-nav {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.97rem;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--terracotta);
  border-bottom-color: var(--terracotta);
}

/* Language switcher pill */
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  margin-left: 1rem;
}
.lang-switch button {
  font: 600 0.78rem/1 var(--font-sans);
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
}
.lang-switch button:hover {
  color: var(--ink);
}
.lang-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

@media (max-width: 720px) {
  .site-nav {
    display: none;
  }
  .lang-switch {
    margin-left: auto;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 58px;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  border: 0;
  background: var(--terracotta);
  color: #fff;
  font: 600 1.02rem/1.2 var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.btn:hover {
  background: var(--terracotta-deep);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}
.btn:active {
  transform: scale(0.97);
}
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn-ghost:hover {
  background: var(--surface);
  color: var(--terracotta);
  border-color: var(--terracotta);
}

/* Store badges — placeholder "coming soon" state.
   When the app ships: turn each .store-badge into an <a href="…">,
   remove aria-disabled and the .soon-tag, and drop the real store URLs
   (see comments in the HTML where the badges are rendered). */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 62px;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  border: 0;
  cursor: not-allowed;
  opacity: 0.92;
}
.store-badge svg {
  width: 26px;
  height: 26px;
  flex: none;
}
.store-badge .lines {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}
.store-badge .small {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}
.store-badge .big {
  font-size: 1.05rem;
  font-weight: 600;
}
.soon-tag {
  font: 600 0.7rem/1 var(--font-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta);
  background: var(--terracotta-tint);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  margin-left: 0.35rem;
}

/* ---------- Type helpers ---------- */
.eyebrow {
  display: block;
  font: 600 0.8rem/1 var(--font-sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1.1rem;
}
.display {
  font-weight: 300;
  font-size: clamp(2.7rem, 6.4vw, 4.6rem);
  line-height: 1.04;
}
.headline {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
}
.lede {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 34em;
}
.muted {
  color: var(--ink-soft);
}
.fineprint {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---------- Hero ---------- */
.hero {
  overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(4rem, 9vw, 7rem);
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-copy .store-badges {
  margin-top: 2.25rem;
}
.hero-copy .fineprint {
  margin-top: 1rem;
}
.hero-visual {
  position: relative;
  justify-self: center;
  padding-bottom: 2.5rem;
}
.hero-stilo {
  position: absolute;
  bottom: 0;
  left: -84px;
  width: clamp(120px, 14vw, 168px);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  transform: rotate(-4deg);
}
@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    margin-top: 1rem;
  }
  .hero-stilo {
    left: -24px;
  }
}

/* ---------- Phone frame ---------- */
.phone {
  width: min(320px, 78vw);
  border-radius: 46px;
  border: 9px solid var(--ink);
  background: var(--ink);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.phone img {
  width: 100%;
  border-radius: 37px;
}
.phone-sm {
  width: min(272px, 70vw);
}

/* ---------- Feature sections ---------- */
.feature .wrap {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.feature.flip .feature-visual {
  order: -1;
}
.feature-copy h2 {
  max-width: 15em;
}
.feature-copy p {
  color: var(--ink-soft);
  max-width: 34em;
}
.feature-visual {
  position: relative;
  justify-self: center;
}
.feature-stilo {
  position: absolute;
  width: clamp(110px, 12vw, 150px);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  bottom: -28px;
  right: -44px;
  transform: rotate(3deg);
}
.feature.flip .feature-stilo {
  right: auto;
  left: -44px;
  transform: rotate(-3deg);
}
@media (max-width: 860px) {
  .feature .wrap {
    grid-template-columns: 1fr;
  }
  .feature.flip .feature-visual {
    order: 0;
  }
  .feature-stilo {
    right: -8px;
  }
  .feature.flip .feature-stilo {
    left: -8px;
  }
}

/* Duo of phones (style quiz) */
.phone-duo {
  display: flex;
  align-items: flex-start;
}
.phone-duo .phone {
  width: min(240px, 44vw);
}
.phone-duo .phone:first-child {
  transform: rotate(-4deg) translateY(18px);
  z-index: 1;
}
.phone-duo .phone:last-child {
  transform: rotate(3deg);
  margin-left: -3rem;
}

/* Clay art panel (shopping) */
.art-panel {
  margin: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}

/* ---------- City strip ---------- */
.feature .wrap.city-strip {
  display: block; /* opt out of the feature two-column grid */
}
.city-strip {
  margin-top: 3.5rem;
}
.city-strip-scroller {
  overflow-x: auto;
  padding-block: 0.5rem 1.25rem;
  scrollbar-width: thin;
}
.city-strip ul {
  display: flex;
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  width: max-content;
}
.city-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  width: 208px;
  box-shadow: var(--shadow-soft);
}
.city-card img {
  aspect-ratio: 900 / 604;
  object-fit: cover;
}
.city-card figcaption {
  font: 600 0.85rem/1 var(--font-sans);
  letter-spacing: 0.04em;
  padding: 0.8rem 1rem;
  color: var(--ink);
}
.city-strip .fineprint {
  margin: 0;
}

/* ---------- CTA band ---------- */
.cta-band {
  text-align: left;
}
.cta-band .wrap {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 860px) {
  .cta-band .wrap {
    grid-template-columns: 1fr;
  }
}
.cta-band .store-badges {
  margin-top: 2rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--cream);
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 3fr));
  gap: 2.5rem;
}
@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
.footer-brand p {
  color: var(--ink-soft);
  max-width: 26em;
  margin-top: 1rem;
  font-size: 0.95rem;
}
.site-footer h3 {
  font: 600 0.8rem/1 var(--font-sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer li {
  margin-bottom: 0.65rem;
}
.site-footer a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.97rem;
}
.site-footer a:hover {
  color: var(--terracotta);
  text-decoration: underline;
}
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---------- Subpage hero ---------- */
.page-head {
  padding-block: clamp(3rem, 7vw, 5rem) clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}
.page-head h1 {
  font-weight: 300;
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  margin-bottom: 0.35em;
}
.page-head .lede {
  margin-bottom: 0;
}

/* ---------- Prose (legal + content pages) ---------- */
.prose {
  max-width: var(--measure);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.prose h2 {
  font-size: 1.7rem;
  margin-top: 2.2em;
}
.prose h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.1rem;
  margin-top: 1.8em;
}
.prose ul {
  padding-left: 1.3rem;
}
.prose li {
  margin-bottom: 0.45em;
}
.prose li::marker {
  color: var(--terracotta);
}
.prose ol {
  padding-left: 1.4rem;
}
.prose strong {
  font-weight: 600;
}

/* Placeholder notice inside legal slots */
.draft-note {
  display: flex;
  gap: 0.7rem;
  align-items: baseline;
  background: var(--terracotta-tint);
  border: 1px dashed var(--terracotta);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  color: var(--ink);
  font-size: 0.92rem;
  margin-block: 1.5rem;
}
.draft-note::before {
  content: "◌";
  color: var(--terracotta);
  font-weight: 700;
}

/* ---------- Cards / steps (account deletion, support) ---------- */
.step-list {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  gap: 0.9rem;
}
.step-list li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.1rem 1.3rem 1.1rem 3.6rem;
  position: relative;
}
.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 1.1rem;
  top: 1.05rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: var(--terracotta);
  color: #fff;
  font: 600 0.9rem/1.7rem var(--font-sans);
  text-align: center;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 1.75rem 2rem;
  margin-block: 1.5rem;
  box-shadow: var(--shadow-soft);
}
.info-card h3 {
  margin-top: 0;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: var(--measure);
  display: grid;
  gap: 0.9rem;
  padding: 0;
  margin: 0;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  font: 600 1.05rem/1.4 var(--font-sans);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--terracotta);
  line-height: 1;
  flex: none;
  transition: transform 160ms ease;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq .answer {
  padding: 0 1.5rem 1.3rem;
  color: var(--ink-soft);
}
.faq .answer p:last-child {
  margin-bottom: 0;
}

/* ---------- 404 ---------- */
.notfound {
  min-height: 60vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding-block: clamp(3rem, 8vw, 6rem);
}
.notfound img {
  width: min(260px, 60vw);
  margin-inline: auto;
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 2rem;
}
.notfound .btn {
  margin-top: 1rem;
  justify-self: center;
}

/* ---------- Stilo quote ---------- */
.stilo-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.6rem 1.5rem 0.6rem 0.6rem;
  width: fit-content;
  max-width: 100%;
  box-shadow: var(--shadow-soft);
  margin-top: 2rem;
}
.stilo-line img {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  object-fit: cover;
  flex: none;
}
.stilo-line p {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: normal;
}
