/* The landing page at kakibill.com/ (landing-page plan Task 3; design docs/plans/landing-page-design.md 4.3).
   Layout and tokens follow the approved mockups (docs/design/landing/landing-desktop.html, version 6, and the phone frame of
   landing-phone-and-signin.html), scaled from their thumbnail sizes to real ones. Light only. Every file this sheet loads is
   under /site/ (the page's CSP is style-src 'self', font-src 'self', img-src 'self'). Breakpoints: 720 px and 1024 px. */

/* Fonts: the five committed weights only, so the browser never synthesizes one (the mockups' 900 and 700 map to 800, 500 to 400). */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/site/fonts/archivo-latin-800-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/site/fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/site/fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/site/fonts/ibm-plex-mono-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/site/fonts/caveat-latin-700-normal.woff2') format('woff2');
}

:root {
  color-scheme: light;
  /* The mockups' tokens. */
  --navy: hsl(220 15% 8%);
  --navy2: hsl(220 15% 12%);
  --line: hsl(220 15% 20%);
  --ink: hsl(220 15% 12%);
  --amber: hsl(35 100% 65%);
  --amber-text: hsl(35 75% 34%); /* amber text on a light background */
  --cream: hsl(35 60% 97%);
  --mist: hsl(220 14% 96%);
  --body: hsl(220 10% 30%);
  --on-navy: hsl(220 8% 72%);
  --on-navy-strong: #fafafa;
  --rule: hsl(220 13% 88%);
  --hairline: rgb(127 127 127 / 0.18);
  --muted: hsl(220 8% 40%);
  --green-text: hsl(152 55% 29%);
  --green-on-dark: hsl(152 55% 55%);

  --font-sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Archivo', 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --font-hand: 'Caveat', 'Bradley Hand', cursive;

  --gutter: 16px;
  --section-y: 48px;
  --radius: 14px;
}

@media (min-width: 720px) {
  :root {
    --gutter: 32px;
    --section-y: 72px;
  }
}

@media (min-width: 1024px) {
  :root {
    --section-y: 88px;
  }
}

/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: clip;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--ink);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.how :focus-visible,
.sendoff :focus-visible,
.footer :focus-visible {
  outline-color: var(--amber);
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.hand {
  font-family: var(--font-hand);
  font-weight: 700;
}

.mono {
  font-family: var(--font-mono);
  font-weight: 600;
}

.tag {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.tag--amber {
  color: var(--amber);
}

.amber-text {
  color: var(--amber-text);
}

.amber-on-dark {
  color: var(--amber);
}

/* Skip link: off-screen until focused. */
.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
}

.btn--small {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 15px;
}

.btn--ink {
  background: var(--ink);
  color: #fff;
}

.btn--ink:hover {
  background: hsl(220 15% 22%);
}

.btn--amber {
  background: var(--amber);
  color: #111;
}

.btn--amber:hover {
  background: hsl(35 100% 72%);
}

/* Lockup: icon plus the two-tone wordmark. */
.lockup {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.lockup__icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.2);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.wordmark__bill {
  color: var(--amber-text);
}

.lockup--dark .lockup__icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.lockup--dark .wordmark {
  font-size: 26px;
  color: var(--on-navy-strong);
}

.lockup--dark .wordmark__bill {
  color: var(--amber);
}

/* Nav: wordmark, then Sign in and Start a trip on a phone; How it works, Pricing and FAQ join them from 720 px. */
.nav {
  background: var(--cream);
  color: var(--ink);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 15px;
}

.nav__links a:not(.btn) {
  text-decoration: none;
  padding: 8px 0;
}

.nav__links a:not(.btn):hover {
  text-decoration: underline;
}

.nav__anchor {
  display: none;
}

@media (min-width: 720px) {
  .nav__links {
    gap: 24px;
  }

  .nav__anchor {
    display: inline;
  }
}

@media (max-width: 359px) {
  .nav__links {
    gap: 10px;
  }

  .nav .btn--small {
    padding: 8px 12px;
  }
}

/* Hero */
.hero {
  background: var(--cream);
  padding: 20px 0 32px;
  overflow: hidden;
}

.hero__kicker {
  display: inline-block;
  font-size: 22px;
  line-height: 1.2;
  color: var(--amber-text);
  transform: rotate(-2deg);
  transform-origin: left center;
}

.hero__title {
  margin: 8px 0 14px;
  font-size: clamp(34px, 9vw, 48px);
  line-height: 1.05;
}

.hero__sub {
  max-width: 36em;
  margin-bottom: 20px;
  font-size: 16px;
}

.cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.cta__badge {
  display: inline-flex;
  justify-content: center;
  border-radius: 8px;
}

.cta__badge img {
  width: auto;
  height: 54px;
}

/* On an iPhone or iPad (class set by site.js), the App Store badge leads. */
html.ios .cta__badge {
  order: -1;
}

@media (min-width: 720px) {
  .cta {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .cta__badge img {
    height: 48px;
  }
}

.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 16px;
  margin-top: 14px;
  list-style: none;
  font-size: 14px;
}

.trust__tick {
  color: var(--green-text);
  font-weight: 600;
}

@media (min-width: 720px) {
  .trust {
    justify-content: flex-start;
  }
}

/* The hero's photos and chat: two polaroids and two bubbles in a box of their own. */
.hero__art {
  position: relative;
  height: 250px;
  margin-top: 24px;
}

.polaroid {
  position: absolute;
  width: 150px;
  margin: 0;
  padding: 6px 6px 30px;
  background: #fff;
  box-shadow: 0 6px 16px rgb(0 0 0 / 0.18);
}

.polaroid img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: 2px;
}

.polaroid figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  text-align: center;
  font-size: 19px;
  line-height: 1.2;
  color: #333;
}

.polaroid--coffee {
  left: 4%;
  top: 4px;
  transform: rotate(-6deg);
}

.polaroid--lake {
  right: 4%;
  top: 22px;
  transform: rotate(5deg);
}

.bubble {
  position: absolute;
  max-width: 260px;
  padding: 7px 13px;
  border-radius: 16px 16px 16px 4px;
  background: #fff;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.08);
  font-size: 14px;
  line-height: 1.35;
  color: var(--ink);
}

.bubble--taxi {
  left: 6%;
  bottom: 44px;
  transform: rotate(-2deg);
}

.bubble--amber {
  right: 4%;
  bottom: 4px;
  background: var(--amber);
  color: #111;
}

@media (min-width: 720px) {
  .hero__art {
    max-width: 560px;
    height: 300px;
    margin: 28px auto 0;
  }

  .polaroid {
    width: 190px;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding: 40px 0 56px;
  }

  .hero__inner {
    display: grid;
    grid-template-columns: 58% 1fr;
    gap: 32px;
    align-items: center;
  }

  .hero__art {
    width: 100%;
    max-width: none;
    height: 380px;
    margin: 0;
  }

  .polaroid {
    width: 200px;
  }

  .polaroid--coffee {
    left: 0;
    top: 20px;
  }

  .polaroid--lake {
    right: 0;
    top: 56px;
  }

  .bubble--taxi {
    left: 14%;
    bottom: 70px;
  }

  .bubble--amber {
    right: 2%;
    bottom: 22px;
  }
}

/* The photo strip with the 16-currency ticker. */
.strip {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.strip__photo {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 36%;
}

.ticker {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  background: rgb(17 20 26 / 0.82);
  color: #fafafa;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

.ticker__viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

/* The ticker moves only once site.js has run (class js), so with JavaScript off it is a still line of text and nobody is left
   without the Pause button (WCAG 2.2.2). Pause sets class ticker-paused on <html>. */
.ticker__track {
  display: flex;
  width: max-content;
}

html.js .ticker__track {
  animation: ticker 70s linear infinite;
}

html.js.ticker-paused .ticker__track {
  animation-play-state: paused;
}

.ticker__toggle {
  display: none;
  flex: none;
  min-width: 64px;
  min-height: 28px;
  margin: 0 8px;
  padding: 3px 10px;
  border: 1px solid rgb(250 250 250 / 0.5);
  border-radius: 999px;
  background: rgb(17 20 26 / 0.9);
  color: #fafafa;
  font: inherit;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
}

.ticker__toggle:hover {
  border-color: #fafafa;
}

.ticker__toggle:focus-visible {
  outline-color: var(--amber);
}

html.js .ticker__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ticker__list {
  padding: 8px 0.6em 8px 0;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (min-width: 720px) {
  .strip {
    height: 260px;
  }

  .ticker {
    font-size: 15px;
  }
}

/* Outcome: the line on the left, the settle-up card on the right. */
.outcome {
  background: var(--mist);
  padding: var(--section-y) 0;
  overflow: hidden;
}

.outcome__title {
  font-size: clamp(32px, 8.5vw, 48px);
  line-height: 1.04;
}

.outcome__square {
  display: inline-block;
  margin-top: 2px;
  font-size: 1.05em;
  letter-spacing: 0;
}

.outcome__copy p {
  max-width: 30em;
  margin-top: 14px;
}

.settle-wrap {
  position: relative;
  margin-top: 28px;
  padding-top: 14px;
}

.settle {
  padding: 16px 18px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 20px rgb(0 0 0 / 0.08);
  transform: rotate(1.5deg);
}

.settle__tag {
  color: var(--muted);
}

.settle__rows {
  margin-top: 6px;
  list-style: none;
}

.settle__rows li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink);
}

.settle__rows li:last-child {
  border-bottom: 0;
}

.settle__ok {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--green-text);
}

.sticker {
  position: absolute;
  right: 0;
  top: 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--amber);
  color: #111;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 3px 8px rgb(0 0 0 / 0.12);
  transform: rotate(8deg);
}

@media (min-width: 720px) {
  .outcome__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
  }

  .settle-wrap {
    margin-top: 0;
  }

  .sticker {
    right: -8px;
  }
}

/* How it works: three tiles, then the reel in a phone-shaped frame and the three steps. */
.how {
  background: var(--navy);
  color: var(--on-navy);
  padding: var(--section-y) 0;
}

.how__title {
  margin: 6px 0 24px;
  font-size: clamp(26px, 6vw, 36px);
  color: var(--on-navy-strong);
}

.tiles {
  display: grid;
  gap: 14px;
  list-style: none;
}

.tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--navy2);
}

.tile__photo {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: 9px;
  margin-bottom: 12px;
}

.tile__photo--street {
  object-position: 72% 88%;
}

.tile h3 {
  font-size: 19px;
  line-height: 1.25;
  color: var(--on-navy-strong);
}

.tile p {
  margin: 6px 0 12px;
}

.chip {
  display: inline-block;
  margin-top: auto;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.chip--amber {
  background: hsl(35 100% 65% / 0.15);
  color: var(--amber);
}

.chip--green {
  background: hsl(152 55% 45% / 0.15);
  color: var(--green-on-dark);
}

.chip--plain {
  background: rgb(255 255 255 / 0.08);
  color: var(--on-navy-strong);
}

@media (min-width: 720px) {
  .tiles {
    grid-template-columns: repeat(3, 1fr);
  }

  .tile__photo {
    aspect-ratio: 16 / 9;
  }
}

.reel {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
}

.reel__phone {
  flex: none;
  width: 150px;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 5px solid #000;
  border-radius: 24px;
  background: #000;
  box-shadow: 0 0 0 1px var(--line), 0 10px 28px rgb(0 0 0 / 0.4);
}

.reel__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel__title {
  font-weight: 600;
  color: var(--amber);
}

.reel__steps-tag {
  margin-top: 16px;
}

.steps {
  margin-top: 6px;
  padding-left: 1.3em;
}

.steps li {
  padding: 2px 0;
}

@media (min-width: 720px) {
  .reel {
    gap: 36px;
    margin-top: 40px;
  }

  .reel__phone {
    width: 220px;
    border-width: 7px;
    border-radius: 32px;
  }

  .reel__text {
    font-size: 17px;
  }
}

/* Pricing: plan names, no amounts. */
.pricing {
  background: #fff;
  padding: var(--section-y) 0;
  text-align: center;
}

.pricing__title {
  font-size: clamp(26px, 6vw, 36px);
}

.pricing__lead {
  margin: 6px 0 24px;
}

.plans {
  display: grid;
  gap: 12px;
  list-style: none;
  text-align: left;
}

.plan {
  padding: 16px 18px;
  border: 1px solid var(--rule);
  border-radius: 12px;
}

.plan--pass {
  border: 2px solid var(--amber);
}

.plan__name {
  margin-bottom: 4px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0;
}

.pricing__foot {
  margin-top: 22px;
}

.amber-link {
  color: var(--amber-text);
  font-weight: 600;
  text-decoration: none;
}

.amber-link:hover {
  text-decoration: underline;
}

.pricing__dot {
  display: none;
  margin: 0 8px;
}

.pricing__note {
  display: block;
  margin-top: 6px;
}

@media (min-width: 720px) {
  .plans {
    grid-template-columns: repeat(3, 1fr);
    max-width: 960px;
    margin: 0 auto;
  }

  .pricing__dot {
    display: inline;
  }

  .pricing__note {
    display: inline;
    margin-top: 0;
  }
}

/* Questions: details and summary, so they open without JavaScript. */
.faq {
  background: var(--cream);
  padding: var(--section-y) 0;
}

.faq__title {
  margin-bottom: 12px;
  font-size: clamp(24px, 5.5vw, 32px);
}

.faq details {
  border-bottom: 1px solid var(--hairline);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  flex: none;
  font-family: var(--font-mono);
  font-size: 20px;
  line-height: 1;
  color: var(--amber-text);
}

.faq details[open] summary::after {
  content: '\2212';
}

.faq details p {
  padding-bottom: 16px;
}

.faq__photo {
  width: 100%;
  height: 200px;
  margin-top: 24px;
  object-fit: cover;
  object-position: 60% 40%;
  border-radius: var(--radius);
  box-shadow: 0 6px 16px rgb(0 0 0 / 0.15);
}

@media (min-width: 1024px) {
  .faq__inner {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 48px;
    align-items: start;
  }

  .faq__photo {
    height: 270px;
    margin-top: 56px;
  }
}

/* Send-off and footer, on navy. */
.sendoff {
  background: var(--navy);
  color: var(--on-navy);
  padding: var(--section-y) 0 28px;
  text-align: center;
}

.sendoff__title {
  margin: 12px 0 14px;
  font-size: clamp(30px, 7.5vw, 44px);
  line-height: 1.08;
  color: var(--on-navy-strong);
}

.sendoff__sub {
  margin-bottom: 22px;
}

.cta--center {
  max-width: 420px;
  margin: 0 auto;
}

@media (min-width: 720px) {
  .cta--center {
    max-width: none;
    justify-content: center;
  }
}

.footer {
  background: var(--navy);
  color: var(--on-navy);
  padding: 20px 0 36px;
  text-align: center;
  font-size: 14px;
}

.footer a {
  color: var(--on-navy-strong);
}

/* Less motion: the ticker stands still, and anchor links jump. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  /* Stopped for good: no animation and no Pause button (there is nothing to pause). */
  .ticker__track,
  html.js .ticker__track {
    animation: none;
  }

  html.js .ticker__toggle {
    display: none;
  }
}
