/* PhoneCare landing + legal stylesheet
   Palette mirrors the app's band colours (see core/ui/.../PhoneCareColors.kt). */

:root {
  --teal-100: #DFF6EE;
  --teal-300: #8AD9C2;
  --teal-500: #3EBFA3;
  --teal-600: #2FA88C;
  --teal-700: #29A992;
  --teal-900: #0F3A31;

  --grad-start: #90EACB;
  --grad-end:   #29A992;

  --score-excellent: #16A34A;
  --score-good:      #65A30D;
  --score-fair:      #D97706;
  --score-attn:      #EA580C;
  --score-poor:      #DC2626;

  --ink-900: #0F172A;
  --ink-700: #334155;
  --ink-500: #64748B;
  --ink-300: #CBD5E1;
  --ink-100: #F1F5F9;
  --ink-50:  #F8FAFC;
  --surface: #FFFFFF;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,0.06), 0 1px 3px rgba(15,23,42,0.08);
  --shadow-md: 0 6px 20px rgba(15,23,42,0.08);
  --shadow-lg: 0 24px 60px rgba(15,23,42,0.18);

  --content-max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
               Arial, "Noto Sans", sans-serif;
  color: var(--ink-900);
  background: var(--surface);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal-600); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.125rem; }

p { margin: 0 0 1em; color: var(--ink-700); }

.container { width: 100%; max-width: var(--content-max); margin: 0 auto; padding: 0 24px; }

/* -------- Buttons -------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 999px; font-weight: 600;
  font-size: 0.95rem; transition: transform .12s ease, box-shadow .2s ease, background .2s;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn--primary {
  background: var(--teal-500); color: #fff;
  box-shadow: 0 8px 20px rgba(62,191,163,0.35);
}
.btn--primary:hover { background: var(--teal-600); transform: translateY(-1px); }
.btn--ghost {
  background: transparent; color: var(--teal-700);
  border-color: rgba(62,191,163,0.35);
}
.btn--ghost:hover { background: var(--teal-100); }
.btn--lg { padding: 14px 26px; font-size: 1rem; }

/* -------- Nav -------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(15,23,42,0.06);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  height: 64px;
}
.nav__brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; color: var(--ink-900);
}
.nav__brand:hover { text-decoration: none; }
.nav__brand img { border-radius: 8px; }
.nav__links { display: flex; gap: 22px; }
.nav__links a { color: var(--ink-700); font-weight: 500; font-size: 0.95rem; }
.nav__links a[aria-current="page"] { color: var(--teal-700); }
.nav__cta { display: inline-flex; }
.nav__toggle {
  display: none;
  background: none; border: 0; padding: 8px; cursor: pointer;
  width: 40px; height: 40px;
}
.nav__toggle span {
  display: block; height: 2px; width: 22px; background: var(--ink-900);
  margin: 4px auto; transition: transform .2s, opacity .2s;
}

@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav[data-open="true"] .nav__links {
    display: flex; flex-direction: column; gap: 14px;
    position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; padding: 20px 24px;
    border-bottom: 1px solid rgba(15,23,42,0.06);
    box-shadow: var(--shadow-md);
  }
}

/* -------- Hero -------- */
.hero {
  background:
    radial-gradient(1200px 520px at 80% -10%, rgba(62,191,163,0.25), transparent 60%),
    linear-gradient(180deg, #F6FCFA 0%, #FFFFFF 100%);
  padding: 80px 0 60px;
}
.hero__inner {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center;
}
.eyebrow {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  background: var(--teal-100); color: var(--teal-700);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em;
  margin-bottom: 16px;
}
.lede { font-size: 1.125rem; color: var(--ink-700); max-width: 52ch; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 20px; }
.hero__bullets {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  color: var(--ink-700); font-size: 0.92rem;
}
.hero__bullets li {
  display: inline-flex; align-items: center; gap: 8px;
}
.hero__bullets li::before {
  content: ""; width: 8px; height: 8px; border-radius: 999px;
  background: var(--teal-500);
}

.hero__art {
  display: flex; justify-content: center;
}
.hero__logo-wrap {
  position: relative;
  padding: 22px;
  background: linear-gradient(135deg, var(--grad-start) 0%, var(--grad-end) 100%);
  border-radius: 48px;
  box-shadow: var(--shadow-lg);
}
.hero__logo-wrap img { border-radius: 30px; }

@media (max-width: 820px) {
  .hero { padding: 56px 0 40px; }
  .hero__inner { grid-template-columns: 1fr; text-align: left; }
  .hero__logo-wrap { padding: 16px; border-radius: 36px; }
  .hero__logo-wrap img { width: 220px; height: 220px; border-radius: 24px; }
}

/* -------- Sections -------- */
.section { padding: 72px 0; }
.section--alt { background: var(--ink-50); }
.section--cta {
  background: linear-gradient(135deg, var(--grad-start) 0%, var(--grad-end) 100%);
  color: #fff; padding: 80px 0;
}
.section__head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section__sub { color: var(--ink-500); }

/* -------- Grid + cards -------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 900px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .grid--2, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.feature__icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; margin-bottom: 14px;
}
.feature__icon svg { width: 22px; height: 22px; }
.feature__icon--storage { background: var(--score-excellent); }
.feature__icon--jank    { background: var(--score-good);    }
.feature__icon--thermal { background: var(--score-attn);    }
.feature__icon--runtime { background: var(--teal-500);      }

.feature h3, .truth h3 { margin-bottom: 8px; }
.feature p, .truth p { margin: 0; color: var(--ink-700); font-size: 0.95rem; }

.truth {
  border-left: 4px solid var(--teal-500);
}

/* -------- Steps -------- */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  position: relative;
}
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 999px;
  background: var(--teal-500); color: #fff; font-weight: 700;
  margin-bottom: 14px;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--ink-700); font-size: 0.95rem; }

@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* -------- CTA -------- */
.cta { text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,0.9); }
.cta .btn--primary {
  background: #fff; color: var(--teal-700);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.cta .btn--primary:hover { background: #F0FDF9; color: var(--teal-700); }
.cta__note { margin-top: 10px; font-size: 0.85rem; color: rgba(255,255,255,0.8); }

/* -------- FAQ -------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq__item {
  padding: 20px 0; border-bottom: 1px solid var(--ink-100);
}
.faq__item:last-child { border-bottom: 0; }
.faq__item dt { font-weight: 600; color: var(--ink-900); margin-bottom: 6px; }
.faq__item dd { margin: 0; color: var(--ink-700); }

/* -------- Legal -------- */
.legal { padding: 56px 0 96px; }
.legal__inner { max-width: 820px; margin: 0 auto; }
.legal__head { padding-bottom: 28px; border-bottom: 1px solid var(--ink-100); margin-bottom: 28px; }
.legal__meta { color: var(--ink-500); font-size: 0.9rem; }
.legal h2 { margin: 32px 0 10px; }
.legal h3 { margin: 20px 0 6px; }
.legal ul { padding-left: 22px; }
.legal ul li { margin: 6px 0; color: var(--ink-700); }
.legal code {
  background: var(--ink-100); padding: 2px 6px; border-radius: 6px;
  font-size: 0.85em;
}

.legal__table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 0.95rem; }
.legal__table th, .legal__table td {
  text-align: left; vertical-align: top;
  padding: 12px; border-bottom: 1px solid var(--ink-100);
}
.legal__table th { background: var(--ink-50); font-weight: 600; }
.legal__table td:last-child { white-space: nowrap; }

@media (max-width: 640px) {
  .legal__table, .legal__table thead, .legal__table tbody, .legal__table th,
  .legal__table td, .legal__table tr { display: block; }
  .legal__table thead { display: none; }
  .legal__table tr { border-bottom: 1px solid var(--ink-100); padding: 8px 0; }
  .legal__table td { border-bottom: 0; padding: 4px 0; }
  .legal__table td:last-child { white-space: normal; color: var(--ink-500); font-size: 0.85rem; }
}

/* -------- Footer -------- */
.footer {
  padding: 40px 0; border-top: 1px solid var(--ink-100);
  background: var(--ink-50);
}
.footer__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px;
}
.footer__brand {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 700;
}
.footer__brand img { border-radius: 6px; }
.footer__links { display: flex; gap: 20px; }
.footer__links a { color: var(--ink-700); font-size: 0.9rem; }
.footer__copy { margin: 0; color: var(--ink-500); font-size: 0.85rem; }
