/* Sippur — sippur.xyz
   Shared styles for the marketing + legal pages. Reproduces the Claude Design
   project (Lora + Work Sans on warm paper, deep-blue accent) as a responsive,
   dependency-free static site. */

:root {
  --paper: #f4f1ea;
  --paper-alt: #efebe2;
  --line: #e6e0d4;
  --ink: #232019;
  --ink2: #332f27;
  --body: #5d574c;
  --muted: #6f6a60;
  --soft: #8a8478;
  --faint: #9b9588;
  --accent: #2f4a6b;
  --dark: #1a1916;
  --dark-text: #cfc9bd;
  --dark-faint: #a8a294;
  --icon-bg: #e6dfd0;
  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { text-decoration: none; color: inherit; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 40px; }
.eyebrow {
  font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase;
  color: #6a655b; font-weight: 600;
}

/* ---------- nav ---------- */
.site-nav { display: flex; align-items: center; justify-content: space-between; padding-top: 26px; padding-bottom: 26px; }
.site-nav.bordered { border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 600; font-size: 20px; color: var(--paper);
}
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 22px; color: var(--ink); letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 15px; color: var(--muted); font-weight: 500; }
.nav-links a { color: var(--muted); }
.nav-link { padding: 6px 2px; }
.nav-links a.nav-cta { background: var(--accent); color: #fff; padding: 10px 20px; border-radius: 11px; font-weight: 600; }
.nav-back { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); font-weight: 500; padding: 6px 0; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1fr minmax(0, 360px); gap: 64px; align-items: center; padding: 54px 0 80px; }
.h1 {
  font-family: var(--serif); font-weight: 600; font-size: clamp(38px, 6vw, 62px);
  line-height: 1.08; letter-spacing: -0.02em; color: var(--ink); margin: 18px 0 0;
}
.lead { font-size: 19px; line-height: 1.6; color: var(--muted); margin: 24px 0 0; max-width: 480px; }
.badges { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }
.badge { display: flex; align-items: center; gap: 12px; background: var(--dark); color: #fff; padding: 13px 22px; border-radius: 14px; }
.badge--soft { opacity: 0.92; }
.badge small { display: block; font-size: 11px; color: #bbb6ad; font-weight: 400; }
.badge b { display: block; font-size: 18px; font-weight: 600; margin-top: -1px; font-family: var(--sans); }
.badge-note { font-size: 13.5px; color: #6a655b; margin-top: 15px; font-weight: 500; }

/* ---------- phone mockup ---------- */
.phone {
  justify-self: center; width: min(340px, 86vw); aspect-ratio: 340 / 735; border-radius: 42px;
  background: var(--dark); padding: 11px; box-shadow: 0 30px 70px rgba(40, 36, 28, 0.28); position: relative;
}
.phone-notch { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 108px; height: 28px; background: var(--dark); border-radius: 16px; z-index: 3; }
.phone-screen { width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: var(--paper); display: flex; flex-direction: column; }
.phone-status { height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px 0 26px; font-size: 13px; font-weight: 600; color: var(--ink); flex: none; }
.phone-status span { display: flex; gap: 6px; align-items: center; }
.phone-toolbar { height: 46px; display: flex; align-items: center; justify-content: flex-end; gap: 20px; padding: 0 22px; flex: none; color: #7d7768; }
.phone-body { flex: 1; overflow: hidden; padding: 10px 30px 0; position: relative; }
.phone-era { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.phone-title { font-family: var(--serif); font-size: 28px; font-weight: 600; color: var(--ink); margin-top: 14px; line-height: 1.18; letter-spacing: -0.01em; }
.phone-byline { font-size: 13px; color: var(--faint); margin-top: 11px; }
.phone-rule { width: 34px; height: 1px; background: #d8d1c1; margin: 20px 0; }
.phone-text { font-family: var(--serif); font-size: 16.5px; line-height: 1.72; color: var(--ink2); }
.phone-text p { margin: 0 0 16px; }
.phone-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(to bottom, rgba(244, 241, 234, 0), var(--paper)); }

/* ---------- how it works ---------- */
.section-alt { background: var(--paper-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-pad { padding: 72px 0; }
.center { text-align: center; }
.h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 4vw, 34px); color: var(--ink); letter-spacing: -0.01em; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.step { text-align: center; }
.step-icon { width: 58px; height: 58px; border-radius: 15px; background: var(--icon-bg); display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.h3 { font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--ink); margin: 20px 0 8px; }
.step p { font-size: 15.5px; line-height: 1.6; color: var(--muted); margin: 0; }

/* ---------- cta ---------- */
.cta { padding: 84px 0; text-align: center; }
.cta .h2 { font-size: clamp(30px, 5vw, 40px); }
.cta p { font-size: 18px; color: var(--muted); margin: 18px 0 36px; }

/* ---------- footer ---------- */
.site-footer { background: var(--dark); color: var(--dark-text); }
.site-footer .wrap { padding-top: 44px; padding-bottom: 44px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.foot-brand { font-family: var(--serif); font-weight: 600; font-size: 19px; color: #f1ece1; display: flex; align-items: center; gap: 11px; }
.foot-brand .brand-mark { width: 30px; height: 30px; border-radius: 8px; font-size: 17px; }
.foot-links { display: flex; gap: 28px; font-size: 14.5px; color: var(--dark-faint); font-weight: 500; flex-wrap: wrap; }
.foot-links a { color: var(--dark-faint); padding: 4px 0; }
.foot-links a[aria-current='page'] { color: #f1ece1; }
.foot-copy { font-size: 13.5px; color: var(--dark-faint); }

/* ---------- legal ---------- */
.legal { max-width: 720px; margin: 0 auto; padding: 64px 40px 96px; }
.legal h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(36px, 6vw, 46px); line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); margin: 14px 0 0; }
.legal .updated { font-size: 15px; color: #6a655b; margin: 14px 0 0; }
.legal-rule { width: 40px; height: 1px; background: #d8d1c1; margin: 36px 0; }
.legal-intro { font-family: var(--serif); font-size: 18px; line-height: 1.75; color: #403b32; margin: 0 0 16px; }
.legal h2 { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--ink); margin: 38px 0 12px; }
.legal p { font-size: 16px; line-height: 1.7; color: var(--body); margin: 0 0 16px; }
.legal a { color: var(--accent); font-weight: 600; border-bottom: 1px solid rgba(47, 74, 107, 0.3); }
.callout {
  background: #eef0ea; border: 1px solid #dde2d6; border-radius: 14px; padding: 18px 20px;
  margin: 24px 0 30px; display: flex; gap: 13px; align-items: flex-start;
}
.callout svg { flex: none; margin-top: 1px; }
.callout p { font-size: 15.5px; line-height: 1.6; color: #3f4a3a; margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding: 32px 0 56px; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero .badges { justify-content: center; }
  .hero .badge-note { text-align: center; }
  .steps { grid-template-columns: 1fr; gap: 30px; max-width: 420px; margin: 0 auto; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 22px; }
  .legal { padding: 44px 22px 72px; }
  .site-nav { padding-top: 40px; padding-bottom: 22px; }
  .nav-links { gap: 0; }
  .nav-links .nav-link { display: none; }
  .hero { padding-top: 30px; }
  .h1 br { display: none; }
  .section-pad { padding: 56px 0; }
  .cta { padding: 64px 0; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; gap: 18px; }
}
