/* OrgHop site. Colors follow the extension's popup (src/popup/popup.css) and icon. */
:root {
  --navy-900: #021B3A;
  --navy-800: #032D60;
  --navy-700: #0B2E6B;
  --blue: #0176D3;
  --blue-light: #1AB0F0;
  --blue-deep: #0567B0;
  --gold: #FFB75D;
  --orange: #FF8A1F;
  --prod: #BA0517;
  --sandbox: #2E844A;
  --ink: #16325C;
  --muted: #5E7391;
  --line: #E3EAF4;
  --surface: #FFFFFF;
  --surface-alt: #F5F8FC;
  --radius: 14px;
  --shadow: 0 24px 60px -20px rgba(2, 27, 58, .45), 0 8px 20px -8px rgba(2, 27, 58, .25);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 17px/1.6 var(--font);
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 20px; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .88em; background: var(--surface-alt); border: 1px solid var(--line); padding: 1px 5px; border-radius: 5px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; }
.accent { color: var(--gold); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.lead { font-size: 19px; color: var(--muted); max-width: 620px; }

kbd {
  display: inline-block;
  min-width: 1.7em;
  padding: 2px 7px;
  font: 600 .82em/1.5 var(--font);
  text-align: center;
  color: var(--ink);
  background: #fff;
  border: 1px solid #C5D3EA;
  border-bottom-width: 3px;
  border-radius: 7px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px;
  font-weight: 650; font-size: 16px; text-decoration: none;
  border-radius: 999px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 10px 24px -10px rgba(255, 138, 31, .8); }
.btn-primary:hover { background: #F07A0C; color: #fff; }
.btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .3); }
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(2, 27, 58, .92); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 750; font-size: 19px; text-decoration: none; letter-spacing: -0.01em; }
.brand:hover { color: #fff; }
.brand img { width: 32px; height: 32px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: #C9D6E8; text-decoration: none; font-size: 15px; font-weight: 550; }
.nav a:hover { color: #fff; }
.nav .btn { padding: 8px 16px; font-size: 14px; color: #fff; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  color: #fff;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(26, 176, 240, .28), transparent 60%),
    radial-gradient(700px 500px at 10% 100%, rgba(5, 103, 176, .35), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, #04407F 100%);
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.hero-name { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; margin-bottom: 24px; font-size: 14px; font-weight: 600; color: #DCE6F4; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px; }
.hero-name img { width: 22px; height: 22px; }
.hero h1 { font-size: clamp(38px, 5.2vw, 60px); font-weight: 800; letter-spacing: -0.035em; margin-bottom: 20px; }
.hero p.lead { color: #C9D6E8; font-size: 20px; margin-bottom: 32px; }
.hero kbd { color: var(--navy-800); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-note { font-size: 13px; color: #9AABC2; margin-top: 14px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 36px 0 0; padding: 0; list-style: none; font-size: 14px; color: #C9D6E8; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

.hero-shot { position: relative; justify-self: center; min-width: 0; }
.hero-shot::before { content: ""; position: absolute; inset: 10% -12% -6% -12%; background: radial-gradient(closest-side, rgba(26, 176, 240, .45), transparent); filter: blur(20px); }
.shot { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.shot img { width: 100%; }
.hero-shot .shot { max-width: 400px; transform: rotate(1.5deg); }
.float-key { position: absolute; left: -40px; bottom: -22px; display: flex; gap: 6px; align-items: center; padding: 10px 14px; background: #fff; border-radius: 12px; box-shadow: var(--shadow); font-size: 14px; color: var(--muted); font-weight: 600; transform: rotate(-3deg); }

/* How it works strip */
.steps { background: var(--surface-alt); border-bottom: 1px solid var(--line); }
.steps ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0; padding: 36px 0; list-style: none; counter-reset: step; }
.steps li { display: flex; gap: 14px; align-items: flex-start; counter-increment: step; }
.steps li::before { content: counter(step); flex: none; width: 32px; height: 32px; display: grid; place-items: center; font-weight: 750; font-size: 15px; color: #fff; background: var(--navy-800); border-radius: 50%; }
.steps strong { display: block; font-size: 17px; }
.steps span { color: var(--muted); font-size: 15px; }

/* Sections */
section { padding: 96px 0; }
.section-head { text-align: center; margin: 0 auto 56px; max-width: 680px; }
.section-head .lead { margin: 0 auto; }

/* Feature rows */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; padding: 48px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature:nth-of-type(even) .feature-media { order: -1; }
.feature-media { display: flex; justify-content: center; padding: 32px; background: linear-gradient(160deg, var(--navy-900), var(--navy-800) 60%, #04407F); border-radius: 22px; }
.feature-media .shot { max-width: 420px; }
.feature-media.wide { padding: 20px; }
.feature-media.wide .shot { max-width: none; }
.feature ul { margin: 0; padding: 0; list-style: none; }
.feature li { position: relative; padding-left: 28px; margin-bottom: 10px; color: var(--muted); }
.feature li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-left: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(-45deg); }
.env-badges { display: flex; gap: 10px; margin: 4px 0 20px; flex-wrap: wrap; }
.env { font-size: 12px; font-weight: 800; letter-spacing: .08em; color: #fff; padding: 5px 10px; border-radius: 6px; }
.env-prod { background: var(--prod); }
.env-sandbox { background: var(--sandbox); }

/* Card grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.card p { color: var(--muted); font-size: 16px; margin: 0; }
.card .icon { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 12px; background: #E3EEFB; color: var(--blue); }
.card .icon svg { width: 22px; height: 22px; }
a.card { display: block; color: inherit; text-decoration: none; }
a.card:hover { border-color: #B9D3F2; box-shadow: 0 12px 30px -16px rgba(1, 118, 211, .45); transform: translateY(-2px); }
a.card h3 { color: var(--ink); }
.card .more { display: inline-block; margin-top: 16px; font-size: 15px; font-weight: 650; color: var(--blue); }
.card.soon { background: var(--surface-alt); border-style: dashed; }

/* Privacy band */
.privacy { background: var(--surface-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.privacy .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.privacy .grid { grid-template-columns: repeat(2, 1fr); }
.privacy .card { padding: 22px; }
.privacy .card h3 { font-size: 17px; margin-bottom: 6px; }

/* Install band */
.install { color: #fff; text-align: center; background: radial-gradient(800px 400px at 50% 0%, rgba(26, 176, 240, .3), transparent 70%), linear-gradient(160deg, var(--navy-900), var(--navy-800)); }
.install img.logo { width: 72px; height: 72px; margin: 0 auto 24px; }
.install h2 { color: #fff; }
.install .lead { color: #C9D6E8; margin: 0 auto 32px; }
.install .cta-row { justify-content: center; }

/* Footer */
.site-footer { padding: 48px 0 56px; background: var(--navy-900); color: #9AABC2; font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: #C9D6E8; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { font-size: 16px; margin-bottom: 10px; }
.site-footer .brand img { width: 24px; height: 24px; }
.disclaimer { max-width: 520px; margin: 0; }

/* Document pages: privacy policy and guides */
.doc { padding: 64px 0 96px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); letter-spacing: -0.03em; margin-bottom: 8px; }
.doc h2 { font-size: 24px; margin-top: 44px; }
.doc .meta { color: var(--muted); margin-bottom: 32px; }
.doc li { margin-bottom: 6px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 8px 0 16px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
/* Lets long code such as chrome.storage.session wrap, so the table fits phone screens */
.doc td { overflow-wrap: anywhere; }
.doc th { background: var(--surface-alt); }
.doc .breadcrumb { font-size: 15px; margin-bottom: 20px; }
.doc .breadcrumb a { text-decoration: none; }
.guide-list { display: grid; gap: 16px; margin-top: 32px; }

/* Responsive */
@media (max-width: 900px) {
  .hero .wrap, .feature, .privacy .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero .wrap { padding-top: 56px; padding-bottom: 72px; }
  .feature:nth-of-type(even) .feature-media { order: 0; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps ol { grid-template-columns: 1fr; gap: 18px; }
  .float-key { left: 8px; bottom: -18px; }
  .nav a:not(.btn) { display: none; }
  section { padding: 72px 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero .wrap { padding-top: 40px; }
  .grid, .privacy .grid { grid-template-columns: minmax(0, 1fr); }
  .hero-shot { justify-self: stretch; }
  .float-key { display: none; }
  .feature-media { padding: 18px; }
  .hero-shot .shot { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}
