:root {
  color-scheme: dark;
  --canvas: #000;
  --ink: #f2f2f0;
  --muted: #858581;
  --surface: #121212;
  --surface-alt: #171717;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
}

* { box-sizing: border-box; }

html { background: var(--canvas); }

body {
  min-height: 100svh;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  font-size: 15px;
  letter-spacing: -0.025em;
}

a { color: inherit; }

main {
  width: min(700px, calc(100% - 48px));
  min-height: 100svh;
  margin-inline: auto;
  padding: 28px 0;
  display: flex;
  flex-direction: column;
}

.site-header,
.detail-header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.site-header { justify-content: space-between; }

.profile-image {
  display: block;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
}

.name,
.updated,
.intro p,
.detail-header h1,
.detail-header p,
.product-line,
.phone-placeholder p,
.product-copy p { margin: 0; }

.name,
.detail-header h1 {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.updated,
.detail-header p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: -0.02em;
}

.app-store-link,
.app-copy h2 a,
.product-line a,
.product-copy a {
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 140ms ease, text-decoration-color 140ms ease;
}

.app-store-link,
.status-label {
  flex: none;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.app-store-link:hover,
.app-copy h2 a:hover,
.product-line a:hover,
.product-copy a:hover {
  color: #fff;
  text-decoration-color: #fff;
}

.app-store-link span { margin-left: 3px; }

.status-label { margin-left: auto; color: var(--muted); }

.intro { margin: 46px 0 36px; }

.intro p {
  max-width: 370px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.035em;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.app-card {
  min-height: 112px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.app-card:hover {
  border-color: var(--line-strong);
  background: var(--surface-alt);
}

.app-card-static:hover {
  border-color: var(--line);
  background: var(--surface);
}

.app-card-zone-clock { grid-column: 1; grid-row: 1; }
.app-card-cooldown { grid-column: 2; grid-row: 1; }
.app-card-bar-reminders { grid-column: 1; grid-row: 2; }

.app-art {
  width: 76px;
  height: 76px;
  display: grid;
  flex: none;
  place-items: center;
}

.app-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 18px;
}

.bar-reminders-mark {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: #ededeb;
  color: #111;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.06em;
}

.app-card:focus-visible,
.back-link:focus-visible,
.app-store-link:focus-visible,
.product-copy a:focus-visible,
.product-line a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.app-copy {
  min-width: 0;
  padding: 0;
}

.app-copy h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.app-copy p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.detail-page { padding-top: 20px; }

.detail-header {
  align-items: center;
  min-height: 42px;
}

.detail-header .app-store-link { margin-left: auto; }

.back-link {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink);
  font-size: 32px;
  font-weight: 300;
  line-height: 1;
  text-decoration: none;
  transition: background-color 140ms ease;
}

.back-link span { margin: -3px 2px 0 0; }
.back-link:hover { background: var(--surface-alt); }

.product-line {
  padding: 44px 0 28px;
  font-size: 15px;
  line-height: 1.45;
  text-align: left;
}

.screenshot-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 34px;
}

.phone-screenshot {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.phone-placeholder {
  aspect-ratio: 9 / 19.5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  background: #0b0b0b;
  color: var(--muted);
  text-align: center;
}

.phone-placeholder::before {
  width: 32%;
  height: 5px;
  margin-bottom: 34px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  content: "";
}

.phone-placeholder span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}

.phone-placeholder p {
  margin-top: 4px;
  font-size: 13px;
  letter-spacing: -0.015em;
}

.product-copy {
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.018em;
}

.product-copy > p + p { margin-top: 20px; }

.plain-section {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 28px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.product-copy > p + .plain-section { margin-top: 34px; }

.plain-section h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}

.plain-section p + p { margin-top: 12px; }

.plain-section ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.plain-section li + li { margin-top: 8px; }

.plain-section li::before {
  margin-right: 9px;
  color: var(--muted);
  content: "—";
}

.contact-page { max-width: 560px; }

.contact-intro {
  max-width: 390px;
  margin: 50px 0 34px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
}

.contact-intro p { margin: 0; }

.contact-form {
  display: grid;
  gap: 10px;
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form label {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--muted); }

.contact-form button {
  justify-self: start;
  margin-top: 18px;
  padding: 10px 14px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: var(--canvas);
  font: inherit;
  cursor: pointer;
  transition: opacity 140ms ease;
}

.contact-form button:hover { opacity: 0.82; }

.contact-form button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.form-status {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.form-status:empty { display: none; }

.site-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  letter-spacing: -0.015em;
  text-align: center;
}

.detail-page .site-footer { margin-top: 72px; }

.site-footer p { margin: 0; }

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

@media (max-width: 560px) {
  main {
    width: min(100% - 32px, 480px);
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .intro { margin: 48px 0 34px; }

  .app-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .app-card-zone-clock,
  .app-card-cooldown,
  .app-card-bar-reminders { grid-column: auto; grid-row: auto; }

  .app-card {
    min-height: 104px;
    padding: 14px;
  }

  .app-art { width: 72px; height: 72px; }
  .app-art img { border-radius: 17px; }

  .detail-page { width: calc(100% - 24px); padding-top: 14px; }
  .detail-header { gap: 12px; }
  .detail-header .app-store-link,
  .detail-header .status-label { font-size: 13px; }
  .back-link { width: 38px; height: 38px; }
  .product-line { padding: 34px 0 24px; }

  .screenshot-strip {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 72%;
    gap: 12px;
    margin-bottom: 28px;
    padding-bottom: 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
  }

  .screenshot-strip::-webkit-scrollbar { display: none; }
  .screenshot-strip > * { scroll-snap-align: start; }

  .phone-placeholder { border-radius: 10px; }
  .phone-placeholder::before { margin-bottom: 20px; }
  .phone-placeholder p { display: none; }

  .plain-section {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 24px 0;
  }

  .product-copy > p + .plain-section { margin-top: 30px; }
}
