/* ==========================================================================
   HipAngle Pro — website styles
   Palette derived from the app icon: sky blue on deep navy.
   ========================================================================== */

:root {
  --navy: #071722;
  --navy-2: #0c2233;
  --ink: #0f2233;
  --text: #22323f;
  --muted: #5b6b7a;
  --line: #e2e9f0;
  --bg: #f6f9fc;
  --surface: #ffffff;
  --brand: #71bbe8;
  --brand-deep: #2a8fcb;
  --brand-ink: #0d5f91;
  --amber-bg: #fff8e6;
  --amber-line: #f0d48a;
  --amber-ink: #6b4d00;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(7, 23, 34, .05), 0 8px 24px rgba(7, 23, 34, .07);
  --shadow-lg: 0 20px 60px rgba(7, 23, 34, .35);
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 750; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

.container { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: .5rem .8rem; border-radius: 6px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.25rem; border-radius: 999px; font-weight: 650; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand-deep); color: #fff; box-shadow: 0 6px 18px rgba(42, 143, 203, .35); }
.btn-primary:hover { background: var(--brand-ink); }
.btn-sm { padding: .55rem 1rem; font-size: .875rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 23, 34, .85);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: #fff; font-size: 1.05rem; font-weight: 500; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 9px; }
.brand strong { font-weight: 800; color: var(--brand); }
.site-nav { display: flex; gap: 1.4rem; margin-left: 1rem; }
.site-nav a { color: rgba(255, 255, 255, .78); font-weight: 500; font-size: .95rem; }
.site-nav a:hover { color: #fff; text-decoration: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: .75rem; }
.lang { display: inline-flex; align-items: center; gap: .4rem; color: rgba(255,255,255,.8); }
.lang select {
  appearance: none; -webkit-appearance: none;
  background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px; padding: .45rem 1.9rem .45rem .8rem; font: inherit; font-size: .875rem; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right .7rem center;
}
.lang select option { color: var(--ink); background: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 520px at 78% 40%, rgba(113, 187, 232, .28), transparent 60%),
    radial-gradient(600px 400px at 10% 100%, rgba(42, 143, 203, .18), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 -1px 0; height: 80px;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}
.hero-inner {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(4rem, 9vw, 7rem);
}
.hero h1 { color: #fff; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 1rem;
}
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255,255,255,.78); max-width: 34rem; }
.hero-cta { margin-top: 2rem; }
.store-badge { display: inline-block; transition: transform .12s ease; }
.store-badge:hover { transform: translateY(-2px); }
.store-badge img { height: 64px; width: auto; }
.platform-note { margin: .75rem 0 0 .35rem; font-size: .9rem; color: rgba(255,255,255,.6); }

/* Phone mockup */
.hero-visual { margin: 0; justify-self: center; text-align: center; }
.hero-visual figcaption { font-size: .8rem; color: rgba(255,255,255,.5); margin-top: 1rem; }
.phone {
  width: 300px; aspect-ratio: 9 / 18.5; border-radius: 40px; padding: 12px;
  background: linear-gradient(160deg, #1b2b39, #0a1620);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255,255,255,.08);
  margin-inline: auto; position: relative;
}
.phone::before {
  content: ""; position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 24px; background: #0a1620; border-radius: 0 0 16px 16px; z-index: 2;
}
.phone-screen {
  height: 100%; border-radius: 30px; overflow: hidden; background: #0b1520;
  display: flex; flex-direction: column;
}
.mock-topbar { display: flex; align-items: center; gap: .5rem; padding: 34px 16px 10px; color: rgba(255,255,255,.85); font-size: .8rem; font-weight: 600; }
.mock-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 10px var(--brand); }
.mock-image { position: relative; flex: 1; background: #000; overflow: hidden; }
.mock-image img { width: 100%; height: 100%; object-fit: cover; }
.mock-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.ln { stroke-width: 3; stroke-linecap: round; fill: none; }
.ln-base { stroke: #ffd166; }
.ln-bony { stroke: #71bbe8; }
.ln-cart { stroke: #ff7eb6; }
.arc { fill: none; stroke-width: 2.5; }
.arc-a { stroke: #71bbe8; }
.arc-b { stroke: #ff7eb6; }
.lbl { font: 700 26px var(--font); fill: #fff; paint-order: stroke; stroke: rgba(0,0,0,.6); stroke-width: 5; }
.pt { fill: #fff; stroke: #0b1520; stroke-width: 2; }
.mock-results { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 14px 16px; background: #0f1d2a; }
.mock-metric { background: rgba(255,255,255,.06); border-radius: 10px; padding: 8px 10px; }
.mock-k { display: block; font-size: .65rem; color: rgba(255,255,255,.55); }
.mock-v { display: block; font-size: 1.15rem; font-weight: 800; color: #fff; }
.mock-type {
  grid-column: 1 / -1; text-align: center; font-weight: 800; font-size: .85rem; letter-spacing: .02em;
  padding: 9px; border-radius: 10px; color: #06202f;
  background: linear-gradient(90deg, #8fd0f2, var(--brand));
}

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); position: relative; }
.step-n {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; font-weight: 800; font-size: 1.05rem;
}
.step p { color: var(--muted); margin: 0; }

/* ---------- Features ---------- */
.features { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature { padding: 1.5rem; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.feature p { color: var(--muted); margin: 0; }
.feature-icon {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 1rem;
  background: #e6f3fb; color: var(--brand-ink);
}
.feature-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Audience + Pro cards ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: stretch; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.card-lede { color: var(--muted); }
.checklist { list-style: none; display: grid; gap: .6rem; margin: 1rem 0 1.5rem; }
.checklist li { position: relative; padding-left: 1.8rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .35rem; width: 18px; height: 18px; border-radius: 50%;
  background: #e6f3fb url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d5f91' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='m5 12 5 5L20 7'/></svg>") center/12px no-repeat;
}
.langs { border-top: 1px solid var(--line); padding-top: 1.25rem; margin-top: auto; }
.langs h3 { font-size: 1rem; }
.langs p { color: var(--muted); font-size: .95rem; margin: 0; }
.card-audience { display: flex; flex-direction: column; }
.card-pro { position: relative; background: linear-gradient(180deg, #ffffff, #f2f8fc); border-color: #cfe4f2; }
.badge {
  position: absolute; top: 1.25rem; right: 1.25rem; font-size: .7rem; font-weight: 800; letter-spacing: .1em;
  padding: .3rem .6rem; border-radius: 999px; background: var(--brand-deep); color: #fff;
}
.fineprint { font-size: .8rem; color: var(--muted); margin: 1rem 0 0; }

/* ---------- Disclaimer ---------- */
.section-disclaimer { padding-top: 0; }
.disclaimer {
  display: grid; grid-template-columns: 56px 1fr; gap: 1.25rem;
  background: var(--amber-bg); border: 1px solid var(--amber-line); border-radius: var(--radius); padding: 1.75rem 2rem;
}
.disclaimer h2 { font-size: 1.25rem; color: var(--amber-ink); }
.disclaimer p, .disclaimer li { color: #4a3d1e; font-size: .95rem; }
.disclaimer ul { list-style: disc; padding-left: 1.2rem; display: grid; gap: .35rem; }
.disclaimer-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: #fde9a8; color: var(--amber-ink); }
.disclaimer-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.7); padding: 3rem 0 2rem; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 3rem; align-items: start; }
.footer-brand { display: flex; gap: .8rem; align-items: flex-start; }
.footer-brand img { border-radius: 8px; }
.footer-brand strong { color: #fff; display: block; }
.footer-brand p { margin: .2rem 0 0; font-size: .9rem; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,.75); font-size: .95rem; }
.footer-links a:hover { color: #fff; }
.footer-legal { grid-column: 1 / -1; font-size: .8rem; color: rgba(255,255,255,.45); border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.25rem; margin: 0; }

/* ---------- Privacy page ---------- */
.page-narrow { max-width: 760px; margin-inline: auto; }
.privacy-policy { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 3rem); box-shadow: var(--shadow); }
.privacy-policy h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.privacy-policy h2 { font-size: 1.2rem; margin-top: 2rem; padding-bottom: .4rem; border-bottom: 1px solid var(--line); }
.privacy-policy ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1rem; }
.privacy-policy li { margin-bottom: .35rem; }
.privacy-policy p, .privacy-policy ul { color: var(--text); }
.back-link { display: inline-block; margin-bottom: 1.25rem; font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .site-nav { display: none; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
  .lede { margin-inline: auto; }
  .hero-visual { order: 2; }
  .steps, .features { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .header-inner { gap: .75rem; }
  .brand span { display: none; }
  .btn-sm { padding: .5rem .8rem; font-size: .8rem; }
  .steps, .features { grid-template-columns: 1fr; }
  .phone { width: 260px; }
  .disclaimer { grid-template-columns: 1fr; padding: 1.5rem; }
  .disclaimer-icon { width: 44px; height: 44px; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .store-badge { transition: none; }
}

/* Play Store listing name under the badge */
.store-name { margin: .25rem 0 0 .35rem; font-size: .85rem; color: rgba(255,255,255,.5); }
.store-name::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); margin-right: .5rem; vertical-align: middle; }
