:root {
  color-scheme: light;
  --ink: #22242a;
  --muted: #626671;
  --line: #d9dce3;
  --paper: #fbfbfd;
  --panel: #ffffff;
  --blue: #2f5f9f;
  --green: #4d7b50;
  --coral: #c45a4d;
  --brass: #9a6a2f;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  line-height: 1.75;
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px;
}

.brand {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.94rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
}

.hero,
.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 44px 20px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  align-items: center;
  gap: 44px;
  min-height: 72vh;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.1rem, 6vw, 4.7rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 18px;
  font-size: 1.55rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero p,
.section > p {
  max-width: 720px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}

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

.hero-media {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
}

.hero-media img,
.app-card img,
.screenshots img,
.wide-shots img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(28, 32, 42, 0.12);
}

.hero-media img:nth-child(2) {
  transform: translateY(28px);
}

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

.app-card {
  border: 1px solid var(--line);
  border-top: 5px solid var(--blue);
  border-radius: 8px;
  background: var(--panel);
}

.app-card.morning { border-top-color: var(--coral); }
.app-card.buying { border-top-color: var(--brass); }
.app-card.text-only { border-top-color: var(--green); }

.app-card a {
  display: grid;
  gap: 14px;
  padding: 16px;
  color: var(--muted);
  text-decoration: none;
}

.app-card img {
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  box-shadow: none;
}

.app-card.text-only a {
  min-height: 190px;
  align-content: start;
}

.app-name {
  display: block;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 750;
}

.support,
.faq {
  border-top: 1px solid var(--line);
}

.app-page .hero {
  min-height: auto;
  padding-top: 28px;
}

.app-page h1 {
  font-size: clamp(2rem, 6vw, 4.1rem);
}

.screenshots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

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

.wide-shots img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.fact {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.fact strong {
  display: block;
  margin-bottom: 5px;
}

.muted { color: var(--muted); }

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 20px;
  }

  .app-grid,
  .facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero-media,
  .screenshots,
  .wide-shots {
    grid-template-columns: 1fr;
  }

  .hero-media img:nth-child(2) {
    transform: none;
  }
}
