/* Liftwin website. Colours and type follow the app's design system (Liftwin/Views/DesignSystem.swift). */

:root {
  --background: #f5f5ee;
  --paper: #ffffff;
  --ink: #20251d;
  --muted: #6f7266;
  --line: #e3e3d8;
  --forest: #303d2b;
  --forest-ink: #f1f4e6;
  --forest-muted: #b9c2ad;
  --lime: #d7f76b;
  --on-lime: #1b2017;
  --lime-soft: #e8f4bc;
  --accent: #303d2b;
  --shadow: 0 30px 60px -30px rgba(32, 37, 29, 0.35);
  --rounded: ui-rounded, "SF Pro Rounded", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0f120e;
    --paper: #1a1e17;
    --ink: #eef0e6;
    --muted: #9a9e91;
    --line: #2a3026;
    --forest: #223019;
    --lime-soft: #273219;
    --accent: #d7f76b;
    --shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
  }
}

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

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

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font: 17px/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: var(--paper);
  padding: 8px 14px;
  border-radius: 10px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--background) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(18px);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font: 600 22px/1 var(--rounded);
  letter-spacing: -0.02em;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  gap: 22px;
  font-size: 15px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

/* Type */

.eyebrow {
  font: 700 12px/1.3 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}

h1,
h2,
h3 {
  font-family: var(--rounded);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin: 0;
}

h1 {
  font-size: clamp(44px, 7.4vw, 84px);
}

h2 {
  font-size: clamp(34px, 5vw, 56px);
}

h3 {
  font-size: 21px;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.lead {
  font-size: clamp(18px, 2vw, 21px);
  color: var(--muted);
  max-width: 34em;
  margin: 22px 0 0;
}

/* Hero */

.hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 34px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 24px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--on-lime);
  font: 600 17px/1 var(--rounded);
  text-decoration: none;
}

.pill svg {
  width: 18px;
  height: 18px;
}

.note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--muted);
}

.note svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.phone {
  width: 100%;
  max-width: 330px;
  margin-inline: auto;
  border-radius: 46px;
  border: 8px solid #12150f;
  background: #12150f;
  box-shadow: var(--shadow);
}

.phone img {
  border-radius: 38px;
  width: 100%;
  height: auto;
}

/* Feature rows */

.feature {
  padding: clamp(56px, 8vw, 104px) 0;
  border-top: 1px solid var(--line);
}

.feature .wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.feature.flip .wrap > :first-child {
  order: 2;
}

.points {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 16px;
}

.points li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
}

.points li::before {
  content: "";
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--lime-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23303d2b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E")
    center / 13px no-repeat;
}

.points strong {
  display: block;
}

.points span {
  color: var(--muted);
}

/* Small feature grid */

.grid-section {
  padding: clamp(56px, 8vw, 104px) 0;
  border-top: 1px solid var(--line);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px;
}

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--lime-soft);
  color: var(--forest);
  margin-bottom: 18px;
}

@media (prefers-color-scheme: dark) {
  .card .icon {
    color: var(--lime);
  }
  .points li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d7f76b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E");
  }
}

.card .icon svg {
  width: 22px;
  height: 22px;
}

.card p {
  color: var(--muted);
  margin: 8px 0 0;
  font-size: 16px;
}

/* Privacy band */

.band {
  background: var(--forest);
  color: var(--forest-ink);
  border-radius: 36px;
  padding: clamp(36px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: end;
}

.band .eyebrow {
  color: var(--lime);
}

.band p {
  color: var(--forest-muted);
  margin: 18px 0 0;
  max-width: 34em;
}

.band a {
  color: var(--lime);
}

.band ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.band li::before {
  content: "— ";
  color: var(--lime);
}

/* Pricing */

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
}

.plan {
  border-radius: 28px;
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.plan.premium {
  background: var(--lime);
  color: var(--on-lime);
  border-color: transparent;
}

.plan .eyebrow {
  margin-bottom: 8px;
}

.plan.premium .eyebrow {
  color: color-mix(in srgb, var(--on-lime) 70%, transparent);
}

.plan ul {
  margin: 22px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.plan p {
  margin: 20px 0 0;
  font-size: 15px;
  opacity: 0.75;
}

/* Documents: privacy, support, terms */

.doc {
  padding: clamp(40px, 7vw, 80px) 0 clamp(56px, 8vw, 96px);
}

.doc .wrap {
  max-width: 760px;
}

.doc .updated {
  color: var(--muted);
  font-size: 15px;
  margin: 18px 0 0;
}

.doc section {
  margin-top: 40px;
}

.doc h2 {
  font-size: 26px;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.doc p,
.doc li {
  margin: 0 0 12px;
}

.doc .callout {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px 26px;
  margin-top: 32px;
}

.doc .callout p:last-child {
  margin-bottom: 0;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 28px;
}

details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

details:first-of-type {
  border-top: 1px solid var(--line);
}

summary {
  cursor: pointer;
  font: 600 18px/1.35 var(--rounded);
  letter-spacing: -0.01em;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

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

summary::after {
  content: "+";
  font-weight: 400;
  color: var(--muted);
}

details[open] summary::after {
  content: "–";
}

details > div {
  padding-top: 12px;
  color: var(--muted);
}

details > div p:last-child {
  margin-bottom: 0;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 56px;
  color: var(--muted);
  font-size: 15px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--ink);
}

/* Layout at narrower widths */

@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
  .band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .hero .wrap,
  .feature .wrap {
    grid-template-columns: 1fr;
  }
  .feature.flip .wrap > :first-child {
    order: 0;
  }
  .phone {
    max-width: 280px;
  }
  .grid,
  .plans {
    grid-template-columns: 1fr;
  }
  .site-nav {
    gap: 16px;
    font-size: 14px;
  }
  .site-nav .wide {
    display: none;
  }
  .band {
    border-radius: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
