/* Linso marketing site
   Same design language as tidegauge.app (graphite, grain, Schibsted Grotesk,
   Newsreader italics, Martian Mono labels), in Linso's monochrome (D-9). */

:root {
  --bg: #0c0c0e;
  --bg-2: #111113;
  --card: #18181b;
  --card-hi: #222226;
  --line: rgba(255, 255, 255, 0.075);
  --line-2: rgba(255, 255, 255, 0.13);
  --ink: #ececf0;
  --ink-2: #b4b4bb;
  --dim: #808088;
  --track: #48484d;
  --ring: #f5f5f7;
  --ok: #30d158;

  --f-sans: "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
  --f-serif: "Newsreader", ui-serif, Georgia, serif;
  --f-mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --bar-h: 44px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* film grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: rgba(245, 245, 247, 0.25); }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: calc(var(--bar-h) + 8px); }

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

/* ------------------------------------------------------------------ */
/* Top bar: an iOS-style status bar                                     */
/* ------------------------------------------------------------------ */

.bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 clamp(14px, 2.4vw, 24px);
  font-size: 13.5px;
  font-weight: 500;
  background: rgba(14, 14, 16, 0.62);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  backdrop-filter: blur(22px) saturate(1.6);
  border-bottom: 1px solid var(--line);
}
.bar-left, .bar-right { display: flex; align-items: center; gap: 18px; min-width: 0; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand img { width: 22px; height: 22px; border-radius: 6px; }
.nav { display: flex; gap: 18px; }
.nav a, .bar-right a { color: var(--ink-2); text-decoration: none; transition: color 0.15s; }
.nav a:hover, .bar-right a:hover { color: var(--ink); }
.bar-time { font-family: var(--f-mono); font-size: 11.5px; color: var(--dim); }

/* ------------------------------------------------------------------ */
/* Shared                                                              */
/* ------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, border-color 0.2s, background-color 0.2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary {
  background: linear-gradient(180deg, #fbfbfc, #dcdde1);
  color: #111113;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 10px 30px -10px rgba(255, 255, 255, 0.35);
}
.btn-primary:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 14px 40px -12px rgba(255, 255, 255, 0.5); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-2);
  color: var(--ink-2);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.28); color: var(--ink); background: rgba(255, 255, 255, 0.07); }

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.kicker span {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 22px;
  padding: 0 6px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--ink-2);
  letter-spacing: 0.06em;
}

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.03em; }
h2 {
  font-size: clamp(40px, 6vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}
h1 em, h2 em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.025em;
  background: linear-gradient(170deg, #f4f4f6 10%, #9c9da3 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}

.section { padding-block: clamp(80px, 10vw, 140px); position: relative; }
.sec-head { max-width: 760px; margin-bottom: clamp(48px, 7vw, 80px); }
.sec-lede {
  margin: 26px 0 0;
  max-width: 620px;
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--ink-2);
}

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

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

.hero {
  position: relative;
  padding: calc(var(--bar-h) + clamp(48px, 9vh, 110px)) 0 clamp(60px, 9vh, 100px);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(90% 60% at 75% 40%, rgba(245, 245, 247, 0.06), transparent 60%),
    radial-gradient(120% 60% at 50% 100%, rgba(120, 120, 130, 0.12), transparent 60%),
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
}
.pulse {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
}
.pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--ok);
  animation: ping 2s var(--ease) infinite;
}
@keyframes ping {
  from { transform: scale(0.5); opacity: 0.9; }
  to { transform: scale(1.8); opacity: 0; }
}
.hero h1 {
  font-size: clamp(54px, 8vw, 118px);
  line-height: 0.9;
  letter-spacing: -0.055em;
  font-weight: 750;
}
.hero h1 em { letter-spacing: -0.035em; }
.lede {
  max-width: 540px;
  margin: 28px 0 0;
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.5;
  color: var(--ink-2);
}
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 26px 0 0;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--dim);
}

/* The two rings: the app's own picture of lens life */
.rings {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 2.4vw, 28px);
  max-width: 520px;
  margin-inline: auto;
}
.ring { text-align: center; }
.ring svg { width: 100%; height: auto; overflow: visible; }
.ring .track { fill: none; stroke: rgba(255, 255, 255, 0.1); stroke-width: 14; }
.ring .life {
  fill: none;
  stroke: var(--ring);
  stroke-width: 14;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 1.2s var(--ease);
}
.ring .num {
  font-family: var(--f-sans);
  font-weight: 650;
  font-size: 46px;
  letter-spacing: -0.03em;
  fill: var(--ink);
  font-variant-numeric: tabular-nums;
}
.ring .cap { font-size: 12px; fill: var(--dim); font-family: var(--f-sans); }
.ring-label {
  margin-top: 14px;
  font-weight: 600;
  font-size: 15px;
}
.ring-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--ring);
  color: #111113;
  font-size: 12px;
  font-weight: 600;
}
.ring-chip svg { width: 13px; height: 13px; }
.case-line {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--dim);
}
.case-line svg { width: 15px; height: 15px; }

/* ------------------------------------------------------------------ */
/* Phones                                                              */
/* ------------------------------------------------------------------ */

.phones {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 3vw, 40px);
  align-items: start;
}
.phone {
  margin: 0;
  padding: 10px;
  border-radius: 46px;
  background: linear-gradient(180deg, #2a2a2e, #141416);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 2px 0 rgba(255, 255, 255, 0.06) inset,
    0 60px 120px -30px rgba(0, 0, 0, 0.9);
}
.phone img { width: 100%; height: auto; border-radius: 37px; }
.phone:nth-child(2) { transform: translateY(40px); }
.phone figcaption {
  margin-top: 16px;
  text-align: center;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--dim);
}

/* ------------------------------------------------------------------ */
/* Feature grid                                                        */
/* ------------------------------------------------------------------ */

.tabgrid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.tab {
  position: relative;
  padding: 26px 24px 28px;
  background: var(--bg);
  transition: background-color 0.35s;
}
.tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 2px;
  width: 0;
  background: var(--ring);
  transition: width 0.5s var(--ease);
}
.tab:hover { background: color-mix(in srgb, var(--ink) 4%, var(--bg)); }
.tab:hover::before { width: 100%; }
.tab svg { width: 24px; height: 24px; color: var(--ink); }
.tab h3 { margin-top: 30px; font-size: 19px; letter-spacing: -0.02em; }
.tab p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--dim); }

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

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}
.split h2 { margin-bottom: 28px; font-size: clamp(40px, 4.8vw, 68px); }
.split p:not(.kicker) { margin: 0 0 16px; color: var(--ink-2); font-size: 17.5px; max-width: 520px; }
.ticks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: 15.5px; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--ring);
}

.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 40%), var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 30px 80px -40px rgba(0, 0, 0, 0.8);
}
.card-head {
  display: flex;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--dim);
}
.timeline { padding: 18px; display: grid; gap: 10px; }
.tl {
  display: grid;
  grid-template-columns: 92px 1fr 64px;
  align-items: center;
  gap: 14px;
  font-size: 14px;
}
.tl b { font-weight: 600; }
.tl small { display: block; font-size: 12px; color: var(--dim); }
.tl .bar-track { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.tl .bar-track i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--c, var(--ring)); }
.tl .v { text-align: right; font-family: var(--f-mono); font-size: 12px; color: var(--ink-2); }
.card-foot {
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: var(--dim);
}

/* privacy */
.local {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.local div { padding: 26px 24px 28px; background: var(--bg); }
.local b { display: block; font-size: 19px; letter-spacing: -0.02em; margin-bottom: 6px; }
.local p { margin: 0; font-size: 14.5px; color: var(--dim); }

/* ------------------------------------------------------------------ */
/* Prose pages (privacy, support)                                       */
/* ------------------------------------------------------------------ */

.prose { padding: calc(var(--bar-h) + clamp(48px, 9vh, 100px)) 0 100px; }
.prose .wrap { max-width: 820px; }
.prose h1 { font-size: clamp(44px, 6vw, 76px); line-height: 0.98; letter-spacing: -0.045em; }
.prose h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.15; letter-spacing: -0.025em; margin: 48px 0 12px; }
.prose h3 { font-size: 19px; margin: 28px 0 8px; letter-spacing: -0.015em; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.1em; }
.prose li { margin: 6px 0; }
.prose a { color: var(--ink); text-underline-offset: 3px; }
.prose .updated { font-family: var(--f-mono); font-size: 11px; color: var(--dim); margin-top: 18px; }
.lang-switch { display: flex; gap: 8px; margin-top: 28px; }
.lang-switch a {
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-2);
  text-decoration: none;
}
.lang-switch a:hover { color: var(--ink); border-color: rgba(255, 255, 255, 0.28); }
.prose section + section { margin-top: 72px; padding-top: 48px; border-top: 1px solid var(--line); }

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */

.foot {
  position: relative;
  padding: 40px 0 36px;
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.foot-mark {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  margin-bottom: 36px;
}
.foot-rings { display: flex; gap: clamp(6px, 1vw, 14px); height: clamp(48px, 10vw, 150px); }
.foot-rings svg { height: 100%; width: auto; }
.foot-rings .t { fill: none; stroke: var(--track); stroke-width: 12; }
.foot-rings .f { fill: none; stroke: var(--ring); stroke-width: 12; stroke-linecap: round; }
.foot-rings .spin { animation: drain 9s ease-in-out infinite; }
@keyframes drain { 50% { stroke-dashoffset: 120; } }
.foot-word {
  font-size: clamp(64px, 15vw, 220px);
  font-weight: 800;
  line-height: 1.12;
  /* Room for the round letters' overshoot: background-clip: text cuts off
     anything outside the box, and the tight tracking pulls the final "o" past it. */
  display: inline-block;
  padding: 0 0.08em 0.12em 0;
  letter-spacing: -0.065em;
  background: linear-gradient(180deg, #e9e9ed 20%, rgba(233, 233, 237, 0.08) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--dim);
}
.foot-row p { margin: 0; }
.foot-row a { color: var(--ink-2); text-underline-offset: 3px; }
.foot-row nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-row nav a { text-decoration: none; }
.foot-row nav a:hover { color: var(--ink); }
.foot-note { margin: 14px 0 0; font-size: 12px; color: var(--dim); }

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 960px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .rings { max-width: 420px; }
  .tabgrid, .local { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav, .bar-time { display: none; }
  .phones { grid-template-columns: 1fr; max-width: 340px; margin-inline: auto; }
  .phone:nth-child(2) { transform: none; }
  .phone:nth-child(n+2) { display: none; }
  .tabgrid, .local { grid-template-columns: 1fr; }
  .tl { grid-template-columns: 80px 1fr 56px; }
  .foot-word { font-size: 14vw; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
