/* The top page (index.html). The other pages use style.css. */

:root {
  --primary: #1981ad;
  --secondary: #74b4c9;
  --deep: #0e4f6b;
  --sand: #f6efe4;
  --bg: #f3f9fb;
  --bg-2: #e3f1f6;
  --card: #ffffff;
  --text: #16232a;
  --muted: #5d6f78;
  --line: rgba(14, 79, 107, 0.12);
  --shadow: 0 24px 60px rgba(14, 79, 107, 0.16);
  --phone: #121a1f;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1a21;
    --bg-2: #10262f;
    --card: #132c37;
    --text: #e8f2f5;
    --muted: #9db3bc;
    --line: rgba(116, 180, 201, 0.18);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    --sand: #1a2f36;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

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

/* Hero */
.hero {
  position: relative;
  text-align: center;
  padding: 56px 0 72px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  /* A soft pool of water behind the icon. */
  content: "";
  position: absolute;
  inset: -120px -30% auto;
  height: 760px;
  background:
    radial-gradient(closest-side at 50% 45%, rgba(116, 180, 201, 0.45), transparent 70%),
    radial-gradient(closest-side at 20% 70%, rgba(25, 129, 173, 0.16), transparent 70%),
    radial-gradient(closest-side at 80% 65%, rgba(246, 222, 176, 0.35), transparent 70%);
  z-index: -1;
}
.app-name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--primary);
}
.app-icon {
  display: block;
  width: 168px;
  height: 168px;
  margin: 20px auto 28px;
  border-radius: 38px;
  box-shadow: var(--shadow);
}
.hero h1 {
  margin: 0 auto;
  max-width: 14em;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.hero .lead {
  margin: 20px auto 0;
  max-width: 34em;
  color: var(--muted);
  font-size: 1.05rem;
}
.cta { margin-top: 32px; }
.store-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 14px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
}
.store-button svg { width: 22px; height: 22px; fill: currentColor; }
.cta .note { display: block; margin-top: 12px; font-size: 0.85rem; color: var(--muted); }

/* Section headings */
section { padding: 72px 0; }
.section-title { text-align: center; margin: 0; font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.25; }
.section-lead { text-align: center; color: var(--muted); margin: 12px auto 0; max-width: 32em; }

/* Screens */
.screens { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.phones {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 32px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.phone-card { text-align: center; margin: 0; max-width: 300px; display: flex; flex-direction: column; }
.phone-card figcaption { margin-top: 18px; min-height: 4.8em; font-weight: 600; }
.phone-card figcaption small { display: block; font-weight: 400; color: var(--muted); }

.phone {
  width: 260px;
  padding: 10px;
  border-radius: 46px;
  background: var(--phone);
  box-shadow: var(--shadow);
  margin: 0 auto;
}
/* A capture of the app (the demo data: fictional shows only). */
.phone img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1206 / 2622;
  border-radius: 37px;
}

/* Apple Watch: the capture in a simple case. */
.watch {
  width: 200px;
  padding: 14px;
  border-radius: 54px;
  background: var(--phone);
  box-shadow: var(--shadow);
  margin: 0 auto;
}
.watch img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 422 / 514;
  border-radius: 40px;
}
.phone-card.watch-card { justify-content: flex-end; }

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 44px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
}
.feature .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature .icon svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { margin: 16px 0 6px; font-size: 1.1rem; }
.feature p { margin: 0; color: var(--muted); }

/* Who it is for */
.for {
  max-width: 640px;
  margin: 40px auto 0;
  padding: 0;
  list-style: none;
}
.for li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.for li:last-child { border-bottom: 0; }
.for li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Closing call */
.closing {
  text-align: center;
  background: linear-gradient(135deg, var(--deep), var(--primary));
  color: #fff;
  border-radius: 32px;
  padding: 56px 24px;
  margin: 0 16px;
}
.closing h2 { margin: 0; font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1.3; }
.closing p { margin: 0; font-size: clamp(1.15rem, 3vw, 1.4rem); font-weight: 600; }
.closing .store-button { background: #fff; color: var(--deep); margin-top: 28px; }
.closing .note { color: rgba(255, 255, 255, 0.75); }
.closing .store-button:hover, .cta .store-button:hover { opacity: 0.88; }

/* Footer */
footer {
  text-align: center;
  padding: 56px 16px 40px;
  color: var(--muted);
  font-size: 0.9rem;
}
footer nav { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
footer a { color: var(--muted); }
footer .mail { margin: 14px 0 0; }
footer .copy { margin: 8px 0 0; font-size: 0.8rem; }

@media (max-width: 600px) {
  section { padding: 56px 0; }
  .hero { padding: 40px 0 48px; }
  .app-icon { width: 136px; height: 136px; border-radius: 31px; }
  .phones { gap: 40px; }
}
