/* Sales page: the page is a cut-away of the ground. Each section is a stratum with a jagged top edge. */

:root {
  --soil-deep: #a34c21;
  --bedrock: #2e2b29;
}

body { background: var(--bedrock); }

.stratum { position: relative; padding: 64px 0 72px; margin-top: -22px; }
.stratum--edge {
  clip-path: polygon(0 16px, 7% 5px, 15% 19px, 26% 3px, 38% 15px, 49% 4px, 61% 18px, 73% 6px, 84% 17px, 93% 4px, 100% 13px,
                     100% 100%, 0 100%);
  padding-top: 82px;
}
.stratum h2 { max-width: 22ch; }
.lede { font-size: var(--step-1); max-width: 46ch; }

/* Hero: sky + grass */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center; padding: 14px var(--gutter);
}
.top__brand { font-size: var(--step-1); text-decoration: none; }
.top__login { color: #fff; font-weight: 800; text-decoration: none; }
.top__login:hover { color: #fff; text-decoration: underline; }

.hero {
  background: linear-gradient(180deg, #2f80d6 0%, var(--sky) 55%, #77b8ef 100%);
  padding: 84px 0 0; margin-top: 0; color: #fff; overflow: hidden;
}
.hero__grid { display: grid; gap: 28px; align-items: end; }
.hero__copy { padding-bottom: 32px; }
.hero__chip { display: inline-block; font-weight: 800; background: rgba(35, 23, 15, 0.55); color: #fff;
              padding: 6px 12px; border-radius: 999px; margin: 0 0 14px; }
.hero h1 { font-size: clamp(2.6rem, 12vw, 4.4rem); margin-bottom: 0.3em; max-width: 12ch; }
.hero__sub { font-size: var(--step-1); font-weight: 700; max-width: 36ch; text-shadow: 0 1px 0 rgba(35, 23, 15, 0.35); }
.hero__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 22px; }
.hero__fine { font-weight: 700; font-size: var(--step--1); margin: 0; }

.phone {
  justify-self: center; width: min(62vw, 300px); aspect-ratio: 9 / 16; position: relative; z-index: 1;
  border: 9px solid var(--ink); border-bottom: 0; border-radius: 30px 30px 0 0; overflow: hidden;
  background: var(--ink); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; }
.ground { height: 30px; background: var(--grass); box-shadow: inset 0 -8px 0 var(--grass-deep); position: relative; z-index: 2; }

/* Proof: topsoil */
.proof { background: var(--topsoil); color: #fff; }
.placards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 28px 0 18px; }
.placard { margin: 0; background: #fff; color: var(--ink); border: 3px solid var(--ink); border-radius: var(--radius-sign);
           box-shadow: 0 5px 0 rgba(0, 0, 0, 0.35); overflow: hidden; }
.placard img { aspect-ratio: 4 / 5; object-fit: cover; object-position: center 35%; width: 100%; height: auto; }
.placard__body { padding: 10px 12px 12px; }
.placard__topic { display: block; font-weight: 800; color: var(--soil); font-size: var(--step--1); }
.placard__num { display: block; font-weight: 900; font-size: var(--step-2); line-height: 1.1; }
.placard__split { display: block; font-size: 0.8rem; color: var(--ink-soft); margin-top: 2px; }
.proof__fine { font-size: var(--step--1); opacity: 0.85; max-width: 60ch; }

/* Steps: terracotta */
.steps { background: var(--soil-deep); color: #fff; }
.steps ol { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: start;
            background: rgba(35, 23, 15, 0.22); border-radius: 12px; padding: 12px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
                    background: var(--caption); color: var(--ink); font-weight: 900; font-size: var(--step-1);
                    border: 3px solid var(--ink); }
.steps strong { display: block; font-size: var(--step-1); }

/* Routes + costs: light gravel */
.routes { background: var(--gravel-light); color: var(--ink);
          background-image: radial-gradient(rgba(35, 23, 15, 0.08) 1.5px, transparent 1.6px); background-size: 14px 14px; }
.route-grid { display: grid; gap: 16px; margin: 26px 0; }
.route { background: #fff; border: 3px solid var(--ink); border-radius: var(--radius-panel); padding: 18px; }
.route h3 { font-size: var(--step-2); margin-bottom: 0.3em; }
.route__tag { display: inline-block; font-weight: 900; font-size: var(--step--1); padding: 2px 10px; border-radius: 999px;
              border: 2px solid var(--ink); margin-bottom: 10px; }
.route__tag--ia { background: var(--sky-pale); }
.route__tag--blender { background: var(--caption); }
.route dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 12px 0 0; }
.route dt { font-weight: 800; }
.route dd { margin: 0; }
.costs { background: #fff; border-radius: var(--radius-panel); border: 3px solid var(--ink); padding: 18px; }
.costs h3 { font-size: var(--step-2); }
.costs__fine { font-size: var(--step--1); color: var(--ink-soft); margin: 10px 0 0; }

/* Curriculum: a borehole log on light terracotta */
.course { background: var(--soil-light); color: var(--ink); }
.bore { list-style: none; margin: 26px 0 0; padding: 0 0 0 22px; border-left: 10px solid var(--topsoil); }
.bore li { position: relative; padding: 0 0 18px 6px; }
.bore li::before { content: ""; position: absolute; left: -35px; top: 6px; width: 18px; height: 18px; border-radius: 50%;
                   background: #fff; border: 3px solid var(--ink); }
.bore__depth { display: block; font-weight: 900; font-size: var(--step--1); color: var(--topsoil); }
.bore__title { font-weight: 900; font-size: var(--step-1); }
.bore__sum { display: block; color: #3d2a1f; }
.bore .badge { margin-left: 6px; }

.downloads { margin-top: 30px; background: rgba(255, 255, 255, 0.55); border-radius: var(--radius-panel); padding: 16px 18px; }
.downloads ul { margin: 8px 0 0; padding-left: 1.2em; }

/* Prices: rock */
.prices { background: var(--rock); color: #fff; }
.plans { display: grid; gap: 18px; margin: 28px 0 22px; }
.plan { background: #fff; color: var(--ink); border: 3px solid var(--ink); border-radius: var(--radius-panel); padding: 22px;
        display: flex; flex-direction: column; gap: 10px; }
.plan--featured { box-shadow: 0 0 0 5px var(--caption); }
.plan h3 { font-size: var(--step-2); margin: 0; }
.plan__price { font-weight: 900; font-size: var(--step-4); line-height: 1; margin: 4px 0 0; }
.plan__price small { font-size: var(--step-0); font-weight: 800; }
.plan__later { color: var(--ink-soft); font-weight: 700; margin: 0; }
.plan ul { padding-left: 1.1em; margin: 6px 0 4px; }
.plan li { margin-bottom: 4px; }
.plan .btn { margin-top: auto; }
.plan__usd { font-size: var(--step--1); color: var(--ink-soft); margin: 0; }
.guarantee { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; max-width: 640px; }
.stamp { width: 84px; height: 84px; border-radius: 50%; border: 4px dashed var(--caption); display: grid; place-items: center;
         text-align: center; font-weight: 900; color: var(--caption); line-height: 1; transform: rotate(-8deg); font-size: 0.82rem; }
.paynote { font-size: var(--step--1); opacity: 0.9; margin-top: 16px; max-width: 64ch; }

/* Fit: gravel */
.fit { background: var(--gravel); color: var(--ink); }
.fit__grid { display: grid; gap: 16px; margin-top: 22px; }
.fit__col { background: #fff; border-radius: var(--radius-panel); padding: 18px; border: 3px solid var(--ink); }
.fit__col ul { padding-left: 1.1em; margin: 0; }

/* FAQ: groundwater */
.faq { background: var(--water); color: var(--ink); }
.faq details { background: #fff; border: 2px solid rgba(35, 23, 15, 0.2); border-radius: 12px; margin: 10px 0; }
.faq summary { cursor: pointer; font-weight: 800; padding: 14px 16px; list-style-position: inside; }
.faq details > div { padding: 0 16px 14px; }
.faq details[open] summary { color: var(--water-deep); }

/* About + footer: bedrock */
.about { background: #3a3633; color: #fff; }
.about p { max-width: 62ch; }
.foot { background: var(--bedrock); color: #d8d3cc; padding: 36px 0 110px; font-size: var(--step--1); }
.foot a { color: #fff; }
.foot__links { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 12px; }

/* Sticky buy bar on phones, shown after the hero */
.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--ink); color: #fff; transform: translateY(110%); transition: transform 0.2s ease;
}
.buybar.is-on { transform: translateY(0); }
.buybar__text { font-weight: 800; line-height: 1.2; }
.buybar__text small { display: block; font-weight: 700; opacity: 0.8; }

@media (min-width: 760px) {
  .hero__grid { grid-template-columns: 1.15fr 0.85fr; }
  .phone { width: 300px; }
  .route-grid, .fit__grid { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr 1fr; }
  .buybar { display: none; }
  .foot { padding-bottom: 36px; }
}

/* single plan + the AI-route test figure */
.plans--one { grid-template-columns: minmax(0, 520px) !important; justify-content: center; }
.route-test { margin: 22px 0 10px; }
.route-test img { width: 100%; border-radius: 12px; border: 3px solid var(--ink); }
.route-test figcaption { font-weight: 700; margin-top: 8px; }
.route-next { background: #fff; border: 3px dashed var(--ink); border-radius: var(--radius-panel); padding: 14px 16px; margin: 18px 0; }
.route-next p { margin: 0; }
.phone--small { width: min(60vw, 260px); border-bottom: 9px solid var(--ink); border-radius: 30px; margin: 0 auto 10px; }
.route-test figcaption { text-align: center; max-width: 46ch; margin-inline: auto; }
