/*
 * Lite Mind website styles.
 *
 * The palette and type are the app's own: the newsprint surfaces and the fox orange
 * come from app/src/main/java/com/lite_mind/ui/theme/Color.kt, and Spectral is the
 * face the app bundles in app/src/main/res/font. Keep the two in step.
 */

:root {
  /* SurfaceColors */
  --bg: #FFF1E5;
  --surface: #FFF9F4;
  --sunken: #F9E4D3;
  --border: #EFDCCA;
  --ink: #2B2521;

  /* TextColors */
  --text: #262220;
  --text-2: #6B615A;
  --text-3: #8A7C72;
  --on-ink: #FFF9F4;

  /* AccentColors */
  --brand: #DC4F2D;
  --brand-deep: #B93C1E;
  --green: #3D9A6E;

  --serif: "Spectral", ui-serif, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --measure: 34rem;
  --page: 68rem;
  --gutter: 1rem;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(43, 37, 33, .05), 0 12px 32px rgba(43, 37, 33, .07);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #211C19;
    --surface: #2B2521;
    --sunken: #372F2A;
    --border: #413832;
    --ink: #171310;
    --text: #F4E9E0;
    --text-2: #C3B4A8;
    --text-3: #9C8D82;
    --on-ink: #FFF9F4;
    --brand: #F2704D;
    --brand-deep: #DC4F2D;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
  }
}

:root[data-theme="dark"] {
  --bg: #211C19;
  --surface: #2B2521;
  --sunken: #372F2A;
  --border: #413832;
  --ink: #171310;
  --text: #F4E9E0;
  --text-2: #C3B4A8;
  --text-3: #9C8D82;
  --on-ink: #FFF9F4;
  --brand: #F2704D;
  --brand-deep: #DC4F2D;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand-deep); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand); }

img { max-width: 100%; display: block; }

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

.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: var(--surface);
  padding: .6rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -.01em;
}
.brand img { width: 30px; height: 30px; }

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.35rem;
}
.nav a {
  color: var(--text-2);
  text-decoration: none;
  font-size: .95rem;
}
.nav a:hover { color: var(--brand); }

@media (max-width: 40rem) {
  .nav .hide-sm { display: none; }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .7rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: .975rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover { background: var(--brand-deep); color: #fff; }

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--text); }

.btn svg { flex: none; }

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

.hero {
  padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(2rem, 5vw, 3.5rem);
}

.hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
@media (min-width: 56rem) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--brand);
}

.hero h1 {
  font-size: clamp(2.35rem, 6.2vw, 3.9rem);
}

.lede {
  font-size: clamp(1.075rem, 2.1vw, 1.2rem);
  color: var(--text-2);
  max-width: var(--measure);
  margin-top: 1.1rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.9rem;
}

.cta-note {
  margin-top: .95rem;
  font-size: .9rem;
  color: var(--text-3);
}

/* ---------------------------------------------------------------- phone */

.phone {
  position: relative;
  margin-inline: auto;
  width: min(280px, 78vw);
  padding: 9px;
  background: var(--ink);
  border-radius: 34px;
  box-shadow: var(--shadow);
}
.phone-screen {
  overflow: hidden;
  border-radius: 26px;
  background: var(--bg);
  /* the screenshots carry their own status bar, so let them set the height */
  display: block;
}
.phone-screen img { width: 100%; height: auto; }

/*
 * The model picker shot is a sheet over a dimmed chat, so most of its top half is
 * scrim. Crop to the bottom of the real screenshot rather than showing a grey slab.
 */
.phone-screen.crop-bottom { aspect-ratio: 1280 / 2120; }
.phone-screen.crop-bottom img {
  height: 100%;
  object-fit: cover;
  object-position: bottom;
}

.hero .phone { width: min(300px, 80vw); }

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

section { scroll-margin-top: 76px; }

.band {
  padding: clamp(3rem, 7vw, 5rem) 0;
  border-top: 1px solid var(--border);
}
.band-surface { background: var(--surface); }

.section-head { max-width: var(--measure); margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.section-head h2 { font-size: clamp(1.7rem, 3.8vw, 2.5rem); }
.section-head p { margin-top: .85rem; color: var(--text-2); }

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

.strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border-block: 1px solid var(--border);
}
@media (min-width: 46rem) {
  .strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.strip div {
  background: var(--bg);
  padding: 1.15rem 1rem;
  text-align: center;
}
.strip dt {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
}
.strip dd {
  margin: .2rem 0 0;
  font-size: .85rem;
  color: var(--text-3);
}

/* ---------------------------------------------------------------- features */

.features {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
}

.feature {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
@media (min-width: 52rem) {
  .feature { grid-template-columns: 1fr 1fr; }
  .feature.reverse .feature-media { order: -1; }
}

.feature h3 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  margin-bottom: .8rem;
}
.feature p { color: var(--text-2); max-width: var(--measure); }

.feature-list {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: grid;
  gap: .5rem;
}
.feature-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-2);
  font-size: .975rem;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--brand);
}

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

.cards {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 46rem) {
  .cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.band-surface .card { background: var(--bg); }

.card h3 {
  font-size: 1.25rem;
  display: flex;
  align-items: baseline;
  gap: .6rem;
  flex-wrap: wrap;
}
.card p { color: var(--text-2); margin-top: .6rem; font-size: .975rem; }

.tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--brand-deep);
  background: var(--sunken);
  border-radius: 999px;
  padding: .2rem .6rem;
}

.spec {
  list-style: none;
  margin: 1.15rem 0 0;
  padding: 1.05rem 0 0;
  border-top: 1px solid var(--border);
  display: grid;
  gap: .45rem;
  font-size: .9rem;
}
/* the model picker screenshot beside the two model cards */
.models-grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: center;
}
@media (min-width: 52rem) {
  .models-grid { grid-template-columns: .8fr 1.2fr; }
}

.spec li { display: flex; justify-content: space-between; gap: 1rem; }
.spec dt, .spec .k { color: var(--text-3); }
.spec .v { color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- steps */

.steps {
  counter-reset: step;
  display: grid;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 46rem) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.steps li {
  counter-increment: step;
  padding-top: 2.9rem;
  position: relative;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
}
.steps h3 { font-size: 1.15rem; margin-bottom: .45rem; }
.steps p { color: var(--text-2); font-size: .975rem; }

/* ---------------------------------------------------------------- pull quote */

.pull {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  line-height: 1.35;
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
  text-wrap: balance;
}
.pull span { color: var(--brand); }

/* ---------------------------------------------------------------- faq */

.faq { max-width: 46rem; }
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 1.05rem 0;
}
.faq details:first-of-type { border-top: 1px solid var(--border); }
.faq summary {
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--brand);
  font-size: 1.4rem;
  font-family: var(--sans);
  line-height: 1;
  flex: none;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p {
  margin-top: .8rem;
  color: var(--text-2);
  max-width: var(--measure);
}

/* ---------------------------------------------------------------- download */

.download {
  text-align: center;
  padding: clamp(3rem, 8vw, 6rem) 0;
}
.download h2 { font-size: clamp(1.9rem, 4.6vw, 3rem); }
.download .lede { margin-inline: auto; }
.download .cta-row { justify-content: center; }

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

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 2.5rem 0 3rem;
  font-size: .92rem;
  color: var(--text-2);
}
.footer-grid {
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 46rem) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.site-footer h4 {
  font-family: var(--serif);
  font-size: .95rem;
  margin: 0 0 .6rem;
  color: var(--text);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--brand); text-decoration: underline; }
.colophon {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: .85rem;
  color: var(--text-3);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  justify-content: space-between;
}

/* ---------------------------------------------------------------- legal pages */

.legal {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem);
}
.legal .doc { max-width: 42rem; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.9rem); }
.legal .updated {
  margin-top: .9rem;
  color: var(--text-3);
  font-size: .9rem;
}
.legal h2 {
  font-size: 1.25rem;
  margin: 2.3rem 0 .65rem;
}
.legal .doc > p { color: var(--text-2); }
.legal .intro {
  font-size: 1.1rem;
  color: var(--text-2);
  margin-top: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.legal ul { color: var(--text-2); padding-left: 1.15rem; }
.legal li { margin-bottom: .4rem; }
.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.15rem 1.35rem;
  margin: 1.75rem 0;
}
.callout p { color: var(--text-2); }
