/* Laifline website. SF Pro Rounded, like the app (Nunito where it isn't available).
   Colours are the app's tokens (Design/Theme.swift). */

:root {
  --paper: #F6F7EC;
  --paper-deep: #ECF0DC;
  --bubble: #E3EFC8;
  --ink: #22382A;
  --ink-soft: #566E58;
  --ink-mute: #869A84;
  --moss: #427A33;
  --sage: #838F80;
  --mint: #D9EBC3;
  --lime: #CED36F;
  --line: rgba(34, 56, 42, 0.1);
  --on-moss: #F6F7EC;
  --card: #FBFBF5;
  --art: 1;

  --font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #101610;
    --paper-deep: #182019;
    --bubble: #2A3A22;
    --ink: #EAF2DF;
    --ink-soft: #AEC2A2;
    --ink-mute: #72866C;
    --moss: #B3D98F;
    --sage: #7D8879;
    --mint: #2C4123;
    --line: rgba(234, 242, 223, 0.1);
    --on-moss: #101610;
    --card: #151C15;
    --art: 0.78;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--mint); }
:focus-visible { outline: 2.5px solid var(--moss); outline-offset: 3px; border-radius: 10px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--moss); color: var(--on-moss); }
.skip:focus { left: 12px; }
.icon { width: 20px; height: 20px; flex: none; fill: currentColor; }
.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 40px); margin-inline: auto; }

/* ---------- Type ---------- */

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; }
.title { font-size: clamp(36px, 5.6vw, 60px); }
.heading { font-size: clamp(30px, 4.2vw, 46px); }
.lead { margin: 0; color: var(--ink-soft); font-size: clamp(16px, 1.5vw, 18px); }
.small { font-size: 13px; color: var(--ink-mute); }

/* ---------- Pills ---------- */

.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; font: 700 15px/1 var(--font); text-decoration: none; border: 0; cursor: pointer; transition: transform 160ms var(--ease), opacity 200ms ease, background-color 200ms ease; }
.pill:active { transform: scale(0.97); }
.pill-moss { background: var(--moss); color: var(--on-moss); box-shadow: 0 8px 20px -10px rgba(66, 122, 51, 0.6); }
.pill-soft { background: var(--paper-deep); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.pill-small { min-height: 40px; padding: 0 18px; font-size: 14px; }
@media (hover: hover) and (pointer: fine) { .pill-moss:hover { opacity: 0.9; } .pill-soft:hover { background: var(--mint); } }

/* ---------- Header ---------- */

.top { position: sticky; top: 0; z-index: 40; transition: background-color 250ms ease, box-shadow 250ms ease; }
.top.scrolled { background: color-mix(in srgb, var(--paper) 84%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 1px 0 var(--line); }
.top-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.brand .logo { width: 30px; height: 31px; }
.brand span { font-weight: 800; font-size: 21px; letter-spacing: -0.02em; }

/* ---------- App screenshots (used as they are: no frame, no shadow) ---------- */

.shot { width: 300px; height: auto; }
.hero-shot { margin: 0 auto; }
.canvas .shot { width: 320px; }
.get-shot { width: 280px; }

/* ---------- Hero ---------- */

.hero { position: relative; padding: 28px 0 0; text-align: center; }
.mist {
  position: relative; z-index: 6; margin: -230px auto 0; width: min(980px, 100%);
  padding: 120px 20px 0; display: grid; gap: 18px; justify-items: center;
  background: radial-gradient(ellipse 60% 55% at 50% 42%, color-mix(in srgb, var(--paper) 88%, transparent) 0%, color-mix(in srgb, var(--paper) 70%, transparent) 55%, transparent 72%), linear-gradient(transparent, var(--paper) 160px);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(transparent 0, #000 110px); mask-image: linear-gradient(transparent 0, #000 110px);
}
.mist .lead { max-width: 30em; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ---------- Sections ---------- */

.section { padding: clamp(80px, 11vw, 136px) 0; }
.head { display: grid; gap: 14px; justify-items: center; text-align: center; max-width: 640px; margin: 0 auto 44px; }
.head.split { max-width: none; grid-template-columns: 1fr 1fr; align-items: end; justify-items: start; text-align: left; }
.head.split .lead { justify-self: end; max-width: 26em; text-align: right; }
@media (max-width: 760px) { .head.split { grid-template-columns: 1fr; } .head.split .lead { justify-self: start; text-align: left; } }

/* Your words stay home: a spring-lime panel with three big zeros */
.vault {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 40px; padding: clamp(32px, 6vw, 72px);
  background: #AEC952;
  color: #22382A; display: grid; gap: clamp(36px, 5vw, 56px);
}
.vault-leaf { position: absolute; right: -60px; bottom: -70px; width: clamp(240px, 34vw, 420px); opacity: 0.16; z-index: -1; transform: rotate(-12deg); }
.vault-head { display: grid; gap: 16px; max-width: 560px; }
.vault-head .heading { font-size: clamp(40px, 6vw, 72px); line-height: 1; color: #427A33; }
.vault-head p { margin: 0; color: #427A33; font-size: clamp(16px, 1.5vw, 18px); }
.vault-tag { justify-self: start; padding: 5px 12px; border-radius: 99px; background: rgba(34, 56, 42, 0.12); color: #427A33; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(34, 56, 42, 0.2); }
.stat { padding: 26px 24px 0 0; display: grid; gap: 6px; align-content: start; }
.stat + .stat { padding-left: 24px; border-left: 1px solid rgba(34, 56, 42, 0.2); }
.stat b { font-size: clamp(88px, 13vw, 156px); line-height: 0.9; font-weight: 800; letter-spacing: -0.05em; color: #427A33; }
.stat span { color: #427A33; font-weight: 700; font-size: 16px; max-width: 14em; }
.airplane { justify-self: start; display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border-radius: 99px; background: rgba(246, 247, 236, 0.45); box-shadow: inset 0 0 0 1px rgba(34, 56, 42, 0.12); color: #427A33; font-size: 15px; }
.airplane b { color: #427A33; }
.airplane .icon { color: #427A33; }
.switch { position: relative; width: 50px; height: 30px; border-radius: 99px; background: rgba(34, 56, 42, 0.25); transition: background-color 400ms var(--ease) 500ms; flex: none; }
.switch i { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); transition: transform 400ms var(--ease) 500ms; }
.vault.in-view .switch { background: #427A33; }
.vault.in-view .switch i { transform: translateX(20px); }
@media (max-width: 720px) {
  .stat { padding: 18px 10px 0 0; }
  .stat + .stat { padding-left: 12px; }
  .stat b { font-size: 68px; }
  .stat span { font-size: 13px; line-height: 1.35; }
  .airplane { border-radius: 22px; }
}

/* A painting with the chat on a phone */
.canvas { position: relative; border-radius: 40px; overflow: hidden; isolation: isolate; padding: 56px 20px 0; display: grid; justify-items: center; height: 640px; }
.canvas > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: var(--art); }

/* Six painted cards */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile { position: relative; overflow: hidden; border-radius: 30px; min-height: 300px; isolation: isolate; display: flex; align-items: flex-start; padding: 18px; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: var(--art); transition: transform 900ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .tile:hover img { transform: scale(1.04); } }
.tile .label { display: grid; gap: 6px; justify-items: start; }
.tile .kicker { padding: 4px 10px; border-radius: 99px; background: rgba(246, 247, 236, 0.9); color: #427A33; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.tile .name { padding: 8px 14px; border-radius: 99px; background: rgba(34, 56, 42, 0.88); color: #F6F7EC; font-size: 18px; font-weight: 700; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.tile.w3 { grid-column: span 3; }
.tile.w4 { grid-column: span 4; }
.tile.w2 { grid-column: span 2; }
@media (max-width: 860px) { .bento { grid-template-columns: 1fr 1fr; } .tile.w2, .tile.w3, .tile.w4 { grid-column: span 1; } .tile { min-height: 240px; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } }

/* Note */
.note { border-radius: 36px; background: var(--paper-deep); padding: clamp(32px, 6vw, 60px); display: grid; gap: 16px; text-align: center; justify-items: center; }
.note .logo { width: 44px; height: 45px; }
.note p { margin: 0; color: var(--ink-soft); font-size: 17px; max-width: 34em; }

/* FAQ: answers arrive as chat bubbles */
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 18px 2px; font-weight: 700; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { margin-left: auto; color: var(--ink-mute); transition: transform 250ms var(--ease); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq .answer { display: flex; gap: 10px; align-items: flex-end; padding: 0 2px 20px; }
.faq .answer .logo { width: 22px; height: 23px; flex: none; margin-bottom: 4px; }
.faq .answer p { margin: 0; padding: 12px 16px; border-radius: 20px 20px 20px 6px; background: var(--mint); max-width: 560px; }

/* Get the app */
.get { display: grid; grid-template-columns: auto auto; justify-content: center; gap: clamp(32px, 7vw, 96px); align-items: center; }
.get .copy { display: grid; gap: 16px; justify-items: start; }
@media (max-width: 760px) { .get { grid-template-columns: 1fr; justify-items: center; text-align: center; } .get .copy { justify-items: center; } }

/* Footer */
.footer { padding: 64px 0 40px; display: grid; gap: 16px; justify-items: center; text-align: center; }
.footer .logo { width: 34px; height: 35px; }
.footer nav { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.footer nav a { text-decoration: none; font-weight: 600; font-size: 14px; color: var(--ink-soft); }
.footer nav a:hover { color: var(--ink); }

/* ---------- Legal pages ---------- */

.legal-head { padding: 36px 0 8px; text-align: center; display: grid; gap: 14px; justify-items: center; }
.legal-head .badge { width: 112px; height: 112px; border-radius: 50%; overflow: hidden; }
.legal-head .badge img { width: 100%; height: 100%; object-fit: cover; opacity: var(--art); }
.legal-head .lead { max-width: 32em; }
.legal-body { padding: 20px 0 40px; }
.legal-body h2 { font-size: 24px; margin: 44px 0 10px; }
.legal-body h3 { font-size: 16px; font-weight: 800; margin: 22px 0 4px; }
.legal-body p, .legal-body li { color: var(--ink-soft); }
.legal-body li { margin: 6px 0; }
.legal-body strong { color: var(--ink); }
.legal-body a { color: var(--moss); font-weight: 700; }
.summary { border-radius: 26px; background: var(--mint); padding: 24px 28px; }
.summary h2 { margin: 0 0 8px; font-size: 20px; }
.summary ul { margin: 0; padding-left: 20px; }
.summary li { color: var(--ink); }

/* ---------- Motion ---------- */

[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal].in-view { opacity: 1; transform: none; }
.hero [data-reveal] { opacity: 1; transform: none; transition: none; animation: rise 800ms var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { transform: none; transition: opacity 300ms ease; }
  .hero [data-reveal] { animation: none; }
  .switch, .switch i { transition: none; }
}

@media (max-width: 600px) {
  .hero-shot { width: 260px; }
  .mist { margin-top: -200px; padding-top: 110px; }
  .canvas { height: 560px; }
  .canvas .shot { width: 280px; }
}
