:root {
  --ink: #0b2430;
  --ink-soft: #3d5a66;
  --ink-muted: #6b8590;
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.72);
  --teal: #0f8a7a;
  --teal-deep: #0a5f54;
  --teal-soft: #d8f5ef;
  --amber: #e89a2f;
  --amber-deep: #c57a12;
  --mint: #b8f0e4;
  --sand: #ffe8c7;
  --sky: #e8f4f8;
  --danger-bg: #fdecea;
  --danger-border: #f5c2c0;
  --danger-ink: #8a2b2b;
  --ok-bg: #e8f7ef;
  --ok-border: #b7e4c7;
  --ok-ink: #1b5e3a;
  --warn-bg: #fff6e5;
  --warn-border: #f0d59a;
  --warn-ink: #7a5610;
  --info-bg: #eaf4fb;
  --info-border: #b8d7ea;
  --info-ink: #1f4e6b;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(11, 36, 48, 0.08);
  --max: 1120px;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.65;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(184, 240, 228, 0.85), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(255, 232, 199, 0.7), transparent 50%),
    radial-gradient(700px 500px at 70% 100%, rgba(216, 245, 239, 0.55), transparent 55%),
    linear-gradient(180deg, var(--sky) 0%, #f7fbfc 45%, #fffdf8 100%);
  background-attachment: fixed;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--teal-deep);
}

a:hover {
  color: var(--teal);
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(247, 251, 252, 0.78);
  border-bottom: 1px solid rgba(11, 36, 48, 0.06);
}

.site-nav__inner,
.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(15, 138, 122, 0.22);
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--teal-deep);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 14px;
  padding: 0.9rem 1.25rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--amber);
  color: #1f1404;
  box-shadow: 0 10px 28px rgba(232, 154, 47, 0.28);
}

.btn--primary:hover {
  background: var(--amber-deep);
  color: #1f1404;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--teal-deep);
  border: 1px solid rgba(15, 138, 122, 0.22);
}

.btn--ghost:hover {
  background: var(--surface);
  color: var(--teal-deep);
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon path,
.icon circle,
.icon rect,
.icon line,
.icon polyline,
.icon polygon {
  stroke: inherit;
  fill: none;
}

.icon--lg {
  width: 1.75rem;
  height: 1.75rem;
}

.icon--xl {
  width: 2.25rem;
  height: 2.25rem;
}

/* Landing */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  animation: rise 0.7s ease both;
}

.hero__brand img {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(15, 138, 122, 0.28);
}

.hero__brand-name {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--ink);
  max-width: 18ch;
  animation: rise 0.7s ease 0.08s both;
}

.hero__lead {
  margin: 0 0 1.75rem;
  max-width: 38ch;
  color: var(--ink-soft);
  font-size: 1.1rem;
  animation: rise 0.7s ease 0.16s both;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  animation: rise 0.7s ease 0.24s both;
}

.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0.25rem 0 0.5rem;
  animation: float-in 0.9s ease 0.15s both;
}

.hero-stage {
  position: relative;
  width: min(100%, 300px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.hero-stage__glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(15, 138, 122, 0.18);
  filter: blur(18px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 5s ease-in-out infinite;
  z-index: 0;
}

.phone-mock {
  position: relative;
  z-index: 1;
  width: min(100%, 280px);
  border-radius: 34px;
  background: #102833;
  padding: 10px;
  box-shadow:
    0 30px 60px rgba(11, 36, 48, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone-mock__notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 22px;
  border-radius: 999px;
  background: #0a1a21;
  z-index: 3;
}

.phone-mock__screen {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  background: #f4f8f9;
  min-height: 460px;
  height: 460px;
  display: flex;
  flex-direction: column;
}

.mock-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1.55rem 0.9rem 0.85rem;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(11, 36, 48, 0.06);
  backdrop-filter: blur(8px);
}

.mock-header img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.mock-header__meta {
  min-width: 0;
}

.mock-header__meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.86rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-header__meta span {
  display: block;
  color: var(--ink-muted);
  font-size: 0.72rem;
}

.mock-topic {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.65rem 0.85rem 0;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-deep);
  font-size: 0.72rem;
  font-weight: 700;
  width: fit-content;
}

.mock-feed {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 0.85rem;
  overflow: auto;
  min-height: 0;
  scrollbar-width: none;
}

.mock-feed::-webkit-scrollbar {
  display: none;
}

.mock-msg {
  display: flex;
  max-width: 92%;
  animation: bubble 0.45s ease both;
}

.mock-msg--user {
  align-self: flex-end;
}

.mock-msg--ai {
  align-self: flex-start;
}

.mock-bubble {
  padding: 0.7rem 0.85rem;
  border-radius: 16px;
  font-size: 0.84rem;
  line-height: 1.45;
  box-shadow: 0 8px 18px rgba(11, 36, 48, 0.06);
}

.mock-bubble p {
  margin: 0;
}

.mock-bubble--user {
  background: linear-gradient(135deg, #1aa392, #0f8a7a);
  color: #fff;
  border-bottom-right-radius: 5px;
}

.mock-bubble--ai {
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(11, 36, 48, 0.06);
  border-bottom-left-radius: 5px;
}

.mock-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.2rem;
}

.mock-msg--typing .mock-bubble {
  padding: 0.85rem 1rem;
}

.typing {
  display: inline-flex;
  gap: 0.28rem;
  align-items: center;
  height: 0.9rem;
}

.typing i {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--ink-muted);
  display: block;
  animation: typing-dot 1s ease-in-out infinite;
}

.typing i:nth-child(2) {
  animation-delay: 0.15s;
}

.typing i:nth-child(3) {
  animation-delay: 0.3s;
}

.mock-composer {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.9);
  border-top: 1px solid rgba(11, 36, 48, 0.05);
}

.mock-composer__field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0 0.85rem;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid rgba(15, 138, 122, 0.28);
  color: var(--ink-muted);
  font-size: 0.82rem;
}

.mock-composer__send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--amber);
  color: #1f1404;
  box-shadow: 0 8px 18px rgba(232, 154, 47, 0.28);
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(11, 36, 48, 0.08);
  border: 1px solid rgba(15, 138, 122, 0.14);
}

.hero-chip .icon {
  width: 0.95rem;
  height: 0.95rem;
  color: var(--teal-deep);
}

.section {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.section__head {
  max-width: 40rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section__head h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
}

.section__head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

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

.feature {
  padding: 0.25rem 0.5rem;
}

.feature__icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--teal-soft);
  color: var(--teal-deep);
  margin-bottom: 1rem;
}

.feature h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.feature p {
  margin: 0;
  color: var(--ink-soft);
}

.download {
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 2.75rem);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(232, 245, 239, 0.9)),
    var(--surface);
  border: 1px solid rgba(15, 138, 122, 0.12);
  box-shadow: var(--shadow);
  text-align: center;
}

.download h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}

.download p {
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
}

.store-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.store-badge {
  display: inline-flex;
  border-radius: 12px;
  transition: transform 0.2s ease;
  line-height: 0;
}

.store-badge:hover {
  transform: translateY(-2px);
}

.store-badge img {
  height: 48px;
  width: auto;
  display: block;
}

.resources {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.resource {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius);
  background: var(--surface-soft);
  border: 1px solid rgba(11, 36, 48, 0.06);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.resource:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 138, 122, 0.28);
  background: var(--surface);
  color: inherit;
}

.resource__icon {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--sand);
  color: var(--amber-deep);
}

.resource h3 {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.resource p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.resource__chevron {
  color: var(--ink-muted);
}

.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid rgba(11, 36, 48, 0.06);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.site-footer a {
  font-weight: 600;
  text-decoration: none;
}

/* Legal pages */
body.legal-page {
  background:
    radial-gradient(900px 420px at 0% 0%, rgba(184, 240, 228, 0.55), transparent 55%),
    linear-gradient(180deg, #f4fafb 0%, #fffdf8 100%);
}

.legal {
  width: min(100% - 2rem, 820px);
  margin: 1.5rem auto 3rem;
  background: var(--surface);
  border: 1px solid rgba(11, 36, 48, 0.06);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.legal__hero {
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background:
    linear-gradient(135deg, rgba(15, 138, 122, 0.96), rgba(10, 95, 84, 0.98));
  color: #fff;
}

.legal__hero h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
}

.legal__hero p {
  margin: 0;
  opacity: 0.92;
}

.legal__meta {
  margin-top: 0.75rem !important;
  font-size: 0.9rem;
  opacity: 0.8 !important;
}

.legal__body {
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.legal__body h2 {
  margin: 2rem 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--teal-deep);
  border-bottom: 1px solid rgba(15, 138, 122, 0.14);
  padding-bottom: 0.5rem;
}

.legal__body h2:first-child {
  margin-top: 0;
}

.legal__body h3 {
  margin: 1.5rem 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
}

.legal__body h4 {
  margin: 1rem 0 0.4rem;
  font-size: 1rem;
}

.legal__body ul,
.legal__body ol {
  padding-left: 1.25rem;
}

.legal__body li {
  margin-bottom: 0.35rem;
}

.callout {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  margin: 1.25rem 0;
  border: 1px solid transparent;
}

.callout--ok {
  background: var(--ok-bg);
  border-color: var(--ok-border);
  color: var(--ok-ink);
}

.callout--warn {
  background: var(--warn-bg);
  border-color: var(--warn-border);
  color: var(--warn-ink);
}

.callout--danger {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger-ink);
}

.callout--info {
  background: var(--info-bg);
  border-color: var(--info-border);
  color: var(--info-ink);
}

.compliance-badge {
  text-align: center;
  padding: 1.25rem;
  border-radius: 16px;
  background: var(--ok-bg);
  border: 2px solid #4caf50;
  margin: 1.25rem 0;
}

.compliance-badge h2,
.compliance-badge h4 {
  margin: 0;
  color: #2e7d32;
  border: none;
  padding: 0;
}

.law-section {
  background: #f6fafb;
  padding: 1.15rem 1.25rem;
  border-radius: 14px;
  margin: 1.25rem 0;
  border-left: 4px solid var(--teal);
}

.checklist {
  background: #f6fafb;
  padding: 1.25rem;
  border-radius: 14px;
  margin: 1.25rem 0;
}

.back-link {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(11, 36, 48, 0.06);
}

.back-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  font-weight: 700;
  color: var(--teal-deep);
  padding: 0.7rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 138, 122, 0.25);
}

.back-link a:hover {
  background: var(--teal-soft);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes bubble {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes typing-dot {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  40% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

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

  .hero h1 {
    max-width: none;
  }

  .nav-links {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
