/* Ressa landing page. Brand: Ink #101826 · Mist #F3F5F7 · Signal #16B88C · Amber #E0951F · Red #D93F3F */

:root {
  --ink: #101826;
  --mist: #F3F5F7;
  --signal: #16B88C;
  --amber: #E0951F;
  --red: #D93F3F;

  --bg: #FFFFFF;
  --bg-alt: var(--mist);
  --text: var(--ink);
  --muted: #5B6575;
  --line: rgba(16, 24, 38, 0.10);
  --card: #FFFFFF;
  --shadow: 0 30px 60px -20px rgba(16, 24, 38, 0.28), 0 12px 24px -12px rgba(16, 24, 38, 0.18);
  --menubar-bg: rgba(246, 247, 249, 0.86);
  --menubar-text: #1d2433;
  --radius: 14px;
  color-scheme: light;
}

/* Dark: follow the system unless the visitor picked light; or when they picked dark. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0B111C;
    --bg-alt: #101826;
    --text: #EEF1F5;
    --muted: #9AA4B4;
    --line: rgba(255, 255, 255, 0.10);
    --card: #151E2D;
    --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7), 0 12px 24px -12px rgba(0, 0, 0, 0.5);
    --menubar-bg: rgba(30, 36, 48, 0.86);
    --menubar-text: #E8ECF2;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B111C;
  --bg-alt: #101826;
  --text: #EEF1F5;
  --muted: #9AA4B4;
  --line: rgba(255, 255, 255, 0.10);
  --card: #151E2D;
  --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7), 0 12px 24px -12px rgba(0, 0, 0, 0.5);
  --menubar-bg: rgba(30, 36, 48, 0.86);
  --menubar-text: #E8ECF2;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
code {
  font: 0.86em ui-monospace, "SF Mono", Menlo, monospace;
  background: var(--line);
  padding: 0.1em 0.35em;
  border-radius: 5px;
}

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

h1, h2, h3 { font-family: Sora, Inter, sans-serif; letter-spacing: -0.03em; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 650; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 600; }
h3 { font-size: 1.08rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
.center { text-align: center; }
.muted { color: var(--muted); }

.eyebrow {
  font: 600 0.78rem/1 Inter, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 14px;
}
.accent { color: var(--signal); }

.only-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .only-dark { display: block; }
  :root:not([data-theme="light"]) .only-light { display: none; }
}
:root[data-theme="dark"] .only-dark { display: block; }
:root[data-theme="dark"] .only-light { display: none; }

/* Theme toggle: shows the sun in dark mode (switch to light) and the moon in light mode. */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0;
  border: 1px solid var(--line); border-radius: 10px;
  background: transparent; color: var(--muted); cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.theme-toggle:hover { color: var(--text); background: var(--line); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px;
  border-radius: 12px;
  background: var(--signal);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: 0 8px 20px -8px rgba(22, 184, 140, 0.7);
}
.btn:hover { transform: translateY(-1px); background: #12a47c; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: var(--line); }
.btn-small { padding: 8px 14px; font-size: 0.92rem; box-shadow: none; }
.btn-disabled { opacity: 0.6; pointer-events: none; box-shadow: none; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo .mark { width: 28px; height: 28px; }
.logo .wordmark { width: auto; height: 17px; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 0.95rem; }
.nav-links a:not(.btn) { text-decoration: none; color: var(--muted); }
.nav-links a:not(.btn):hover { color: var(--text); }

/* Hero */
.hero {
  padding: 72px 0 40px;
  background:
    radial-gradient(900px 420px at 85% 10%, rgba(22, 184, 140, 0.14), transparent 60%),
    radial-gradient(700px 360px at 0% 0%, rgba(224, 149, 31, 0.08), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: start; }
.hero-copy { padding-top: 48px; }
.hero h1 { margin-bottom: 22px; }
.lede { font-size: 1.16rem; color: var(--muted); max-width: 34em; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 32px 0 18px; }
.fine { font-size: 0.86rem; color: var(--muted); }

.hero-visual { position: relative; }
.menubar {
  display: flex; justify-content: space-between; align-items: center;
  height: 30px; padding: 0 14px;
  border-radius: 10px 10px 0 0;
  background: var(--menubar-bg);
  color: var(--menubar-text);
  font: 500 13px/1 -apple-system, BlinkMacSystemFont, Inter, sans-serif;
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
}
.menubar-left, .menubar-right { display: flex; align-items: center; gap: 16px; }
.menubar-left span { opacity: 0.85; }
.apple { width: 12px; height: 14px; border-radius: 50% 50% 45% 45%; background: currentColor; opacity: 0.85; }
.mb-icon { width: 17px; height: 17px; color: var(--menubar-text); }
.tint-amber { color: var(--amber); }
.tint-red { color: var(--red); }

.popover {
  position: relative;
  width: min(380px, 100%);
  margin: 6px 0 0 auto;
  margin-right: 84px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  aspect-ratio: 760 / 1460;           /* top of the overview screenshot */
}
.popover img { width: 100%; }
.popover::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg));
}

/* Providers */
.providers { padding: 36px 0 56px; border-bottom: 1px solid var(--line); }
.providers-title { text-align: center; color: var(--muted); font-size: 0.92rem; margin-bottom: 22px; }
.provider-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
}
.provider-list li {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font: 600 1rem Sora, sans-serif;
  text-align: center;
}
.provider-list small { font: 400 0.78rem Inter, sans-serif; color: var(--muted); }
.plogo { width: 30px; height: 30px; }

/* Features */
.feature { padding: 104px 0; }
.feature-alt { background: var(--bg-alt); }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.feature-grid.reverse .feature-copy { order: 2; }
.feature-copy h2 { margin-bottom: 18px; }
.feature-copy > p { color: var(--muted); font-size: 1.06rem; }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.42em;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--signal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.shot { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.shot-window { border-radius: 12px; }
.shot-card { width: min(400px, 100%); justify-self: center; position: relative; }

/* The Bedrock card in the Claude tab screenshot (760 px wide; card spans y 1848–2448). */
.crop-bedrock { aspect-ratio: 760 / 600; }
.crop-bedrock img { width: 100%; margin-top: calc(-1848 / 760 * 100%); }

.shot-fade { aspect-ratio: 760 / 1300; }
.shot-fade::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 110px;
  background: linear-gradient(to bottom, transparent, var(--bg-alt));
}

/* Icon states */
.icon-states { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.state {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.state h3 { margin: 16px 0 6px; }
.state p { color: var(--muted); font-size: 0.93rem; line-height: 1.5; }
.state-bar {
  display: flex; align-items: center; justify-content: center;
  height: 44px; border-radius: 9px;
  background: var(--menubar-bg);
  border: 1px solid var(--line);
}
.state-bar .mb-icon { width: 22px; height: 22px; }
.dot-wrap { position: relative; display: inline-block; }
.red-dot {
  position: absolute; top: -2px; right: -5px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red);
}

/* Small features */
.grid-section { padding: 104px 0; border-top: 1px solid var(--line); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.tile {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid var(--line);
}
.tile h3 { margin-bottom: 8px; }
.tile p { color: var(--muted); font-size: 0.95rem; line-height: 1.55; }

/* Privacy */
.privacy { padding: 104px 0; background: var(--ink); color: #EEF1F5; }
.privacy .eyebrow { color: var(--signal); }
.privacy-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; }
.privacy h2 { margin-bottom: 14px; }
.privacy-grid > div > p { color: #9AA4B4; }
.privacy-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.privacy-list li { color: #B7C0CD; padding-left: 22px; border-left: 2px solid rgba(22, 184, 140, 0.6); }
.privacy-list b { display: block; color: #fff; font-weight: 600; margin-bottom: 2px; }

/* Download */
.download { padding: 112px 0; text-align: center; }
.download-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.app-icon { width: 112px; height: 112px; filter: drop-shadow(0 18px 30px rgba(16, 24, 38, 0.3)); margin-bottom: 8px; }
.download p { color: var(--muted); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 0.85rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .feature-grid, .privacy-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy { padding-top: 0; }
  .feature-grid.reverse .feature-copy { order: 0; }
  .popover { margin: 6px auto 0; }
  .grid { grid-template-columns: 1fr 1fr; }
  .provider-list { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .feature, .grid-section, .privacy { padding: 72px 0; }
}
@media (max-width: 560px) {
  .nav-links a:not(.btn) { display: none; }
  .menubar-left span:not(.apple), .menubar-left b { display: none; }
  .grid, .icon-states { grid-template-columns: 1fr; }
  .provider-list { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-top: 40px; }
}
