/*
 * LogMeds — website
 *
 * The same Liquid Glass language as the app and the web app (assets/app.css):
 * a drifting colour wash under translucent, blurred surfaces. Kept separate so
 * the marketing page does not load the web app's styles, and the other way
 * round.
 */

/* ------------------------------------------------------------------ tokens */

:root {
  color-scheme: light dark;

  --tint-blue: #3479e6;
  --tint-teal: #17a2b8;
  --tint-green: #2fa84f;
  --tint-orange: #e8890c;
  --tint-pink: #e0509a;
  --tint-purple: #8250df;
  --tint-red: #d93a3a;
  --tint-indigo: #4a5ae8;
  --tint-slate: #5b6b82;

  --brand-a: #0a8cf8;
  --brand-b: #33bad6;
  --accent: var(--brand-a);

  --ink: #10131a;
  --ink-soft: #4f5866;
  --ink-faint: #8b94a3;

  --ground: #eef1f6;
  --glass: rgba(255, 255, 255, 0.58);
  --glass-line: rgba(255, 255, 255, 0.7);
  --glass-shadow: rgba(16, 20, 30, 0.10);
  --bezel: #1b1e24;

  --radius: 26px;
  --blur: 28px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2f5fa;
    --ink-soft: #b0b8c6;
    --ink-faint: #7a8494;

    --ground: #0a0c11;
    --glass: rgba(30, 35, 46, 0.58);
    --glass-line: rgba(255, 255, 255, 0.10);
    --glass-shadow: rgba(0, 0, 0, 0.45);
    --bezel: #2a2e36;
  }
}

/* ------------------------------------------------------------------- reset */

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { margin: 0; line-height: 1.15; font-family: var(--font-display); letter-spacing: -0.02em; }
p { margin: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.muted { color: var(--ink-soft); }
.small { font-size: 0.85rem; }

/* --------------------------------------------------------- ambient backdrop */

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--ground);
}

.ambient span {
  position: absolute;
  width: 48vmax;
  height: 48vmax;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.45;
}

.ambient span:nth-child(1) {
  background: radial-gradient(circle, var(--brand-a), transparent 68%);
  top: -14vmax; left: -10vmax;
  animation: drift-a 24s ease-in-out infinite alternate;
}

.ambient span:nth-child(2) {
  background: radial-gradient(circle, var(--tint-purple), transparent 68%);
  top: 12vmax; right: -14vmax;
  animation: drift-b 28s ease-in-out infinite alternate;
}

.ambient span:nth-child(3) {
  background: radial-gradient(circle, var(--brand-b), transparent 68%);
  bottom: -18vmax; left: 20vmax;
  animation: drift-c 32s ease-in-out infinite alternate;
}

@keyframes drift-a { to { transform: translate3d(8vmax, 6vmax, 0) scale(1.15); } }
@keyframes drift-b { to { transform: translate3d(-9vmax, 8vmax, 0) scale(1.1); } }
@keyframes drift-c { to { transform: translate3d(6vmax, -7vmax, 0) scale(1.18); } }

@media (prefers-reduced-motion: reduce) {
  .ambient span { animation: none; }
}

/* ---------------------------------------------------------------- surfaces */

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(180%);
  backdrop-filter: blur(var(--blur)) saturate(180%);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  box-shadow: 0 12px 36px var(--glass-shadow);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-lg { padding: 13px 22px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  box-shadow: 0 8px 24px rgba(10, 140, 248, 0.35);
}

.btn-glass {
  color: var(--ink);
  background: var(--glass);
  border-color: var(--glass-line);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.is-disabled { opacity: 0.6; pointer-events: none; }

.store-badge {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 170px;
  padding: 8px 20px;
  border-radius: 14px;
  background: #000;
  color: #fff;
  text-decoration: none;
  line-height: 1.1;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.store-badge small { font-size: 0.72rem; opacity: 0.85; }
.store-badge strong { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; }
.store-badge.is-soon { opacity: 0.75; cursor: default; }

.pill-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--tint-green), #37c36b);
}

/* ------------------------------------------------------------------- nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 12px 0;
  background: color-mix(in srgb, var(--ground) 62%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-line);
}

.nav-inner { display: flex; align-items: center; gap: 20px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.brand img { border-radius: 22%; box-shadow: 0 4px 12px rgba(10, 140, 248, 0.3); }

.nav-links { display: flex; gap: 22px; margin-left: 12px; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--ink); }

.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.lang {
  appearance: none;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--glass-line);
  background: var(--glass);
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-links { display: none; }
}

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

.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 64px 0 40px;
}

.eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  background: linear-gradient(135deg, var(--ink) 30%, var(--brand-a));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin-top: 18px;
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 34em;
}

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 30px; }

.price-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.hero-phones {
  position: relative;
  height: 600px;
}

.hero-phones .phone { position: absolute; width: 270px; }
.hero-phones .phone-front { left: 12%; top: 10px; z-index: 2; }
.hero-phones .phone-back { right: 4%; top: 70px; transform: rotate(6deg); opacity: 0.95; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; text-align: center; }
  .lede { margin-inline: auto; }
  .cta-row, .price-note { justify-content: center; }
  .hero-phones { height: 520px; max-width: 460px; width: 100%; margin: 0 auto; }
  .hero-phones .phone { width: 230px; }
  .hero-phones .phone-front { left: 6%; }
  .hero-phones .phone-back { right: 2%; }
}

@media (max-width: 420px) {
  .hero-phones { height: 440px; }
  .hero-phones .phone { width: 190px; }
}

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

.phone {
  margin: 0;
  padding: 7px;
  border-radius: 42px;
  background: var(--bezel);
  box-shadow:
    0 30px 60px rgba(16, 20, 30, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.phone img { width: 100%; border-radius: 35px; }

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

.section { padding: 72px 0; }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
.section-head p { margin-top: 12px; color: var(--ink-soft); font-size: 1.08rem; }

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

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

.feature { padding: 24px; }
.feature h3 { font-size: 1.12rem; margin: 14px 0 6px; }
.feature p { color: var(--ink-soft); font-size: 0.96rem; }

.icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: #fff;
}

.icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tint-orange { background: linear-gradient(135deg, var(--tint-orange), #f5a742); }
.tint-teal { background: linear-gradient(135deg, var(--tint-teal), #3cc4d6); }
.tint-purple { background: linear-gradient(135deg, var(--tint-purple), #a47ef0); }
.tint-green { background: linear-gradient(135deg, var(--tint-green), #52c46f); }
.tint-blue { background: linear-gradient(135deg, var(--tint-blue), #5e9bf0); }
.tint-pink { background: linear-gradient(135deg, var(--tint-pink), #ef7ab6); }
.tint-indigo { background: linear-gradient(135deg, var(--tint-indigo), #7580f0); }
.tint-red { background: linear-gradient(135deg, var(--tint-red), #ea6a6a); }
.tint-slate { background: linear-gradient(135deg, var(--tint-slate), #8290a6); }

/* --------------------------------------------------------------- gallery */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 240px);
  justify-content: center;
  gap: 28px;
  padding: 10px 16px 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.gallery::-webkit-scrollbar { display: none; }

@media (max-width: 1100px) {
  .gallery { justify-content: start; grid-template-columns: repeat(4, 220px); }
}

.shot { margin: 0; scroll-snap-align: center; }
.shot figcaption { margin-top: 16px; text-align: center; }
.shot figcaption strong { display: block; font-size: 1.02rem; }
.shot figcaption span { display: block; color: var(--ink-soft); font-size: 0.9rem; margin-top: 2px; }

/* ------------------------------------------------------------ web access */

.web-band {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 36px;
  align-items: center;
  padding: 40px;
}

.web-band h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 800; }
.web-copy p:not(.eyebrow) { margin: 14px 0 24px; color: var(--ink-soft); font-size: 1.05rem; }

.web-points, .checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }

.web-points li, .checks li {
  position: relative;
  padding-left: 30px;
}

.web-points li::before, .checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
}

.web-points li::after, .checks li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  width: 8px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

@media (max-width: 800px) {
  .web-band { grid-template-columns: 1fr; padding: 28px 22px; }
}

/* --------------------------------------------------------------- pricing */

.price-card {
  max-width: 460px;
  margin: 0 auto;
  padding: 32px;
}

.price-top { display: flex; align-items: center; gap: 14px; }
.price-top img { border-radius: 22%; }
.price-top h3 { font-size: 1.3rem; }

.price { margin: 26px 0 6px; display: flex; align-items: baseline; gap: 6px; }
.price .amount { font-size: 3.2rem; font-weight: 800; letter-spacing: -0.03em; font-family: var(--font-display); }
.price .per { color: var(--ink-soft); font-size: 1.05rem; }

.trial { margin-bottom: 24px; }
.checks { margin-bottom: 28px; }

.fine { margin-top: 16px; color: var(--ink-faint); font-size: 0.8rem; line-height: 1.45; }

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

.faq { padding: 0; margin-bottom: 12px; border-radius: 20px; }

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 50px 18px 22px;
  font-weight: 600;
  position: relative;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--ink-soft);
}

.faq[open] summary::after { content: "–"; }
.faq p { padding: 0 22px 20px; color: var(--ink-soft); }

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

.footer { padding: 36px 0 44px; border-top: 1px solid var(--glass-line); margin-top: 40px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { color: var(--ink-soft); text-decoration: none; font-size: 0.92rem; }
.footer-links a:hover { color: var(--ink); }
.footer-inner .muted { margin-left: auto; }

@media (max-width: 640px) {
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-inner .muted { margin-left: 0; }
}

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

.legal { padding: 48px 0 24px; }
.legal article { padding: 36px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800; margin-bottom: 6px; }
.legal h2 { font-size: 1.2rem; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal p + p { margin-top: 10px; }
.legal ul { padding-left: 20px; }

@media (max-width: 600px) {
  .legal article { padding: 24px 20px; }
}

/* ------------------------------------------------------- professionals gate */

.nav-links a.nav-pro { color: var(--accent); font-weight: 600; }
.pro-more { text-align: center; margin-top: 28px; font-weight: 600; }
.pro-more a { color: var(--accent); text-decoration: none; }

.pro-gate {
  width: min(440px, 100% - 32px);
  padding: 28px;
  color: var(--ink);
  border: 1px solid var(--glass-line);
}
.pro-gate::backdrop { background: rgba(10, 12, 17, 0.55); backdrop-filter: blur(6px); }
.pro-gate h2 { font-size: 1.3rem; margin: 0; }
.pro-gate p { color: var(--ink-soft); margin: 10px 0 22px; }
.pro-gate-actions { display: flex; flex-wrap: wrap-reverse; gap: 10px; justify-content: flex-end; }
@media (max-width: 420px) { .pro-gate-actions .btn { flex: 1 1 100%; } }
