:root {
  --ink:            #0E1116;
  --ink-soft:       #2A2F3A;
  --body:           #14181f;
  --muted:          #5B6472;
  --muted-light:    #9AA1AC;
  --brand:          #3B5CE0;
  --brand-dark:     #2A46C4;
  --brand-tint:     #EEF1FF;
  --line:           #EDEEF1;
  --line-strong:    #EAEBEF;
  --surface:        #F7F8FA;
  --band:           #FAFAFB;
  --green:          #61C554;
  --red:            #E0574B;
  --shell:          1160px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #fff;
  color: var(--body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

.page { width: 100%; overflow-x: hidden; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 28px 32px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand:hover { color: inherit; }

.brand-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: url('/icon_160x160.png') center / cover no-repeat;
  flex-shrink: 0;
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.brand-sm .brand-mark { width: 20px; height: 20px; border-radius: 6px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background-color .15s ease;
  white-space: nowrap;
}

.btn-sm { font-size: 14px; padding: 10px 18px; border-radius: 8px; }

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }

.btn-dark { background: var(--body); color: #fff; }
.btn-dark:hover { background: var(--ink-soft); color: #fff; }

.btn:focus-visible,
.subscribe input:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ---------- hero ---------- */

.hero {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 56px 32px 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: 52px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 22px;
  color: var(--ink);
}

.lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 440px;
}

.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-note { font-size: 13px; color: var(--muted-light); }

.hero-canvas-wrap { overflow: hidden; height: 420px; position: relative; }
.hero-canvas-wrap canvas { width: 100%; height: 100%; display: block; }

.rule { height: 1px; background: var(--line); max-width: var(--shell); margin: 0 auto; }

/* ---------- feature sections ---------- */

.feature {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 100px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.band {
  background: var(--band);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 5px;
  background: #F1F2F4;
  color: var(--muted-light);
  font-size: 10.5px;
  letter-spacing: 0.02em;
}

.feature h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  color: var(--ink);
}

.feature p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
  max-width: 420px;
}

.feature p + p { margin-top: 14px; }

/* ---------- app window mock ---------- */

.window {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px -18px rgba(20, 30, 60, .2);
  border: 1px solid var(--line-strong);
  background: #fff;
}

.window-plain { position: relative; }

.window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  border-bottom: 1px solid #EEEFF2;
}

.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot-red { background: #ED6A5E; }
.dot-amber { background: #F4BF4F; }
.dot-green { background: var(--green); }

.window-title { margin-left: 8px; font-size: 11px; color: var(--muted-light); }

.window-body { padding: 18px 20px; }
.stack-10 { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px; }
.stack-8 { display: flex; flex-direction: column; gap: 8px; }

/* connected accounts */

.source-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  background: var(--surface);
  border-radius: 9px;
}

.source-icon { width: 26px; height: 26px; border-radius: 7px; flex-shrink: 0; }
.source-text { flex: 1; min-width: 0; }
.source-name { font-size: 13px; font-weight: 600; color: var(--ink); }
.source-detail { font-size: 11px; color: var(--muted-light); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}

.status-live { color: var(--green); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.status-soon {
  color: var(--muted-light);
  background: #F1F2F4;
  border-radius: 6px;
  padding: 3px 8px;
}

/* table mock */

.table-head {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  padding: 0 10px 8px;
  border-bottom: 1px solid #EEEFF2;
  margin-bottom: 8px;
}

.table-head span {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted-light);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.table-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  padding: 9px 10px;
  align-items: center;
}

.cell { font-size: 12px; color: var(--ink-soft); }

.pill {
  font-size: 10.5px;
  font-weight: 600;
  border-radius: 6px;
  padding: 3px 8px;
  width: fit-content;
}

.pill-blue { color: var(--brand); background: var(--brand-tint); }
.pill-grey { color: var(--muted-light); background: #F1F2F4; }

/* tasks */

.task-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  background: var(--surface);
  border-radius: 9px;
}

.checkbox {
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 1.5px solid #D8DBE1;
  flex-shrink: 0;
}

.task-text {
  font-size: 12.5px;
  color: var(--ink-soft);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.task-src { font-size: 10px; color: var(--muted-light); }

.task-due { font-size: 10px; font-weight: 600; color: var(--muted-light); white-space: nowrap; }
.task-due-late { color: var(--red); }

/* reminders */

.reminder-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  background: var(--surface);
  border-radius: 9px;
}

.reminder-icon {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--brand-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.reminder-icon span { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); }

.reminder-text {
  font-size: 12.5px;
  color: var(--ink-soft);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.reminder-meta { font-size: 10px; color: var(--muted-light); }

.toggle {
  width: 28px; height: 16px;
  border-radius: 9px;
  background: var(--brand);
  position: relative;
  flex-shrink: 0;
}

.toggle::after {
  content: '';
  position: absolute;
  top: 2px; right: 2px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
}

/* chat */

.chat { display: flex; flex-direction: column; gap: 12px; padding: 20px 22px; }

.bubble {
  max-width: 80%;
  font-size: 12.5px;
  line-height: 1.5;
  padding: 10px 13px;
}

.bubble-out {
  align-self: flex-end;
  background: var(--brand);
  color: #fff;
  border-radius: 11px 11px 3px 11px;
}

.bubble-in {
  align-self: flex-start;
  background: var(--surface);
  color: var(--ink-soft);
  border-radius: 11px 11px 11px 3px;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  max-width: 88%;
}

.tick {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  margin-top: 2px;
}

.bubble-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.bubble-link {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}

.bubble-link:hover { text-decoration: underline; }

/* web clipper */

.skeleton { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.sk { height: 9px; background: #EEEFF2; border-radius: 3px; display: block; }
.sk-block { height: 80px; width: 100%; border-radius: 6px; margin-top: 6px; }

.clipper {
  position: absolute;
  top: 16px; right: 16px;
  width: 190px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  box-shadow: 0 14px 34px -10px rgba(20, 30, 60, .28);
  padding: 12px;
}

.clipper-head { display: flex; align-items: center; gap: 6px; margin-bottom: 9px; }

.clipper-mark {
  width: 16px; height: 16px;
  border-radius: 5px;
  background: url('/icon_160x160.png') center / cover no-repeat;
  flex-shrink: 0;
}

.clipper-title { font-size: 11px; font-weight: 600; color: var(--ink); }
.clipper .sk { margin-bottom: 10px; }

.clipper-btn {
  background: var(--brand);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  text-align: center;
  padding: 7px;
  border-radius: 6px;
}

/* real-life example */

.example-step { display: flex; flex-direction: column; gap: 8px; }

.example-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-light);
}

.example-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
}

.example-from {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 4px;
}

.example-body {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.example-arrow {
  text-align: center;
  color: var(--muted-light);
  font-size: 14px;
  line-height: 1;
  padding: 2px 0;
}

.example-card-task { padding: 4px 8px; }
.example-task { border: 0; padding: 8px 4px; }

/* ---------- cta ---------- */

.cta {
  max-width: 640px;
  margin: 0 auto;
  padding: 110px 32px;
  text-align: center;
}

.cta h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: var(--ink);
}

.cta > p { font-size: 15px; color: #6B7280; margin: 0 0 28px; }

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.subscribe { display: flex; gap: 10px; justify-content: center; }

.subscribe input {
  flex: 1;
  max-width: 300px;
  padding: 13px 16px;
  border-radius: 9px;
  border: 1px solid #E1E3E8;
  font-size: 14.5px;
  font-family: inherit;
  outline: none;
  color: var(--body);
  background: #fff;
}

.subscribe input::placeholder { color: var(--muted-light); }
.subscribe .btn { font-size: 14.5px; padding: 13px 20px; }

.form-msg {
  font-size: 13px;
  color: var(--muted);
  margin: 14px 0 0;
  min-height: 18px;
}

.form-msg[data-state="error"] { color: var(--red); }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--line); }

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-copy { font-size: 13.5px; color: var(--muted-light); }
.footer-link { font-size: 13.5px; font-weight: 600; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero,
  .feature {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero { padding: 32px 24px 72px; }
  .hero h1 { font-size: 38px; }
  .lede { font-size: 17px; max-width: none; }
  .hero-canvas-wrap { height: 320px; order: -1; }

  .feature { padding: 72px 24px; }
  .feature p { max-width: none; }

  /* text always leads on mobile, regardless of desktop order */
  .feature-reverse .feature-copy { order: -1; }

  .site-header { padding: 20px 24px; }
  .cta { padding: 80px 24px; }
  .footer-inner { padding: 24px; }
}

@media (max-width: 560px) {
  .hero h1 { font-size: 32px; }
  .feature h2 { font-size: 26px; }
  .subscribe { flex-direction: column; align-items: stretch; }
  .subscribe input { max-width: none; }
  .subscribe .btn { justify-content: center; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .clipper { width: 160px; top: 12px; right: 12px; }
}

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