:root {
  --background: #f9f7f2;
  --surface: #ffffff;
  --primary-text: #183024;
  --secondary-text: #6b705c;
  --deep-forest: #1b3022;
  --pantry-green: #31564a;
  --positive: #2f8f67;
  --caution: #d97706;
  --concern: #b94a3e;
  --border: #e4ddd1;
  --soft: #f2ede3;
  --positive-soft: #e4f1ea;
  --caution-soft: #f7e5bd;
  --concern-soft: #f4ddd9;
  --shadow: 0 18px 42px rgba(27, 48, 34, 0.08);
  --body-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  background: var(--background);
  color: var(--primary-text);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 0%, rgba(228, 241, 234, 0.74), transparent 32%),
    linear-gradient(180deg, #fbfaf6 0%, var(--background) 44%, #f7f3ea 100%);
  color: var(--primary-text);
  font-family: var(--body-font);
  line-height: 1.42;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--deep-forest);
  font-weight: 700;
  text-decoration: none;
}

a:hover { text-decoration: underline; }

main {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 42px 0 76px;
}

main.narrow {
  width: min(760px, calc(100% - 48px));
  padding-top: 48px;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 34px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--deep-forest);
  font-family: var(--body-font);
  font-size: 31px;
  font-weight: 500;
  line-height: 1;
}

.brand-mark {
  width: 33px;
  height: 33px;
  background: url("/clearhalal-mark.png") center / contain no-repeat;
  display: inline-block;
  flex: 0 0 auto;
}

.legal-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
}

.legal-nav a,
.pill {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 15px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--secondary-text);
  font-size: 13px;
  font-weight: 650;
}

.hero {
  margin-bottom: 28px;
}

.landing-hero {
  min-height: calc(100vh - 154px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(330px, 0.72fr);
  gap: 58px;
  align-items: center;
  margin-bottom: 44px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 7px;
  color: var(--secondary-text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  margin: 0;
  color: var(--primary-text);
  font-family: var(--body-font);
  font-size: clamp(42px, 7vw, 64px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0;
}

.landing-hero h1 {
  max-width: 720px;
  font-size: clamp(50px, 7.2vw, 88px);
  line-height: 0.98;
}

.lede,
.lead {
  margin: 14px 0 0;
  max-width: 620px;
  color: var(--secondary-text);
  font-size: 17px;
  line-height: 1.52;
}

.lead {
  margin-top: 22px;
  font-size: 20px;
  line-height: 1.48;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.primary-button,
.secondary-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 750;
}

.primary-button {
  background: var(--deep-forest);
  color: #ffffff;
}

.secondary-button {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  color: var(--deep-forest);
}

.hero-note {
  margin-top: 16px;
  color: var(--secondary-text);
  font-size: 13px;
}

.phone-shell {
  width: min(100%, 352px);
  margin-left: auto;
  border: 1px solid var(--border);
  border-radius: 36px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.phone-screen {
  min-height: 612px;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 24px 22px;
  background: var(--background);
  overflow: hidden;
}

.result-phone {
  transform: none;
}

.screenshot-screen {
  height: 760px;
  min-height: 0;
  padding: 0;
  background: var(--background);
  line-height: 0;
}

.screenshot-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 28px;
}

.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 30px;
}

.progress-dots {
  display: flex;
  gap: 7px;
  align-items: center;
}

.progress-dots span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--border);
}

.progress-dots span.active {
  width: 24px;
  background: var(--deep-forest);
}

.app-title {
  margin: 0 0 18px;
  color: var(--primary-text);
  font-size: 38px;
  font-weight: 500;
  line-height: 1.05;
}

.app-copy {
  margin: 0 0 28px;
  color: var(--secondary-text);
  font-size: 17px;
  line-height: 1.52;
}

.label-card {
  margin-top: 46px;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  background: var(--surface);
}

.label-inner {
  border-radius: 16px;
  padding: 18px;
  background: var(--soft);
}

.label-inner p {
  margin: 0;
  color: var(--primary-text);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.38;
}

.flag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.flag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 11px;
  background: var(--caution-soft);
  color: var(--caution);
  font-size: 13px;
  font-weight: 750;
}

.app-button {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 34px;
  border-radius: 18px;
  background: var(--deep-forest);
  color: #ffffff;
  font-size: 15px;
  font-weight: 750;
}

.skip {
  margin-top: 13px;
  text-align: center;
  color: var(--secondary-text);
  font-size: 14px;
  font-weight: 650;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0 38px;
}

.feature-card,
.card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.feature-card {
  padding: 22px;
}

.feature-card h2,
.feature-card h3 {
  margin: 0 0 8px;
  color: var(--primary-text);
  font-size: 18px;
  font-weight: 650;
  line-height: 1.26;
}

.feature-card p {
  margin: 0;
  color: var(--secondary-text);
  font-size: 15px;
  line-height: 1.46;
}

.mini-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 15px;
  border-radius: 11px;
  background: var(--soft);
  color: var(--deep-forest);
  font-size: 18px;
  font-weight: 800;
}

.wide-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.66fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 28px;
  padding: 24px;
  background: linear-gradient(135deg, var(--deep-forest), var(--pantry-green));
  border-radius: 22px;
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(27, 48, 34, 0.16);
}

.wide-panel h2 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 500;
  line-height: 1.04;
}

.wide-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 1.5;
}

.premium-list {
  display: grid;
  gap: 7px;
  justify-self: end;
  width: min(100%, 310px);
}

.premium-row {
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 999px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 13px;
  font-weight: 650;
}

.premium-row span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.card {
  padding: 0 20px;
  overflow: hidden;
}

.row {
  padding: 18px 0;
}

.row + .row {
  border-top: 1px solid var(--border);
}

h2 {
  margin: 0 0 7px;
  color: var(--primary-text);
  font-family: var(--body-font);
  font-size: 18px;
  font-weight: 650;
  line-height: 1.26;
  letter-spacing: 0;
}

p,
li {
  color: var(--secondary-text);
  font-size: 15px;
  line-height: 1.46;
  letter-spacing: 0;
}

p { margin: 0; }

ul {
  margin: 0;
  padding-left: 22px;
}

li + li { margin-top: 9px; }

.inline-link {
  display: inline-block;
  margin-top: 11px;
  color: var(--deep-forest);
  font-size: 13px;
  font-weight: 700;
}

.updated {
  margin: 16px 0 0;
  color: var(--secondary-text);
  font-size: 13px;
  line-height: 1.35;
}

footer {
  padding-top: 24px;
  color: var(--secondary-text);
  font-size: 13px;
  text-align: center;
}

footer a {
  color: var(--secondary-text);
}

@media (max-width: 900px) {
  .landing-hero,
  .wide-panel {
    grid-template-columns: 1fr;
  }

  .landing-hero {
    min-height: 0;
    gap: 34px;
  }

  .phone-shell {
    margin: 0 auto;
  }

  .result-phone {
    transform: none;
  }

  .section-grid {
    grid-template-columns: 1fr;
  }

  .premium-list {
    justify-self: stretch;
    width: 100%;
  }
}

@media (max-width: 640px) {
  main,
  main.narrow {
    width: min(100% - 40px, 760px);
    padding-top: 34px;
  }

  .brand-row {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 32px;
  }

  .brand {
    font-size: 30px;
  }

  .legal-nav a,
  .pill {
    min-height: 36px;
    padding: 0 13px;
  }

  .landing-hero h1 {
    font-size: clamp(46px, 14vw, 66px);
  }

  .lead {
    font-size: 18px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .phone-screen {
    min-height: 570px;
  }

  .screenshot-screen {
    height: 660px;
  }

  .card {
    border-radius: 16px;
    padding: 0 17px;
  }

  .row {
    padding: 17px 0;
  }
}
