/* Home page only, loaded after home.css. Dark hero and closing band, hairline sections, and the iPhone frame that
   holds the app screenshots in site/screens/ (captured on the iPhone 17 Pro Max simulator, docs/APP_STORE.md §2). */
.lp { --label-light: var(--orange-deep); }

.lp h2 { font-weight: 500; }
.lp-label { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--label-light); font-variant-numeric: tabular-nums; }
.lp .section-head .lp-label { color: var(--label-light); font-size: 11px; max-width: none; }
.lp-fine { font-size: 12px; color: var(--muted); margin: 14px 0 0; }
.lp-fine a { text-decoration: underline; text-underline-offset: 3px; }

/* The iPhone: a titanium rim, a black bezel, the screenshot, the Dynamic Island and a little glass. Size with --w. */
.iphone { --w: 300px; width: var(--w); margin: 0; position: relative; flex: none; }
.iphone-body { position: relative; padding: calc(var(--w) * .013); border-radius: calc(var(--w) * .168);
  background: linear-gradient(140deg, #f1efea 0%, #8d8a84 14%, #dedbd5 30%, #77746e 52%, #c9c6bf 72%, #ebe9e4 86%, #85827c 100%);
  box-shadow: inset 0 0 0 1px #ffffff8c, inset 0 0 1px 2px #0000002e; }
/* Side buttons: Action and volume on the left, side button and Camera Control on the right. */
.iphone-body::before, .iphone-body::after { content: ''; position: absolute; width: calc(var(--w) * .011); border-radius: 2px;
  background: linear-gradient(90deg, #6f6c66, #d4d1ca 60%, #85827c); }
.iphone-body::before { left: calc(var(--w) * -.009); top: 17%; height: 5%;
  box-shadow: 0 calc(var(--w) * .12) 0 0 #a8a59f, 0 calc(var(--w) * .26) 0 0 #a8a59f; }
.iphone-body::after { right: calc(var(--w) * -.009); top: 25%; height: 13%;
  box-shadow: 0 calc(var(--w) * .42) 0 calc(var(--w) * -.03) #a8a59f; }
.iphone-screen { position: relative; padding: calc(var(--w) * .026); border-radius: calc(var(--w) * .155); background: #050505;
  box-shadow: inset 0 0 0 1px #2b2b2b; }
.iphone-screen img { display: block; width: 100%; height: auto; border-radius: calc(var(--w) * .125); background: #f2f2f0; }
.iphone-screen::before { content: ''; position: absolute; z-index: 1; left: 50%; top: calc(var(--w) * .05); width: calc(var(--w) * .27);
  height: calc(var(--w) * .079); transform: translateX(-50%); background: #000; border-radius: 999px; }
.iphone-screen::after { content: ''; position: absolute; inset: calc(var(--w) * .026); border-radius: calc(var(--w) * .125); pointer-events: none;
  background: linear-gradient(118deg, #ffffff1f 0%, #ffffff08 30%, #ffffff00 42%); }

/* Hero */
.lp-hero { background: var(--night); color: var(--night-text); overflow: hidden;
  background-image: linear-gradient(#ffffff07 1px, transparent 1px), linear-gradient(90deg, #ffffff07 1px, transparent 1px);
  background-size: 72px 72px; background-position: center top; }
.lp-hero .links { color: #dedcd5; }
.lp-hero .links a.store-badge:hover { border-color: #fff; }
.lp-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; min-height: 700px; padding: 30px 0 70px; }
.lp-hero .lp-label { color: var(--orange); }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.pulse::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--orange); animation: lp-ping 2.4s ease-out infinite; }
@keyframes lp-ping { from { transform: scale(1); opacity: 1; } to { transform: scale(3.2); opacity: 0; } }
.lp h1 { line-height: .98; margin: 26px 0 28px; }
.lp h1 span { color: var(--orange); }
.lp-lede { font-size: 18px; line-height: 1.6; color: var(--night-muted); max-width: 31em; margin: 0 0 34px; }
.lp-hero .lp-fine { color: var(--night-muted); }

.lp-hero-art { position: relative; height: 740px; }
.lp-hero-art .iphone { position: absolute; animation: lp-rise 1.1s cubic-bezier(.2, .7, .2, 1) both; }
.lp-hero-art .front { --w: 300px; left: 4%; top: 24px; z-index: 2; }
.lp-hero-art .back { --w: 272px; right: 0; top: 112px; animation-delay: .15s; }
.lp-hero-art .back .iphone-screen img { filter: brightness(.82); }
@keyframes lp-rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
.lp-route { position: absolute; inset: 0; width: 100%; height: 100%; }
.lp-route path { fill: none; stroke: var(--orange); stroke-width: 1.5; stroke-dasharray: 900; stroke-dashoffset: 900; opacity: .75;
  animation: lp-draw 2.6s .5s ease-out forwards; vector-effect: non-scaling-stroke; }
@keyframes lp-draw { to { stroke-dashoffset: 0; } }
.lp-callout { position: absolute; z-index: 3; right: 0; bottom: 6px; margin: 0; display: flex; align-items: center; gap: 12px;
  font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--night-muted); }
.lp-callout::before { content: ''; width: 48px; height: 1px; background: var(--orange); }
.lp-callout span { color: var(--night-text); font-variant-numeric: tabular-nums; }

.lp-readout { border-top: 1px solid var(--night-line); }
.lp-readout .wrap { display: flex; justify-content: space-between; gap: 24px; padding-top: 24px; padding-bottom: 24px; font-size: 14px; color: var(--night-muted); }
.lp-readout b { color: var(--orange); font-size: 22px; font-weight: 500; margin-right: 8px; font-variant-numeric: tabular-nums; }

/* "I'll sort my mileage later." */
.lp-later { padding-top: 140px; padding-bottom: 130px; }
.lp-quote { font-size: clamp(44px, 7.4vw, 108px); line-height: 1; letter-spacing: -.055em; margin: 0; max-width: 11ch; }
.lp-blur { list-style: none; padding: 0; margin: 70px 0 0; border-top: 1px solid var(--line); }
.lp-blur li { display: grid; grid-template-columns: 140px 1fr; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line);
  font-size: clamp(24px, 2.8vw, 38px); letter-spacing: -.03em; line-height: 1.2; }
.lp-blur li:nth-child(2) { color: #5f5e58; }
.lp-blur li:nth-child(3) { color: #86847c; filter: blur(.5px); }
.lp-when { font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--label-light); filter: none; }
.lp-turn { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.3; letter-spacing: -.025em; max-width: 25ch; margin: 70px 0 0 auto; }
.lp-turn em { font-style: normal; color: var(--orange-deep); }
.lp-turn em + em { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }

/* Feature rows: copy on one side, the phone on the other, alternating. */
.lp-feature { display: grid; grid-template-columns: 1fr auto; gap: 90px; align-items: center; padding-top: 110px; padding-bottom: 110px;
  border-top: 1px solid var(--line); }
.lp-feature.flip .lp-feature-copy { order: 2; }
.lp-feature h2 { font-size: clamp(36px, 4.3vw, 60px); line-height: 1.04; letter-spacing: -.045em; margin: 20px 0 24px; }
.lp-feature-copy > p:not(.lp-label) { color: var(--muted); max-width: 31em; }
.lp-feature-copy .lp-feeling { color: var(--ink); font-size: 21px; font-weight: 500; letter-spacing: -.015em; line-height: 1.4;
  margin-top: 30px; padding-left: 18px; border-left: 2px solid var(--orange); }
.lp-feature .iphone { --w: 290px; margin: 0 40px; }
.lp-feature .iphone::before, .lp-feature .iphone::after { content: ''; position: absolute; z-index: -1; left: 50%; top: 50%; border-radius: 50%;
  transform: translate(-50%, -50%); }
.lp-feature .iphone::before { width: 520px; height: 520px; border: 1px solid var(--line); }
.lp-feature .iphone::after { width: 400px; height: 400px; border: 1px dashed #d2d0c8; }
.lp-features { position: relative; z-index: 0; overflow: hidden; }
.lp-ticks { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--line); font-size: 15px; }
.lp-ticks li { padding: 14px 0 14px 28px; border-bottom: 1px solid var(--line); position: relative; }
.lp-ticks li::before { content: '↗'; position: absolute; left: 0; color: var(--orange-deep); }

.lp-download { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 34px; padding-bottom: 34px;
  border-top: 1px solid var(--line); }
.lp-download p { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: -.02em; }

.lp-confidence { display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px; padding-top: 110px; padding-bottom: 120px; border-top: 1px solid var(--line); }
.lp-confidence h2 { font-size: clamp(36px, 4.3vw, 60px); line-height: 1.04; letter-spacing: -.045em; margin: 20px 0 0; }
.lp-facts { margin: 0; border-top: 1px solid var(--ink); }
.lp-facts > div { display: grid; grid-template-columns: 230px 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.lp-facts dt { font-weight: 600; font-size: 16px; }
.lp-facts dd { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* Calculator band */
.lp-calc { background: var(--night); color: var(--night-text); padding: 120px 0; }
.lp-calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.lp-calc .lp-label { color: var(--orange); }
.lp-calc h2 { font-size: clamp(40px, 5vw, 70px); line-height: 1.02; letter-spacing: -.05em; margin: 20px 0 24px; }
.lp-calc h2 span { color: var(--orange); }
.lp-calc-intro { color: var(--night-muted); max-width: 28em; }
.lp-meter { border-left: 1px solid var(--night-line); padding-left: 56px; }
.lp-meter label { font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--night-muted); }
.lp-big { display: flex; align-items: baseline; gap: 12px; font-size: clamp(64px, 7vw, 100px); font-weight: 500; letter-spacing: -.05em;
  line-height: 1; margin: 18px 0 8px; font-variant-numeric: tabular-nums; }
.lp-big small { font-size: 16px; font-weight: 400; letter-spacing: 0; color: var(--night-muted); }
.lp-meter input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 2px; margin: 26px 0 14px; border-radius: 2px;
  background: linear-gradient(90deg, var(--orange) var(--fill, 18%), #3b3b37 var(--fill, 18%)); }
.lp-meter input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--night);
  border: 2px solid var(--orange); cursor: grab; }
.lp-meter input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--night); border: 2px solid var(--orange); cursor: grab; }
.lp-range { display: flex; justify-content: space-between; font-size: 12px; color: var(--night-muted); }
.lp-meter dl { margin: 34px 0 0; }
.lp-meter dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; border-top: 1px solid var(--night-line); }
.lp-meter dt { font-size: 14px; color: var(--night-muted); }
.lp-meter dd { margin: 0; font-size: 26px; font-variant-numeric: tabular-nums; }
.lp-meter .lp-value dd { color: var(--orange); font-size: 46px; font-weight: 500; letter-spacing: -.03em; }
.lp-calc .lp-fine { color: #8f8d86; line-height: 1.6; }

/* Pricing and FAQ use the shared styles. */
.lp .pricing { padding-top: 120px; }
.lp .section-head h2, .lp .faq h2 { letter-spacing: -.045em; }

/* Closing band */
.lp-end { background: var(--night); color: var(--night-text); overflow: hidden; padding-top: 110px; }
.lp-end-grid { display: grid; grid-template-columns: 1fr auto; gap: 60px; align-items: end; }
.lp-end-grid > div { padding-bottom: 110px; }
.lp-end h2 { font-size: clamp(40px, 5vw, 72px); line-height: 1.02; letter-spacing: -.05em; margin: 0 0 22px; }
.lp-end h2 span { color: var(--orange); }
.lp-end p { color: var(--night-muted); margin: 0 0 30px; }
.lp-end .lp-fine { margin-top: 16px; }
.lp-end .iphone { --w: 320px; margin: 0 40px -300px 0; }

/* Scroll reveal, added by the page script only when motion is allowed. */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.lp-blur li.reveal:nth-child(3).in { opacity: .9; }

@media (max-width: 1080px) {
  .lp-hero-art .front { --w: 260px; }
  .lp-hero-art .back { --w: 236px; }
  .lp-hero-art { height: 650px; }
  .lp-feature { gap: 40px; }
  .lp-feature .iphone { --w: 260px; }
}
@media (max-width: 900px) {
  .lp-hero-grid { grid-template-columns: 1fr; min-height: 0; padding-top: 30px; }
  .lp-hero-art { width: 100%; max-width: 520px; margin: 10px auto 0; height: 670px; }
  .lp-hero-art .front { --w: 270px; left: 0; }
  .lp-hero-art .back { --w: 244px; }
  .lp-readout .wrap { flex-wrap: wrap; justify-content: flex-start; gap: 10px 30px; }
  .lp-later { padding-top: 90px; padding-bottom: 90px; }
  .lp-feature { grid-template-columns: 1fr; padding-top: 80px; padding-bottom: 80px; justify-items: center; }
  .lp-feature-copy { justify-self: stretch; }
  .lp-feature.flip .lp-feature-copy { order: 0; }
  .lp-feature .iphone { margin: 20px 0 0; }
  .lp-confidence, .lp-calc-grid { grid-template-columns: 1fr; gap: 40px; }
  .lp-meter { border-left: 0; padding-left: 0; border-top: 1px solid var(--night-line); padding-top: 34px; }
  .lp-calc { padding: 90px 0; }
  .lp-end-grid { grid-template-columns: 1fr; justify-items: center; gap: 0; }
  .lp-end-grid > div { padding-bottom: 60px; justify-self: stretch; }
  .lp-end .iphone { margin: 0 0 -280px; }
}
@media (max-width: 650px) {
  .lp-hero-art { height: 500px; }
  .lp-hero-art .front { --w: 210px; }
  .lp-hero-art .back { --w: 188px; top: 80px; }
  .lp-callout { display: none; }
  .lp-lede { font-size: 16px; }
  .lp-readout .wrap { flex-direction: column; gap: 8px; }
  .lp-later { padding-top: 70px; padding-bottom: 70px; }
  .lp-blur { margin-top: 44px; }
  .lp-blur li { grid-template-columns: 1fr; gap: 6px; padding: 20px 0; }
  .lp-turn { margin-top: 44px; }
  .lp-feature { padding-top: 64px; padding-bottom: 64px; }
  .lp-feature .iphone { --w: 240px; }
  .lp-feature .iphone::before { width: 360px; height: 360px; }
  .lp-feature .iphone::after { width: 290px; height: 290px; }
  .lp-download { flex-direction: column; align-items: flex-start; }
  .lp-download p { font-size: 19px; }
  .lp-confidence { padding-top: 64px; padding-bottom: 70px; }
  .lp-facts > div { grid-template-columns: 1fr; gap: 6px; }
  .lp-meter .lp-value dd { font-size: 38px; }
  .lp .pricing { padding-top: 70px; }
  .lp-end { padding-top: 70px; }
  .lp-end .iphone { --w: 260px; margin-bottom: -230px; }
}
@media (prefers-reduced-motion: reduce) {
  .pulse::after, .lp-hero-art .iphone { animation: none; }
  .lp-route path { animation: none; stroke-dashoffset: 0; }
}
