/* ============================================================
   obrazo MARKETING SITE — SHARED STYLES
   Loaded by every public marketing page.
   ============================================================ */

/* ─── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  /* Brand */
  --terracotta: #C4622D;
  --adobe: #A0471A;

  /* Surfaces */
  --bg: #F3EFE5;
  --surface: #F9F6EE;
  --input-bg: #FBF8F3;
  --border: #E0D9CB;

  /* Text */
  --text: #2C2420;
  --text-secondary: #8C7B6E;
  --text-tertiary: #B8A898;
  --ink-soft: #4A3F37;

  /* Accents */
  --sage: #5A7A5A;
  --sage-dark: #486348;
  --sage-bg: #EFF5EF;
  --sage-text: #3D5C3D;
  --warning: #B8884A;
  --warning-bg: #F0E4D0;
  --chip-bg: #F5EAE0;
  --chip-border: #E0C4A8;
  --status-saved: #6B8E5C;

  /* Type */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ─── RESET & BASE ──────────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.display { font-family: var(--font-display); }
.container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 32px; }

/* ─── NAV ───────────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.brand-mark {
  width: 28px; height: 28px;
  background: var(--text);
  border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--surface);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--terracotta);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.nav-links {
  display: flex; gap: 32px; align-items: center;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.current { color: var(--text); font-weight: 600; }
.nav-links .signin { color: var(--text); font-weight: 500; }

/* ─── LANGUAGE TOGGLE ───────────────────────────────────────── */
.lang-toggle {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}
.lang-toggle button {
  border: none;
  background: transparent;
  padding: 5px 11px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
}
.lang-toggle button.active {
  background: var(--text);
  color: var(--surface);
}

/* ─── BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s ease;
}
.btn-primary { background: var(--terracotta); color: var(--surface); }
.btn-primary:hover { background: var(--adobe); transform: translateY(-1px); }
.btn-primary .arrow { transition: transform 0.18s ease; }
.btn-primary:hover .arrow { transform: translateX(3px); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--text-secondary); }

.btn-inline {
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  transition: color 0.15s;
}
.btn-inline:hover { color: var(--terracotta); }
.btn-inline .arrow { transition: transform 0.18s ease; }
.btn-inline:hover .arrow { transform: translateX(3px); }

.nav-cta {
  background: var(--text);
  color: #ffffff;
  border: none;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
}
.nav-cta:hover {
  background: #1a1410;
  color: #ffffff;
  transform: translateY(-1px);
}

/* ─── SECTION HELPERS ───────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 28px;
}
.eyebrow::before {
  content: ''; width: 28px; height: 1px;
  background: var(--text-secondary);
}
.section-eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 16px;
  text-align: center;
}
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--text);
  max-width: 720px;
  margin: 0 auto 16px;
}
.section-title em { font-style: italic; color: var(--terracotta); font-weight: 500; }
.section-sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* ─── FOOTER ────────────────────────────────────────────────── */
footer {
  background: var(--bg);
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 32px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 24px;
}
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text); }
.footer-copy {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ─── ANIMATIONS ────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 920px) {
  .nav-links { gap: 18px; }
  .nav-links a:not(.btn):not(.signin) { display: none; }
  .nav-links .signin { display: inline-flex; }
}
@media (max-width: 600px) {
  .container, .container-narrow, .nav-inner, .footer-inner {
    padding-left: 20px;
    padding-right: 20px;
  }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ─── PAGE HEADER (used on how, features, pricing, about, contact) ─── */
.page-header {
  padding: 80px 0 60px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 20px;
}
h1.page-headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text);
  max-width: 880px;
  margin: 0 auto 24px;
}
h1.page-headline em {
  font-style: italic;
  font-weight: 500;
  color: var(--terracotta);
}
.page-sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ─── FINAL CTA (dark band, used on every marketing page) ─── */
.final-cta {
  background: var(--text);
  color: var(--surface);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(196, 98, 45, 0.10) 0%, transparent 65%);
  pointer-events: none;
}
.final-cta h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 720px;
  margin: 0 auto 24px;
  color: var(--surface);
  position: relative;
}
.final-cta h2 em {
  font-style: italic;
  color: #E8A878;
  font-weight: 500;
}
.final-cta p {
  font-size: 17px;
  color: rgba(253, 250, 247, 0.7);
  max-width: 520px;
  margin: 0 auto 40px;
  position: relative;
}
.final-cta .btn-primary {
  padding: 16px 28px;
  font-size: 16px;
  position: relative;
}

/* ─── PHONE MOCKUP (used on how, index hero, features, signup) ─── */
.phone {
  width: 280px;
  background: #2C2420;
  border-radius: 38px;
  padding: 8px;
  box-shadow: 0 30px 60px -15px rgba(44, 36, 32, 0.3), 0 12px 24px -8px rgba(44, 36, 32, 0.2);
  position: relative;
}
.phone.tilt-l { transform: rotate(-3deg); }
.phone.tilt-r { transform: rotate(3deg); }
.phone-screen {
  background: var(--bg);
  border-radius: 30px;
  overflow: hidden;
  height: 560px;
  display: flex; flex-direction: column;
}
.phone-status {
  padding: 14px 20px 4px;
  display: flex; justify-content: space-between;
  font-size: 11px; font-weight: 600;
  color: var(--text);
}
.phone-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 8px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.phone-mini-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  color: var(--terracotta);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.phone-lang {
  font-size: 10px;
  color: var(--text-tertiary);
  display: flex; gap: 6px;
}
.phone-lang .active {
  color: var(--terracotta);
  font-weight: 700;
}
.phone-body {
  padding: 18px 16px;
  flex: 1;
  overflow: hidden;
}
