/* Daybreak Labs — shared styles */
:root {
  --purple: #6750A4;
  --purple-deep: #4F378B;
  --lilac: #E8DEF8;
  --lilac-soft: #F3EDF7;
  --on: #1C1B1F;
  --muted: #49454F;
  --bg: #FFFBFE;
  --surface: rgba(255, 251, 254, 0.72);
  --card: #FFFFFF;
  --border: rgba(103, 80, 164, 0.12);
  --shadow: 0 8px 32px rgba(103, 80, 164, 0.08), 0 2px 8px rgba(28, 27, 31, 0.04);
  --shadow-lg: 0 24px 64px rgba(103, 80, 164, 0.14), 0 8px 24px rgba(28, 27, 31, 0.06);
  --radius: 1.5rem;
  --radius-lg: 2rem;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--on);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

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

a { color: var(--purple); transition: color 0.2s var(--ease); }
a:hover { color: var(--purple-deep); }

/* —— Nav —— */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  background: rgba(255, 251, 254, 0.78);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--on);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.nav-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(103, 80, 164, 0.2);
}

.nav-brand span { color: var(--purple); }

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.15rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  border-radius: 9999px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.nav-links a:hover {
  background: var(--lilac-soft);
  color: var(--purple);
}

/* —— Hero —— */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 5.5rem 1.5rem 4.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(232, 222, 248, 0.9) 0%, transparent 60%),
    linear-gradient(175deg, #F3EDF7 0%, #FFFBFE 45%, #FFF8F0 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.55;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 42rem;
  margin: 0 auto;
}

.hero-logo {
  width: 88px;
  height: 88px;
  margin: 0 auto 1.5rem;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: var(--shadow-lg), 0 0 0 6px rgba(255, 255, 255, 0.6);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  color: var(--purple);
  font-weight: 650;
  margin: 0 0 1rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  margin: 0 0 1rem;
  letter-spacing: -0.035em;
  line-height: 1.12;
  font-weight: 750;
  color: var(--on);
}

.hero .lead {
  color: var(--muted);
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  max-width: 34rem;
  margin: 0 auto 2rem;
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--purple);
  color: #fff !important;
  text-decoration: none;
  padding: 0.8rem 1.4rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(103, 80, 164, 0.28);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.btn:hover {
  background: var(--purple-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(103, 80, 164, 0.35);
  color: #fff !important;
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--purple) !important;
  border: 1.5px solid var(--lilac);
  box-shadow: 0 2px 8px rgba(103, 80, 164, 0.06);
}

.btn.ghost:hover {
  background: #fff;
  border-color: var(--purple);
  transform: translateY(-1px);
}

.btn.disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
  cursor: default;
  box-shadow: none;
}

/* —— Sections —— */
.section {
  max-width: 960px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

.section-header {
  margin-bottom: 1.75rem;
}

.section h2 {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  margin: 0 0 0.4rem;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.section .sub {
  color: var(--muted);
  margin: 0;
  font-size: 1rem;
}

/* —— Values strip —— */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 960px;
  margin: -1.5rem auto 0;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

.value-pill {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.value-pill .icon {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
  line-height: 1;
}

.value-pill strong {
  display: block;
  font-size: 0.95rem;
  color: var(--on);
  letter-spacing: -0.01em;
  margin-bottom: 0.2rem;
}

.value-pill span {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

@media (max-width: 700px) {
  .values { grid-template-columns: 1fr; margin-top: -1rem; }
}

/* —— Cards / Apps —— */
.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 200px;
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--purple), var(--lilac));
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.card:hover::before { opacity: 1; }

.card .badge {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  background: var(--lilac-soft);
  color: var(--purple);
  padding: 0.35rem 0.7rem;
  border-radius: 9999px;
}

.card .badge.soon {
  background: #F0EFF1;
  color: var(--muted);
}

.card h3 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
  line-height: 1.55;
}

.card .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.card .actions .btn { font-size: 0.85rem; padding: 0.6rem 1.1rem; }

/* —— Legal pages —— */
.page-hero {
  padding: 2.75rem 1.5rem 1.5rem;
  background:
    radial-gradient(ellipse 70% 80% at 30% 0%, rgba(232, 222, 248, 0.7) 0%, transparent 55%),
    linear-gradient(180deg, var(--lilac-soft) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.page-hero .inner {
  max-width: 720px;
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.15rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.03em;
  font-weight: 750;
}

.page-hero .meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.legal h2 {
  font-size: 1.15rem;
  margin-top: 2rem;
  margin-bottom: 0.65rem;
  letter-spacing: -0.015em;
  font-weight: 700;
  color: var(--on);
}

.legal h3 {
  font-size: 1rem;
  margin-top: 1.35rem;
  margin-bottom: 0.45rem;
  font-weight: 650;
  color: var(--on);
}

.legal p { margin: 0 0 0.9rem; color: var(--on); }
.legal ul { margin: 0 0 1rem; padding-left: 1.35rem; color: var(--on); }
.legal li { margin-bottom: 0.4rem; }
.legal strong { font-weight: 650; }

.note {
  background: var(--lilac-soft);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
}

/* —— Footer —— */
.footer {
  margin-top: 2rem;
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  background: linear-gradient(180deg, transparent, var(--lilac-soft));
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 650;
  color: var(--purple);
  text-decoration: none;
  margin-bottom: 0.35rem;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
}

.footer-links {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.25rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
}

.footer-links a:hover { color: var(--purple); }

.footer .fine {
  margin-top: 1.15rem;
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 0.85;
}

@media (max-width: 560px) {
  .nav { padding: 0.75rem 1rem; }
  .nav-brand span { font-size: 0.95rem; }
  .nav-links a { padding: 0.35rem 0.55rem; font-size: 0.82rem; margin: 0; }
  .hero { padding: 3.5rem 1.15rem 3rem; }
  .hero-logo { width: 72px; height: 72px; border-radius: 20px; }
}
