/* Daynapse website. Light from docs/design/brand-02-website; dark swaps the same tokens. */

:root {
  color-scheme: light dark;
  --bg: #f5f7fc;
  --glow: #dce7ff;
  --text: #0f1115;
  --text-2: #3c4150;
  --text-3: #5b6170;
  --line: #dde3ee;
  --surface: #ffffff;
  --bubble: #eef2fa;
  --blue: #2f6fed;
  --blue-text: #2f6fed;
  --tint: #e6eefe;
  --tint-text: #1d4fc4;
  --button: #0f1115;
  --button-text: #ffffff;
  --shadow: rgba(20, 40, 100, 0.18);
  --float-border: transparent;
  --orange-bg: #fff1dd;
  --orange: #e08600;
  --sans: -apple-system, "SF Pro Text", system-ui, sans-serif;
  --display: -apple-system, "SF Pro Display", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d12;
    --glow: #142446;
    --text: #f2f4f8;
    --text-2: #c4c9d4;
    --text-3: #9aa1b0;
    --line: #262b36;
    --surface: #171a21;
    --bubble: #232834;
    --blue-text: #6e9bff;
    --tint: #1a2a4d;
    --tint-text: #9dbbff;
    --button: #f2f4f8;
    --button-text: #0f1115;
    --shadow: rgba(0, 0, 0, 0.5);
    --float-border: #333a48;
    --orange-bg: #3a2a12;
    --orange: #ffa53a;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: clip;
}

a {
  color: var(--blue-text);
}

.wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 720px) {
  .wrap {
    padding: 0 40px;
  }
}

@media (min-width: 1200px) {
  .wrap {
    padding: 0 80px;
  }
}

/* Header */

.site-header {
  position: relative;
  z-index: 2;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 16px;
}

.site-nav a {
  color: var(--text-2);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text);
}

@media (max-width: 560px) {
  .site-nav {
    gap: 18px;
    font-size: 15px;
  }

  .site-nav .wide {
    display: none;
  }
}

/* Hero */

.hero {
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -120px 0 0;
  background: radial-gradient(70% 60% at 75% 30%, var(--glow) 0%, var(--bg) 60%);
  z-index: -1;
}

.hero .wrap {
  display: grid;
  gap: 56px;
  padding-top: 48px;
  padding-bottom: 72px;
}

@media (min-width: 1140px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 600px) 1fr;
    align-items: center;
    padding-top: 40px;
    padding-bottom: 80px;
  }
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.badge {
  padding: 6px 12px;
  border-radius: 14px;
  background: var(--tint);
  color: var(--tint-text);
  font-size: 14px;
  font-weight: 600;
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(48px, 9vw, 76px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.033em;
}

.hero h1 span {
  color: var(--blue-text);
}

.lede {
  margin: 0;
  font-size: clamp(18px, 2.4vw, 21px);
  line-height: 1.48;
  color: var(--text-3);
}

.cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.store-button {
  height: 56px;
  padding: 0 28px;
  border-radius: 28px;
  background: var(--button);
  color: var(--button-text);
  font-size: 17px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Phone mockup: the app's dark Today screen, as drawn on the board. */

.stage {
  position: relative;
  width: 530px;
  height: 640px;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .stage {
    zoom: 0.62;
  }
}

.phone {
  position: absolute;
  top: 0;
  left: 80px;
  width: 300px;
  height: 620px;
  border-radius: 48px;
  background: #000;
  border: 10px solid #1c1c1e;
  padding: 54px 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 40px 80px rgba(20, 40, 100, 0.25);
  color: #e5e5ea;
  font-size: 14px;
  line-height: 20px;
  overflow: hidden;
}

.week {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #8e8e93;
}

.week div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.week b {
  width: 26px;
  height: 26px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.week .today b {
  background: #fff;
  color: #000;
}

.screen {
  margin-top: 10px;
  width: 240px;
  height: 420px;
  overflow: hidden;
  position: relative;
}

.cards {
  position: absolute;
  top: 0;
  left: 0;
  width: 358px;
  transform: scale(0.6704);
  transform-origin: top left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #fff;
  font-size: 17px;
  line-height: 24px;
}

.card {
  background: #1c1c1e;
  border-radius: 22px;
  overflow: hidden;
}

.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 10px;
}

.card-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-title {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.card-title strong {
  font-size: 17px;
  font-weight: 600;
}

.card-title small,
.card-key {
  font-size: 13px;
  color: #8e8e93;
}

.card-key {
  font-size: 15px;
  font-weight: 500;
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  margin-left: 16px;
  padding: 7px 16px 7px 0;
  border-top: 0.5px solid #2c2c2e;
}

.check {
  width: 22px;
  height: 22px;
  border-radius: 11px;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.check.open {
  background: none;
  border: 1.5px dashed #636366;
}

.row-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.row-text span {
  color: #e5e5ea;
}

.row-text small {
  font-size: 14px;
  color: #8e8e93;
}

.row.todo .row-text span {
  color: #aeaeb2;
}

.weight {
  min-width: 58px;
  height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  background: #2c2c2e;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 15px;
}

.row.todo .weight {
  color: #636366;
}

.ask {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 22px;
  height: 46px;
  border-radius: 23px;
  background: #1c1c1e;
  border: 0.5px solid #3a3a3c;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  color: #8e8e93;
  font-size: 15px;
}

.ask span {
  flex: 1;
}

.float {
  position: absolute;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--float-border);
  box-shadow: 0 20px 50px var(--shadow);
  color: var(--text);
}

.float.plan {
  top: 90px;
  left: 290px;
  width: 240px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.plan-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--orange-bg);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
}

.float.plan div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.float.plan strong {
  white-space: nowrap;
  font-size: 15px;
  font-weight: 600;
}

.float.plan small {
  font-size: 12px;
  color: var(--text-3);
}

.float.plan .started {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-text);
}

.float.chat {
  top: 350px;
  left: 0;
  width: 300px;
  padding: 18px;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  line-height: 20px;
}

.float.chat .question {
  align-self: flex-end;
  background: var(--bubble);
  border-radius: 14px;
  padding: 8px 12px;
}

.float.chat path {
  stroke: var(--blue-text);
}

/* Features */

.features {
  border-top: 1px solid var(--line);
  padding: 48px 0 72px;
  display: grid;
  gap: 40px 56px;
}

@media (min-width: 800px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.features h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.features p {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  color: var(--text-3);
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--tint);
  color: var(--blue-text);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Text pages: privacy, terms, support */

.doc {
  max-width: 720px;
  padding-top: 32px;
  padding-bottom: 80px;
}

.doc h1 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: clamp(36px, 7vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.doc .updated {
  margin: 0 0 32px;
  color: var(--text-3);
  font-size: 15px;
}

.doc h2 {
  margin: 40px 0 8px;
  font-size: 22px;
  line-height: 1.3;
}

.doc p,
.doc li {
  color: var(--text-2);
}

.doc ul {
  padding-left: 22px;
}

.doc li + li {
  margin-top: 6px;
}

.doc strong {
  color: var(--text);
}

.contact {
  margin: 24px 0;
  padding: 20px 24px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 10px 30px var(--shadow);
}

.contact p {
  margin: 0;
}

.contact a {
  font-size: 20px;
  font-weight: 600;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-3);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-top: 28px;
  padding-bottom: 40px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.site-footer a {
  color: var(--text-3);
}

.site-footer .copy {
  margin-right: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
