/* ShareSeek — shareseek.app. No external requests: system fonts, local images. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --hairline: rgba(0, 0, 0, 0.1);
  --accent: #0066cc;
  --accent-strong: #004f9e;
  --button: #0071e3;
  --button-hover: #0062c4;
  --gold: #ffb63a;
  --hero-1: #0a2f86;
  --hero-2: #1760e6;
  --hero-glow: #6cb8ff;
  --bezel: #1c1c1e;
  --shadow: 0 30px 60px -20px rgba(10, 40, 110, 0.35), 0 10px 20px -10px rgba(0, 0, 0, 0.2);
  --radius: 22px;
  --max: 1120px;
  --gutter: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #101012;
    --surface: #1c1c1e;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --hairline: rgba(255, 255, 255, 0.14);
    --accent: #4aa3ff;
    --accent-strong: #7cbcff;
    --hero-1: #041a4f;
    --hero-2: #0c48b8;
    --bezel: #2c2c2e;
    --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8), 0 10px 20px -10px rgba(0, 0, 0, 0.6);
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
}
h2 { font-size: clamp(32px, 5vw, 52px); }
h3 { font-size: 21px; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0; }
code, kbd { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.9em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  font-size: 15px; font-weight: 600; letter-spacing: 0.02em; color: var(--accent);
  margin-bottom: 12px;
}
.lede { font-size: clamp(19px, 2.2vw, 22px); color: var(--muted); line-height: 1.45; margin-top: 18px; }
.lede strong { color: var(--text); font-weight: 600; }

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 18px; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 22.37%; }
.site-nav { display: flex; gap: 22px; margin-left: auto; font-size: 14px; }
.site-nav a { color: var(--text); opacity: 0.8; }
.site-nav a:hover { opacity: 1; text-decoration: none; }
.site-nav a[aria-current="page"] { opacity: 1; font-weight: 600; }
@media (max-width: 640px) { .site-nav .optional { display: none; } .site-nav { gap: 16px; } }

/* ---------- Buttons ---------- */

.button {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px; border-radius: 999px;
  font-size: 17px; font-weight: 600;
  background: var(--button); color: #fff;
  transition: transform 0.15s ease, background 0.15s ease;
}
.button:hover { text-decoration: none; background: var(--button-hover); }
.button:active { transform: scale(0.98); }
.button svg { width: 20px; height: 20px; }
.button.light { background: #fff; color: #0a2f86; }
.button.light:hover { background: #eaf2ff; }
.button-note { font-size: 14px; opacity: 0.8; }

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

.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(circle at 22% 12%, color-mix(in srgb, var(--hero-glow) 55%, transparent) 0, transparent 42%),
    linear-gradient(160deg, var(--hero-2) 0%, var(--hero-1) 100%);
}
.hero::before { /* dot grid from the app icon */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1.4px, transparent 1.6px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
}
.hero .wrap {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 48px; align-items: center;
  padding-top: 88px; padding-bottom: 0;
}
.hero-copy { padding-bottom: 96px; }
.hero-icon { width: 88px; height: 88px; border-radius: 22.37%; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3); margin-bottom: 28px; }
.hero h1 { font-size: clamp(44px, 6.4vw, 76px); letter-spacing: -0.035em; line-height: 1.02; }
.hero h1 .found { color: var(--gold); }
.hero .lede { color: rgba(255, 255, 255, 0.82); max-width: 32ch; }
.hero .cta { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.hero .facts { margin: 26px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.hero .facts li {
  font-size: 13px; font-weight: 500; padding: 5px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-devices { position: relative; align-self: end; min-height: 560px; }
.hero-devices .ipad { position: absolute; right: -80px; bottom: -120px; width: 620px; }
.hero-devices .iphone { position: absolute; left: 0; bottom: -40px; width: 260px; }

@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 56px; gap: 8px; }
  .hero-copy { padding-bottom: 0; }
  .hero-icon { width: 64px; height: 64px; margin-bottom: 22px; }
  .hero-devices { min-height: 0; display: flex; justify-content: center; margin-top: 32px; }
  .hero-devices .ipad { display: none; }
  .hero-devices .iphone { position: relative; left: auto; bottom: -60px; width: min(280px, 70vw); margin-top: -40px; }
}

/* ---------- Device frames ---------- */

.device { position: relative; background: var(--bezel); box-shadow: var(--shadow); }
.device img { width: 100%; }
.device.iphone { padding: 3.2%; border-radius: 15.5% / 7.2%; }
.device.iphone img { border-radius: 12.5% / 5.8%; }
.device.ipad { padding: 2.4%; border-radius: 5.2% / 3.9%; }
.device.ipad img { border-radius: 3.2% / 2.4%; }
.hero .device { --bezel: #0b0d12; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.55); }

/* ---------- Strip ---------- */

.strip { border-bottom: 1px solid var(--hairline); background: var(--bg); position: relative; z-index: 1; }
.strip ul {
  list-style: none; margin: 0 auto; padding: 28px var(--gutter);
  max-width: var(--max);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.strip li { text-align: center; }
.strip strong { display: block; font-size: 22px; letter-spacing: -0.01em; }
.strip span { font-size: 14px; color: var(--muted); }
@media (max-width: 720px) { .strip ul { grid-template-columns: repeat(2, 1fr); row-gap: 24px; } }

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

.section { padding: clamp(80px, 11vw, 140px) 0; }
.section.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 64px; }

.feature {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 96px); align-items: center;
}
.feature + .feature { margin-top: clamp(96px, 12vw, 150px); }
.feature.flip .feature-media { order: 2; }
.feature-media { display: flex; justify-content: center; }
.feature-media .device.iphone { width: min(320px, 78vw); }
.feature-copy { max-width: 480px; }
.feature-copy h2 { font-size: clamp(32px, 4.2vw, 46px); }
.feature-copy ul { margin: 26px 0 0; padding: 0; list-style: none; }
.feature-copy li { position: relative; padding-left: 28px; margin: 10px 0; color: var(--text); }
.feature-copy li::before {
  content: ""; position: absolute; left: 4px; top: 0.5em;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 25%, transparent);
}
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; }
  .feature.flip .feature-media { order: 0; }
  .feature-copy { max-width: none; }
}

.tokens { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tokens code {
  font-size: 14px; padding: 6px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent-strong); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}

/* ---------- iPad ---------- */

.ipad-show { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: end; }
.ipad-show .device.ipad:last-child { transform: translateY(40px); }
@media (max-width: 820px) {
  .ipad-show { grid-template-columns: 1fr; }
  .ipad-show .device.ipad:last-child { display: none; }
}
.keys { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin-top: 96px; color: var(--muted); font-size: 15px; }
.keys span { display: inline-flex; align-items: center; gap: 8px; }
kbd {
  display: inline-block; min-width: 30px; padding: 3px 8px; text-align: center;
  border-radius: 7px; border: 1px solid var(--hairline); border-bottom-width: 2px;
  background: var(--surface); color: var(--text); font-family: inherit; font-size: 14px;
}

/* ---------- Grid of integrations ---------- */

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--surface); border-radius: var(--radius); padding: 28px;
  border: 1px solid var(--hairline);
}
.section.alt .card { border-color: transparent; }
.card-title { display: flex; align-items: flex-start; gap: 12px; }
.card-title svg { flex: none; width: 24px; height: 24px; margin-top: 1px; color: var(--accent); }
.card p { color: var(--muted); margin-top: 10px; font-size: 16px; padding-left: 36px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

/* ---------- Servers ---------- */

.protocols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.protocol { border-radius: var(--radius); padding: 32px; background: var(--surface); }
.protocol .name { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; }
.protocol .kind { color: var(--accent); font-weight: 600; font-size: 15px; }
.protocol p { color: var(--muted); margin-top: 14px; font-size: 16px; }
@media (max-width: 820px) { .protocols { grid-template-columns: 1fr; } }

/* ---------- Privacy band ---------- */

.privacy-band { text-align: center; color: #fff; background: linear-gradient(160deg, var(--hero-2), var(--hero-1)); position: relative; overflow: hidden; }
.privacy-band::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1.4px, transparent 1.6px);
  background-size: 28px 28px;
}
.privacy-band .wrap { position: relative; }
.privacy-band .badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 20px; border-radius: 999px; background: rgba(255, 255, 255, 0.14);
  font-weight: 600; margin-bottom: 26px;
}
.privacy-band .badge svg { width: 20px; height: 20px; }
.privacy-band .lede { color: rgba(255, 255, 255, 0.82); max-width: 680px; margin-left: auto; margin-right: auto; }
.privacy-band a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.privacy-points { list-style: none; padding: 0; margin: 48px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 900px; text-align: left; }
.privacy-points li { background: rgba(255, 255, 255, 0.1); border-radius: 18px; padding: 22px; font-size: 16px; color: rgba(255, 255, 255, 0.9); }
.privacy-points strong { display: block; color: #fff; margin-bottom: 4px; font-size: 17px; }
@media (max-width: 820px) { .privacy-points { grid-template-columns: 1fr; } }

/* ---------- Pricing / CTA ---------- */

.buy { text-align: center; }
.buy .hero-icon { margin: 0 auto 28px; width: 112px; height: 112px; }
.buy .cta { margin-top: 34px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.buy .button-note { color: var(--muted); }

/* ---------- FAQ ---------- */

.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 36px 22px 0; position: relative;
  font-size: 19px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 26px; font-weight: 300; color: var(--accent); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 22px; }
.faq details p + p { margin-top: -10px; }

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

.site-footer { border-top: 1px solid var(--hairline); padding: 40px 0 56px; font-size: 13px; color: var(--muted); background: var(--bg-alt); }
.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(--text); }
.site-footer .legal { flex-basis: 100%; }

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

.page { max-width: 720px; margin: 0 auto; padding: 72px var(--gutter) 112px; }
.page h1 { font-size: clamp(38px, 6vw, 52px); letter-spacing: -0.03em; }
.page .updated { color: var(--muted); margin-top: 10px; }
.page h2 { font-size: 26px; margin-top: 48px; margin-bottom: 12px; letter-spacing: -0.015em; }
.page p, .page li { color: var(--text); }
.page p + p { margin-top: 14px; }
.page ul { padding-left: 22px; }
.page li { margin: 8px 0; }
.page .callout {
  margin-top: 32px; padding: 24px 26px; border-radius: 18px;
  background: var(--bg-alt); border: 1px solid var(--hairline);
}
.page .callout strong { display: block; font-size: 19px; margin-bottom: 4px; }
.page details { border-bottom: 1px solid var(--hairline); }
.page summary { cursor: pointer; padding: 16px 0; font-weight: 600; }
.page details p { padding-bottom: 16px; color: var(--muted); }
.page .actions { margin-top: 32px; }

/* ---------- Reveal on scroll (only when JS runs and motion is allowed) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .js .reveal.in { opacity: 1; transform: none; }
}
