/* The Lejo public site.

   Structure follows the reference the client gave (uber.com): a wide white
   page, a two-column hero, three cards naming who the site is for, feature
   blocks that alternate image and text down the page, a dark band for
   drivers, and a deep footer. Confident and plain rather than clever -- the
   sophistication is in the spacing, the type sizes and the restraint.

   The palette is Lejo's own, sampled from logo-mark.png: charcoal #3B4547 and
   gold #D1A333, with the cream the legal pages already use as the alternate
   band. White carries most of the page, the way the reference does.

   Every image on this page is a real capture from the running apps. */

:root {
  --bg:        #FFFFFF;
  --bg-alt:    #F5F1E9;   /* the brand cream */
  --bg-tint:   #FBF7EF;
  --dark:      #2C3436;
  --dark-2:    #232A2B;

  --ink:       #16191A;
  --ink-2:     #5A6163;
  --ink-3:     #8A9092;
  --on-dark:   #E8E5DE;
  --on-dark-2: #A9B0B0;

  --gold:      #D1A333;
  --gold-hi:   #E0B44A;
  --gold-ink:  #8A6A0E;

  --line:      #E4DFD4;
  --line-dark: #46504F;

  --shell:     1200px;
  --gut:       clamp(20px, 4.5vw, 44px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; }

.shell { max-width: var(--shell); margin: 0 auto; padding-inline: var(--gut); }
:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 3px; }

.skip {
  position: absolute; left: -9999px; z-index: 100;
  background: var(--dark); color: #fff; padding: 10px 16px; text-decoration: none;
}
.skip:focus { left: 0; top: 0; }

/* -------------------------------------------------------------------- type */

h1, h2, h3 {
  margin: 0;
  font-family: "Archivo", "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.032em;
  line-height: 1.06;
  text-wrap: balance;
}

h1 { font-size: clamp(2.7rem, 5.6vw, 4.2rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.2rem, 1.6vw, 1.4rem); letter-spacing: -0.024em; line-height: 1.18; }

p { margin: 0; }
.lede { font-size: clamp(1.06rem, 1.35vw, 1.22rem); color: var(--ink-2); max-width: 34rem; }
.small { font-size: 0.9rem; color: var(--ink-3); }

/* -------------------------------------------------------------------- nav */

.bar {
  position: sticky; top: 0; z-index: 60;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.bar-in {
  display: flex; align-items: center; gap: 26px; height: 70px;
  max-width: var(--shell); margin: 0 auto; padding-inline: var(--gut);
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.brand b {
  font-family: "Archivo", sans-serif; font-size: 1.3rem; font-weight: 700;
  letter-spacing: -0.045em; color: var(--ink);
}
.brand i { font-style: normal; color: var(--gold); }

.bar nav { display: flex; align-items: center; gap: 4px; }
.bar nav a {
  color: var(--ink); text-decoration: none; font-size: 0.95rem; font-weight: 500;
  padding: 8px 13px; border-radius: 6px;
}
.bar nav a:hover { background: var(--bg-alt); }
.bar .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
@media (max-width: 940px) { .bar nav { display: none; } }

/* -------------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 26px; border-radius: 7px;
  font-family: "Archivo", sans-serif; font-weight: 600; font-size: 1rem;
  letter-spacing: -0.018em; text-decoration: none; border: 1px solid transparent;
  cursor: pointer; transition: background .15s ease, border-color .15s ease;
}
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: var(--dark-2); }
.btn-gold { background: var(--gold); color: var(--dark-2); }
.btn-gold:hover { background: var(--gold-hi); }
.btn.small { padding: 10px 17px; font-size: 0.92rem; border-radius: 6px; }

/* A link that reads as one, ruled in gold underneath. */
.more {
  display: inline-block; margin-top: 22px;
  font-family: "Archivo", sans-serif; font-weight: 600; font-size: 1rem;
  letter-spacing: -0.018em; color: var(--ink);
  text-decoration: none; border-bottom: 2px solid var(--gold); padding-bottom: 2px;
}
.more:hover { border-bottom-color: var(--ink); }
.on-dark .more { color: #fff; }
.on-dark .more:hover { border-bottom-color: #fff; }

/* -------------------------------------------------------------------- stores

   Original glyphs, not Apple's or Google's supplied badge artwork -- those are
   trademarked and their guidelines require the real asset. They replace these
   on the day the listings publish and the links stop being placeholders. */

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 11px 20px 11px 16px; border-radius: 7px;
  background: var(--dark); color: #fff; text-decoration: none;
  transition: background .15s ease;
}
.store:hover { background: var(--dark-2); }
.store svg { width: 22px; height: 22px; flex: none; }
.store span { display: block; line-height: 1.16; }
.store .k { font-size: 0.64rem; letter-spacing: .07em; text-transform: uppercase; color: #A9B0B0; }
.store .v { font-family: "Archivo", sans-serif; font-size: 1.02rem; font-weight: 600; letter-spacing: -0.025em; }
.store[aria-disabled="true"] { opacity: .6; pointer-events: none; }
.on-dark .store { background: #fff; color: var(--dark-2); }
.on-dark .store:hover { background: #EFEBE3; }
.on-dark .store .k { color: #6E7576; }

/* -------------------------------------------------------------------- hero */

.hero { padding: clamp(46px, 6vw, 84px) 0 clamp(52px, 6vw, 92px); }
.hero-grid {
  display: grid; align-items: center; gap: clamp(36px, 5vw, 72px);
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
}
.hero h1 { max-width: 13ch; }
.hero .lede { margin-top: 24px; }
.hero .stores { margin-top: 34px; }
.hero .small { margin-top: 14px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------------- art

   Captures sit on a tinted panel rather than floating on the page, with the
   back screen lifted, so a block reads as a product photograph instead of a
   screenshot somebody pasted in. */

.art {
  background: var(--bg-tint);
  border-radius: 14px;
  padding: clamp(24px, 3.6vw, 46px) clamp(18px, 2.6vw, 38px);
  display: flex; justify-content: center; align-items: flex-end;
  gap: clamp(14px, 2vw, 26px);
  overflow: hidden;
}
.alt .art { background: #fff; }
.on-dark .art { background: #232A2B; }
.art .phone { flex: 0 0 clamp(140px, 17vw, 196px); }
.art .phone:first-child { margin-bottom: clamp(16px, 2.4vw, 32px); }
/* A block with one screen in it gets a smaller one -- at full column width a
   single device is 600px tall and swamps the paragraph next to it. */
.art:has(.phone:only-child) .phone { flex-basis: clamp(150px, 15vw, 178px); }

.phone {
  border-radius: 20px; background: var(--dark); padding: 5px;
  box-shadow: 0 2px 6px rgba(22,25,26,.08), 0 24px 48px -26px rgba(22,25,26,.45);
}
/* No aspect-ratio and no object-fit: every capture is a real 390x844 screen,
   so its own proportions are the right ones. Forcing a ratio and covering
   cropped the sides of each one. */
.phone img {
  width: 100%; height: auto; border-radius: 16px;
  background: var(--bg-alt);
}

/* -------------------------------------------------------------------- sections */

section { padding: clamp(58px, 7vw, 108px) 0; }
.alt { background: var(--bg-alt); }
.on-dark { background: var(--dark); color: var(--on-dark); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: #fff; }
.on-dark p { color: var(--on-dark-2); }

.section-head { max-width: 44rem; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head p { margin-top: 16px; color: var(--ink-2); }
.on-dark .section-head p { color: var(--on-dark-2); }

/* -------------------------------------------------------------------- cards */

.cards { display: grid; gap: clamp(18px, 2.4vw, 28px); grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; max-width: 34rem; } }

.card {
  background: var(--bg-alt); border-radius: 12px; padding: 28px 26px 26px;
  display: flex; flex-direction: column;
}
.alt .card { background: #fff; }
.card .glyph {
  width: 42px; height: 42px; margin-bottom: 18px;
  display: grid; place-items: center; border-radius: 9px;
  background: var(--gold); color: var(--dark-2);
}
.card .glyph svg { width: 22px; height: 22px; fill: currentColor; }
.card h3 { margin-bottom: 9px; }
.card p { color: var(--ink-2); font-size: 0.97rem; flex: 1; }
.card .more { margin-top: 18px; align-self: flex-start; font-size: 0.95rem; }

/* -------------------------------------------------------------------- feature */

.feature {
  display: grid; align-items: center; gap: clamp(32px, 5vw, 76px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.feature + .feature { margin-top: clamp(56px, 7vw, 104px); }
/* Alternate blocks lead with the art, so the eye zig-zags down the page. */
.feature.flip .feature-art { order: -1; }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature.flip .feature-art { order: 0; }
}
.feature h2 { font-size: clamp(1.7rem, 2.9vw, 2.4rem); }
.feature > div > p { margin-top: 18px; color: var(--ink-2); font-size: 1.04rem; max-width: 32rem; }
.on-dark .feature > div > p { color: var(--on-dark-2); }

/* Facts under a feature: a name and a value, not bullets with dots. */
.facts { margin: 26px 0 0; padding: 0; list-style: none; }
.facts li {
  padding: 13px 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 14px;
  align-items: baseline; font-size: 0.98rem;
}
@media (max-width: 420px) { .facts li { grid-template-columns: 1fr; gap: 2px; } }
.on-dark .facts li { border-top-color: var(--line-dark); }
.facts li b { font-weight: 600; }
.facts li span { color: var(--ink-2); }
.on-dark .facts li span { color: var(--on-dark-2); }

/* -------------------------------------------------------------------- strip */

.strip { display: grid; gap: clamp(16px, 2.2vw, 26px); grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.strip figure { margin: 0; max-width: 232px; justify-self: center; }
.strip figcaption { margin-top: 14px; font-size: 0.93rem; color: var(--ink-2); }
.strip figcaption b {
  display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px;
  font-family: "Archivo", sans-serif; letter-spacing: -0.018em; font-size: 1rem;
}
.on-dark .strip figcaption { color: var(--on-dark-2); }
.on-dark .strip figcaption b { color: #fff; }
.on-dark .phone { background: #171D1E; }

.tabs {
  display: inline-flex; border: 1px solid var(--line); border-radius: 7px;
  overflow: hidden; margin-bottom: clamp(26px, 3vw, 36px);
}
.on-dark .tabs { border-color: var(--line-dark); }
.tabs button {
  border: 0; background: transparent; cursor: pointer; font: inherit;
  font-size: 0.95rem; font-weight: 500; color: var(--ink-2); padding: 10px 22px;
}
.on-dark .tabs button { color: var(--on-dark-2); }
.tabs button + button { border-left: 1px solid var(--line); }
.on-dark .tabs button + button { border-left-color: var(--line-dark); }
.tabs button[aria-selected="true"] { background: var(--gold); color: var(--dark-2); font-weight: 600; }

/* -------------------------------------------------------------------- contact */

.contact-grid {
  display: grid; gap: clamp(32px, 5vw, 68px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.6fr);
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

form.contact { display: grid; gap: 16px; }
.pair { display: grid; gap: 16px; }
@media (min-width: 540px) { .pair { grid-template-columns: 1fr 1fr; } }

label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 7px; }
label .opt { font-weight: 400; color: var(--ink-3); }

input, textarea, select {
  width: 100%; font: inherit; font-size: 0.98rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 13px 14px;
  transition: border-color .14s ease, box-shadow .14s ease;
}
textarea { resize: vertical; min-height: 132px; }
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(209,163,51,.22);
}
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #A5241C; }

/* Bots fill in what people cannot see. */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.note { font-size: 0.9rem; min-height: 1.2em; }
.note.ok  { color: #1C6A4C; }
.note.bad { color: #A5241C; }

.detail { padding: 18px 0; border-top: 1px solid var(--line); }
.detail:first-child { border-top: 0; padding-top: 0; }
.detail dt { font-size: 0.82rem; color: var(--ink-3); margin-bottom: 4px; }
.detail dd { margin: 0; font-size: 1.05rem; font-weight: 500; }
.detail dd a { text-decoration: none; }
.detail dd a:hover { text-decoration: underline; }

/* -------------------------------------------------------------------- social */

.social { display: flex; gap: 10px; }
.social a {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px;
  border: 1px solid var(--line); color: var(--ink-2);
  transition: border-color .15s ease, color .15s ease;
}
.social a:hover { border-color: var(--ink); color: var(--ink); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
footer .social a { border-color: var(--line-dark); color: var(--on-dark-2); }
footer .social a:hover { border-color: #fff; color: #fff; }

/* -------------------------------------------------------------------- footer */

footer { background: var(--dark); color: var(--on-dark-2); padding: clamp(52px, 6vw, 80px) 0 34px; }
footer .brand b { color: #fff; }
footer a { color: var(--on-dark); text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }

.foot { display: grid; gap: 40px; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .foot { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .foot > :first-child { grid-column: 1 / -1; } }

footer h4 {
  margin: 0 0 14px; font-family: "Archivo", sans-serif;
  font-size: 0.95rem; font-weight: 600; letter-spacing: -0.015em; color: #fff;
}
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin-bottom: 10px; font-size: 0.95rem; }

.foot-end {
  margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: space-between;
  align-items: center; font-size: 0.88rem; color: #8C9394;
}

/* -------------------------------------------------------------------- motion

   Blocks settle as they arrive, from a visible resting state: a page parked
   at opacity 0 waiting on an observer shows nothing to a link preview, and
   nothing at all if the observer never runs. */
@media (prefers-reduced-motion: no-preference) {
  .settle {
    animation: settle .55s cubic-bezier(.2,.7,.3,1) both;
    animation-timeline: view();
    animation-range: entry 0% entry 32%;
  }
}
@keyframes settle {
  from { opacity: .4; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
