/* HabeshaLinks — web design system. Mirrors the app theme (tokens.ts + fonts.ts):
   black/gold palette, Playfair Display headings, Cormorant Garamond accents. */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Cormorant+Garamond:ital,wght@0,600;1,500&display=swap');

:root {
  --bg: #0A0907;
  --bg-card: #1E1A14;
  --gold: #E8C36B;
  --gold-bright: #F4DC9A;
  --gold-muted: #8A7536;
  --text: #F6F1E7;
  --text-2: #B8AE9C;
  --text-muted: #736B5C;
  --on-gold: #1A1206;
  --border: #2C271E;
  --border-gold: #4A3C1C;
  --success: #5FB98B;
  --danger: #E5615C;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --accent: 'Cormorant Garamond', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --maxw: 980px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 760px; }

h1, h2, h3, .serif { font-family: var(--serif); font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
h1 { font-size: clamp(34px, 6vw, 60px); margin: 0; }
h2 { font-size: clamp(26px, 4vw, 36px); margin: 0 0 6px; }
h3 { font-size: 20px; margin: 0 0 6px; font-weight: 600; }
.eyebrow { font-family: var(--sans); letter-spacing: 0.18em; text-transform: uppercase; font-size: 12px; font-weight: 700; color: var(--gold); }
.tagline { font-family: var(--accent); font-style: italic; font-size: clamp(18px, 2.6vw, 24px); color: var(--gold); }
.muted { color: var(--text-muted); }
.lede { color: var(--text-2); font-size: 18px; }

/* Header */
header.site { position: sticky; top: 0; z-index: 20; background: rgba(10,9,7,0.82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
header.site .row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 34px; width: auto; }
.brand .name { font-family: var(--serif); font-weight: 700; font-size: 20px; }
.brand .name b { color: var(--gold); font-weight: 700; }
nav.top a { color: var(--text-2); margin-left: 22px; font-size: 15px; }
nav.top a:hover { color: var(--gold); }
@media (max-width: 640px){ nav.top a { margin-left: 14px; font-size: 13px; } .brand .name { display:none; } }

/* Buttons */
.btn { display: inline-block; padding: 13px 24px; border-radius: 999px; font-weight: 700; font-size: 15px; cursor: pointer; border: 1px solid transparent; }
.btn-gold { background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: var(--on-gold); box-shadow: 0 6px 24px rgba(232,195,107,0.22); }
.btn-ghost { background: transparent; border-color: var(--border-gold); color: var(--gold); }

/* Hero */
.hero { text-align: center; padding: 72px 0 56px; }
.hero .emblem { width: 92px; height: 92px; border-radius: 999px; border: 1px solid var(--border-gold); box-shadow: 0 0 60px rgba(232,195,107,0.25); margin-bottom: 22px; }
.hero h1 span { color: var(--gold); }
.hero .lede { max-width: 600px; margin: 18px auto 0; }
.hero .cta { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Sections */
section { padding: 56px 0; border-top: 1px solid var(--border); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px; padding: 24px; }
.card .ic { font-size: 26px; }
.card h3 { margin-top: 10px; }
.card p { margin: 0; color: var(--text-2); font-size: 15px; }

/* Premium tiers */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; max-width: 720px; margin: 0 auto; }
.tier { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 26px; }
.tier.best { border-color: var(--border-gold); box-shadow: 0 0 40px rgba(232,195,107,0.12); }
.tier .pname { font-family: var(--serif); font-size: 24px; }
.tier .price { font-family: var(--serif); font-size: 38px; color: var(--gold); }
.tier .price small { font-family: var(--sans); font-size: 14px; color: var(--text-muted); }
.tier ul { list-style: none; padding: 0; margin: 16px 0 0; }
.tier li { color: var(--text-2); padding: 5px 0 5px 24px; position: relative; font-size: 15px; }
.tier li::before { content: '✓'; color: var(--gold); position: absolute; left: 0; }
.badge { display:inline-block; background: var(--gold); color: var(--on-gold); font-size: 11px; font-weight: 800; letter-spacing: 0.06em; padding: 3px 10px; border-radius: 999px; margin-left: 8px; }

/* Screenshots — .frame always shows a styled phone frame; a real PNG (when
   added to /screenshots) covers it. Missing images hide gracefully (onerror). */
.shots { display: flex; gap: 18px; overflow-x: auto; padding: 8px 0 16px; scroll-snap-type: x mandatory; }
.shot { flex: 0 0 auto; width: 230px; scroll-snap-align: center; }
.frame {
  width: 230px; height: 470px; border-radius: 26px; overflow: hidden;
  border: 1px solid var(--border-gold);
  background:
    radial-gradient(120px 120px at 50% 38%, rgba(232,195,107,0.18), transparent 70%),
    linear-gradient(160deg, #15120D, #0A0907);
  display: flex; align-items: center; justify-content: center;
}
.frame::before { content: ''; width: 64px; height: 64px; border-radius: 999px; border: 1px solid var(--border-gold); background: url('/assets/emblem.png') center/40px no-repeat, rgba(232,195,107,0.06); opacity: 0.85; }
.frame img { position: absolute; width: 230px; height: 470px; object-fit: cover; }
.shot .cap { text-align: center; color: var(--text-muted); font-size: 13px; margin-top: 10px; }

/* Legal pages */
.legal h2 { font-size: 20px; color: var(--gold); margin-top: 30px; }
.legal table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.legal th, .legal td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; font-size: 14px; vertical-align: top; }
.legal th { color: var(--gold); }
.legal ol { padding-left: 22px; } .legal li { margin: 8px 0; }

/* Footer */
footer.site { border-top: 1px solid var(--border); padding: 40px 0 60px; color: var(--text-muted); font-size: 14px; }
footer.site .links a { color: var(--text-2); margin-right: 18px; }
footer.site .links a:hover { color: var(--gold); }
footer.site .mark { font-family: var(--serif); color: var(--text); font-size: 18px; margin-bottom: 10px; }
footer.site .mark b { color: var(--gold); }
