:root {
  color-scheme: light;
  --background: #fdfdfd;
  --ink: rgba(0, 0, 0, 0.88);
  --body-ink: rgba(0, 0, 0, 0.78);
  --muted-ink: rgba(0, 0, 0, 0.42);
  --border: rgba(0, 0, 0, 0.1);
  --button: #262626;
  --panel: #171718;
  --panel-ink: rgba(255, 255, 255, 0.92);
  --panel-secondary-ink: rgba(255, 255, 255, 0.58);
  --panel-tertiary-ink: rgba(255, 255, 255, 0.3);
  --panel-fill: rgba(255, 255, 255, 0.16);
  --calendar-red: #ff453a;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--background);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.page-shell {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  padding: 0 24px;
}

.hero-wrap {
  display: flex;
  width: 100%;
  max-width: 860px;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding-bottom: 64px;
}

.hero {
  display: grid;
  width: 100%;
  min-height: 378px;
  grid-template-columns: minmax(0, 378px) minmax(0, 1fr);
  align-items: center;
  column-gap: 80px;
}

.preview-slot {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 378px;
  align-items: center;
  justify-content: center;
}

.app-preview {
  position: relative;
  width: 304px;
  padding: 18px 16px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 26px;
  background: var(--panel);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18), 0 1px 2px rgba(0, 0, 0, 0.18);
  color: var(--panel-ink);
  animation: preview-enter 360ms var(--ease-out) both;
}

.app-preview-header {
  display: flex;
  min-height: 26px;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.4px;
  line-height: 26px;
}

.preview-chevron {
  width: 10px;
  height: 10px;
  margin: 0 2px 4px 0;
  border-right: 2px solid var(--panel-secondary-ink);
  border-bottom: 2px solid var(--panel-secondary-ink);
  transform: rotate(45deg);
}

.tool-list {
  display: grid;
  gap: 2px;
  margin-top: 18px;
}

.tool-row {
  display: grid;
  min-height: 42px;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 10px;
}

.tool-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--panel-fill);
  color: var(--panel-secondary-ink);
}

.tool-glyph {
  display: block;
  width: 17px;
  height: 17px;
  background: currentColor;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.tool-icon-calendar .tool-glyph {
  -webkit-mask-image: url("icons/calendar.png");
  mask-image: url("icons/calendar.png");
}

.tool-icon-reminders .tool-glyph {
  -webkit-mask-image: url("icons/list-bullet.png");
  mask-image: url("icons/list-bullet.png");
}

.tool-icon-mail .tool-glyph {
  -webkit-mask-image: url("icons/envelope.png");
  mask-image: url("icons/envelope.png");
}

.tool-icon-notes .tool-glyph {
  -webkit-mask-image: url("icons/note-text.png");
  mask-image: url("icons/note-text.png");
}

.tool-icon-messages .tool-glyph {
  -webkit-mask-image: url("icons/message.png");
  mask-image: url("icons/message.png");
}

.tool-icon-contacts .tool-glyph {
  -webkit-mask-image: url("icons/person-2.png");
  mask-image: url("icons/person-2.png");
}

.tool-name,
.tool-status {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-name {
  color: var(--panel-ink);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.14px;
  line-height: 20px;
}

.tool-status {
  color: var(--panel-secondary-ink);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.12px;
  line-height: 18px;
}

.tool-row-active .tool-icon {
  background: #f4f4f1;
  color: var(--calendar-red);
}

.tool-row-soon .tool-icon {
  background: rgba(255, 255, 255, 0.08);
  color: var(--panel-tertiary-ink);
}

.tool-row-soon .tool-name,
.tool-row-soon .tool-status {
  color: var(--panel-tertiary-ink);
}

.copy {
  display: flex;
  min-width: 0;
  min-height: 378px;
  flex-direction: column;
  justify-content: flex-start;
  padding: 20px 0;
}

.brand,
.description,
h1 {
  margin: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.48px;
  line-height: 32px;
  animation: page-enter 260ms var(--ease-out) 50ms both;
}

.brand-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  transform: translateY(1px);
}

.copy-lower {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 8px;
  animation: page-enter 260ms var(--ease-out) 110ms both;
}

h1 {
  max-width: 420px;
  color: var(--ink);
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.8px;
  line-height: 1.2;
}

.description {
  max-width: 400px;
  margin-top: 8px;
  color: var(--body-ink);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.44px;
  line-height: 1.38;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 56px;
}

.support-note {
  margin: 12px 0 0;
  color: var(--muted-ink);
  font-size: 11px;
  letter-spacing: 0.02em;
  line-height: 16px;
}

.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 6px;
  border-radius: 12px;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  line-height: 24px;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.button-icon-star {
  fill: currentColor;
  stroke: none;
}

.button-primary {
  background: var(--button);
  color: #fff;
}

.button-secondary {
  border: 1px solid var(--border);
  color: var(--ink);
}

.button:focus-visible {
  outline: 3px solid rgba(22, 131, 77, 0.35);
  outline-offset: 3px;
}

.site-footer {
  display: flex;
  width: 100%;
  max-width: 860px;
  justify-content: space-between;
  padding-bottom: 40px;
  color: var(--muted-ink);
  font-size: 11px;
  line-height: 16px;
  animation: fade-in 180ms var(--ease-out) 180ms both;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes preview-enter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (hover: hover) and (pointer: fine) {
  .button-primary:hover {
    background: #111;
  }

  .button-secondary:hover {
    border-color: rgba(0, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.03);
  }
}

@media (max-width: 760px) {
  .hero-wrap {
    align-items: flex-start;
    padding: 48px 0 80px;
  }

  .hero {
    display: flex;
    min-height: 0;
    flex-direction: column;
    align-items: center;
    gap: 48px;
  }

  .preview-slot {
    order: 2;
    min-height: 320px;
  }

  .copy {
    order: 1;
    min-height: 0;
    align-items: center;
    padding: 0;
    text-align: center;
  }

  .copy-lower {
    align-items: center;
  }

  h1 {
    max-width: 520px;
    font-size: 36px;
    letter-spacing: -0.72px;
  }

  .description {
    max-width: 34ch;
    font-size: 20px;
  }

  .actions {
    justify-content: center;
    margin-top: 40px;
  }

  .support-note {
    text-align: center;
  }

  .site-footer {
    max-width: 520px;
  }
}

@media (max-width: 440px) {
  .site-footer {
    align-items: center;
    flex-direction: column;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand,
  .copy-lower,
  .site-footer,
  .app-preview {
    animation-name: fade-in;
    animation-duration: 180ms;
    animation-delay: 0ms;
  }

  .button {
    transition: none;
  }
}
