/* Looopr — site stylesheet
   Design system: warm paper, deep ink, moss route line, rust stops.
   Fonts: Instrument Serif (display), DM Sans (UI), JetBrains Mono (labels).
   No framework, no build step. */

/* ---- Design tokens ---------------------------------------------------- */
:root {
  --paper: #F2EEE6;      /* page background (warm paper) */
  --paper-2: #FBF9F5;    /* raised surfaces / alt sections */
  --ink: #161A16;        /* primary text, dark section bg */
  --ink-60: #4E5349;     /* body copy */
  --ink-40: #7A7F74;     /* meta / labels */
  --rule: rgba(22,26,22,0.14);
  --moss: oklch(0.52 0.13 145);   /* primary accent — the route line */
  --moss-lo: oklch(0.58 0.13 145);
  --rust: oklch(0.58 0.13 45);    /* secondary accent — stops, numerals */
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--moss); }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; text-wrap: pretty; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
.eyebrow { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: oklch(0.48 0.13 145); }
.display { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; line-height: 1.04; }
.lede { font-size: clamp(16.5px, 1.5vw, 19px); line-height: 1.6; color: var(--ink-60); max-width: 30em; }
.body { font-size: 15.5px; line-height: 1.6; color: var(--ink-60); }

/* ---- Header ----------------------------------------------------------- */
header.site { position: sticky; top: 0; z-index: 50; background: rgba(242,238,230,0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(22,26,22,0.1); }
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-block: 14px; }
.logo { display: flex; align-items: center; gap: 9px; }
.logo img { width: 30px; height: 30px; display: block; }
.logo span { font-family: var(--serif); font-size: 26px; letter-spacing: -0.01em; }
nav { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
nav a { font-size: 14.5px; color: var(--ink-60); }
nav a[aria-current="page"] { color: var(--ink); }
.btn { display: inline-block; font-size: 14.5px; font-weight: 500; color: var(--paper-2); background: var(--ink); padding: 9px 17px; border-radius: 999px; }
.btn:hover { background: oklch(0.42 0.11 145); color: var(--paper-2); }

/* ---- Hero ------------------------------------------------------------- */
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(48px, 6vw, 76px); }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: clamp(36px, 5vw, 64px); align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: oklch(0.48 0.13 145); border: 1px solid rgba(22,26,22,0.16); border-radius: 999px; padding: 6px 13px 6px 11px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--moss-lo); animation: pulse 2.4s ease-in-out infinite; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 7.4vw, 90px); line-height: 0.98; letter-spacing: -0.025em; margin-top: 22px; }
.hero h1 em { font-style: italic; color: oklch(0.55 0.13 145); }
.cta-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 34px; }
.cta-row img { height: 52px; display: block; }
.fine { font-family: var(--mono); font-size: 12px; color: var(--ink-40); }


/* Phone frame (hero + download) */
.phone-wrap { display: flex; justify-content: center; }
.phone { width: min(100%, 340px); border-radius: 40px; background: var(--ink); padding: 10px; box-shadow: 0 40px 80px -40px rgba(22,26,22,0.55); }
.phone img { display: block; width: 100%; height: auto; border-radius: 31px; aspect-ratio: 780 / 1586; object-fit: cover; object-position: top; }
.phone-wrap.dark .phone { background: #2A302A; box-shadow: 0 40px 90px -40px rgba(0,0,0,0.8); }
@media (min-width: 900px) { .hero .phone { width: min(100%, 380px); } }

/* ---- Features --------------------------------------------------------- */
.alt { background: var(--paper-2); border-top: 1px solid rgba(22,26,22,0.1); }
.sect { padding-block: clamp(56px, 7vw, 96px); }
.sect-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.sect-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.6vw, 58px); line-height: 1.04; letter-spacing: -0.02em; margin-top: 14px; }
.sect-head p { font-size: 16.5px; line-height: 1.6; color: var(--ink-60); max-width: 26em; }
.big-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: clamp(34px, 4vw, 54px); }
.card { border: 1px solid var(--rule); border-radius: 18px; padding: 28px; background: var(--paper); display: flex; flex-direction: column; gap: 20px; }
.card .card-img { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid var(--rule); aspect-ratio: 900 / 500; object-fit: cover; object-position: center; }
.card h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 10px; }
.card p { font-size: 16px; line-height: 1.6; color: var(--ink-60); }
.spec { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 0 32px; margin-top: 24px; border-top: 1px solid var(--rule); }
.spec > div { padding-block: 26px; border-bottom: 1px solid var(--rule); }
.spec .num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--rust); }
.spec h3 { font-size: 17.5px; font-weight: 700; margin: 12px 0 8px; }
.spec p { font-size: 15px; line-height: 1.58; color: var(--ink-60); }

/* ---- How it works ----------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(28px, 3vw, 40px); }
.shot { border-radius: 20px; overflow: hidden; border: 1px solid rgba(22,26,22,0.12); aspect-ratio: 3 / 4.4; background: #E9E3D7; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.step-copy { display: flex; gap: 14px; margin-top: 22px; }
.step-copy .n { font-family: var(--serif); font-size: 40px; line-height: 0.9; color: var(--rust); }
.step-copy h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }

/* ---- Download --------------------------------------------------------- */
#download { background: var(--ink); color: #F4F1EA; }
#download .two-col { padding-block: clamp(56px, 8vw, 104px); gap: clamp(30px, 4vw, 56px); }
#download h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5.4vw, 68px); line-height: 1.02; letter-spacing: -0.02em; }
#download p { font-size: clamp(16px, 1.5vw, 18.5px); line-height: 1.6; color: rgba(244,241,234,0.68); max-width: 30em; margin: 22px 0 32px; }
#download img.badge { height: 54px; display: block; }

/* ---- Footer ----------------------------------------------------------- */
footer.site { background: var(--paper-2); border-top: 1px solid rgba(22,26,22,0.1); }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 36px; padding-block: clamp(44px, 5vw, 72px) 28px; }
.foot-grid > div:first-child { grid-column: span 1; }
.foot-grid h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-40); font-weight: 400; margin-bottom: 16px; }
.foot-links { display: flex; flex-direction: column; gap: 11px; font-size: 15px; align-items: flex-start; }
.foot-blurb { max-width: 26em; font-size: 15px; line-height: 1.6; color: var(--ink-60); margin-top: 16px; }
.foot-bar { border-top: 1px solid rgba(22,26,22,0.1); padding-block: 20px 34px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; font-size: 13.5px; color: var(--ink-40); }
.foot-bar a { color: var(--ink-40); }
.foot-bar a:hover { color: var(--moss); }

/* ---- Sub-pages: legal, support, blog ---------------------------------- */
.page-head { padding-block: clamp(44px, 6vw, 80px) clamp(28px, 3vw, 40px); border-bottom: 1px solid var(--rule); }
.page-head h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5.6vw, 68px); line-height: 1.02; letter-spacing: -0.02em; margin-top: 14px; max-width: 16em; }
.page-head .lede { margin-top: 18px; max-width: 34em; }
.page-head .meta { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-40); }

.prose { max-width: 68ch; font-size: 17px; line-height: 1.7; color: var(--ink-60); padding-block: clamp(36px, 4vw, 52px) clamp(64px, 8vw, 112px); }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(27px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -0.015em; color: var(--ink); margin: 2.1em 0 0.55em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; font-weight: 700; color: var(--ink); margin: 1.8em 0 0.5em; }
.prose p { margin: 0 0 1.15em; }
.prose ul, .prose ol { margin: 0 0 1.3em; padding-left: 1.25em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--rust); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--moss); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--ink); }
.prose a.btn { color: var(--paper-2); text-decoration: none; padding: 12px 22px; font-size: 15px; }
.prose a.btn:hover { color: var(--paper-2); }
.prose blockquote { margin: 2em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--rust); font-family: var(--serif); font-size: clamp(22px, 2.2vw, 26px); line-height: 1.35; color: var(--ink); letter-spacing: -0.01em; }
.prose .cta { margin: 2.6em 0 0; }

/* Blog index */
.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; padding-block: clamp(36px, 4vw, 52px) clamp(64px, 8vw, 112px); }
.post-card { display: flex; flex-direction: column; gap: 22px; border: 1px solid var(--rule); border-radius: 18px; background: var(--paper-2); padding: 26px; color: var(--ink); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.post-card:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 24px 50px -36px rgba(22,26,22,0.45); }
.post-card .kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rust); }
.post-card h3 { font-family: var(--serif); font-weight: 400; font-size: 27px; line-height: 1.1; letter-spacing: -0.015em; margin: 10px 0 12px; }
.post-card p { font-size: 15.5px; line-height: 1.6; color: var(--ink-60); }
.post-card .more { margin-top: auto; font-size: 14px; font-weight: 500; color: var(--moss); }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Mobile: tighten the header so the nav never crowds the logo */
@media (max-width: 560px) {
  nav { gap: 18px; width: 100%; justify-content: space-between; }
  }
