/* TakeMate website: minimalist, in the spirit of apple.com.
   System font, black/white/grey palette, one blue for actions, no libraries. */

:root {
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --line: #d2d2d7;
  --blue: #0071e3;          /* buttons */
  --link: #0066cc;          /* text links */
  --radius: 28px;
  --max: 1024px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue",
          "Segoe UI", Inter, Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--bg);
  font-size: 17px; line-height: 1.47; letter-spacing: -0.022em; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 100; }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.015em; line-height: 1.07; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 251, 253, 0.8);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 24px; height: 24px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 12px; }
.nav-links a { color: var(--text); opacity: 0.85; }
.nav-links a:hover { opacity: 1; text-decoration: none; }
.nav-links .btn { opacity: 1; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; padding: 11px 22px; border-radius: 980px;
  font-size: 17px; font-weight: 400; line-height: 1.18; letter-spacing: -0.022em;
  border: 1px solid transparent; cursor: pointer; transition: background 0.2s, color 0.2s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #0077ed; }
.btn-outline { color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-small { padding: 4px 11px; font-size: 12px; }
.actions { display: flex; gap: 16px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 32px; }
.fine { font-size: 14px; color: var(--text-3); margin: 16px 0 0; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 88px 0 0; }
.hero h1 { font-size: clamp(56px, 9vw, 96px); letter-spacing: -0.03em; }
.hero .tagline { font-size: clamp(24px, 3.4vw, 32px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin: 12px 0 0; }
.hero .sub { font-size: clamp(17px, 2vw, 21px); color: var(--text-2); max-width: 560px; margin: 16px auto 0; line-height: 1.38; }

/* ---------- Phone (placeholder until real screenshots) ---------- */
.phone-wrap { margin-top: 72px; display: flex; justify-content: center; position: relative; z-index: 2; }
.phone {
  width: 300px; height: 610px; border-radius: 52px; padding: 12px; background: #1d1d1f;
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.3), inset 0 0 0 2px #3a3a3c;
  margin-bottom: -200px;
}
.screen {
  width: 100%; height: 100%; border-radius: 40px; overflow: hidden; background: #f5f6f8;
  position: relative; text-align: left; padding: 54px 18px 18px;
}
.screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.island { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; background: #1d1d1f; border-radius: 20px; }
.mock-hello { font-size: 13px; color: #5c6570; }
.mock-title { font-size: 22px; font-weight: 700; color: #1a2332; margin: 2px 0 16px; }
.mock-card { background: #fff; border-radius: 16px; padding: 14px; margin-bottom: 10px; box-shadow: 0 2px 8px rgba(26, 35, 50, 0.06); }
.mock-label { font-size: 11px; color: #8a9099; text-transform: uppercase; letter-spacing: 0.04em; }
.mock-big { font-size: 26px; font-weight: 700; color: #1a2332; font-variant-numeric: tabular-nums; }
.mock-up { font-size: 12px; color: #2e9d5c; font-weight: 600; }
.mock-bars { display: flex; align-items: flex-end; gap: 6px; height: 70px; margin-top: 10px; }
.mock-bars span { flex: 1; background: #eef0f3; border-radius: 4px; }
.mock-bars span.on { background: linear-gradient(180deg, #ffb701, #ff6e0f); }
.mock-row { display: flex; gap: 10px; }
.mock-row .mock-card { flex: 1; }
.mock-mid { font-size: 18px; font-weight: 700; color: #1a2332; font-variant-numeric: tabular-nums; }

/* ---------- Sections ---------- */
section { padding: 130px 0; }
.alt { background: var(--bg-alt); }
.dark { background: #000; color: #f5f5f7; }
.after-phone { padding-top: 290px; }
.head { margin-bottom: 56px; }
.head h2 { font-size: clamp(40px, 6vw, 56px); }
.head p { font-size: clamp(19px, 2.2vw, 24px); color: var(--text-2); margin: 14px 0 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.dark .head p { color: #86868b; }
.center { text-align: center; }

/* ---------- Highlight tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.tile {
  background: var(--bg); border-radius: var(--radius); padding: 44px 40px; min-height: 260px;
  display: flex; align-items: flex-end;
}
.tile p { margin: 0; font-size: clamp(21px, 2.3vw, 24px); font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; color: var(--text-2); }
.tile p strong { color: var(--text); font-weight: 600; }
.tile.wide { grid-column: span 2; min-height: 220px; }
.tile.wide p { max-width: 640px; }

/* ---------- Video ---------- */
.video {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: #1d1d1f; max-width: 980px; margin: 0 auto;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; color: #f5f5f7;
}
.play { width: 72px; height: 72px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); display: grid; place-items: center; backdrop-filter: blur(10px); }
.play svg { width: 26px; height: 26px; fill: #fff; margin-left: 4px; }
.video-placeholder span { font-size: 15px; color: #86868b; }

/* ---------- Roles ---------- */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.roles h3 { font-size: 28px; margin-bottom: 10px; }
.roles p { color: var(--text-2); margin: 0; }

/* ---------- Download ---------- */
.cta { text-align: center; }
.cta .app-icon { width: 120px; height: 120px; margin: 0 auto 32px; }
.cta h2 { font-size: clamp(40px, 6vw, 64px); }
.cta .sub { font-size: clamp(19px, 2.2vw, 24px); color: var(--text-2); margin: 14px 0 0; font-weight: 600; letter-spacing: -0.02em; }
.store-badge { display: inline-block; line-height: 0; }
.store-badge img { height: 54px; width: auto; }

/* ---------- Footer ---------- */
footer { background: var(--bg-alt); padding: 20px 0 32px; font-size: 12px; color: var(--text-2); }
footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 16px; }
footer nav { display: flex; gap: 0; flex-wrap: wrap; }
footer nav a { color: var(--text-2); padding: 0 10px; border-right: 1px solid var(--line); }
footer nav a:last-child { border-right: 0; padding-right: 0; }
footer nav a:hover { color: var(--text); }

/* ---------- Document pages (privacy / terms / support) ---------- */
.doc { max-width: 692px; margin: 0 auto; padding: 88px 22px 130px; }
.doc h1 { font-size: clamp(40px, 6vw, 56px); margin-bottom: 12px; }
.doc .updated { color: var(--text-2); margin: 0 0 48px; }
.doc h2 { font-size: 24px; margin: 44px 0 12px; }
.doc p, .doc li { color: #333336; }
.contact-card { background: var(--bg-alt); border-radius: var(--radius); padding: 48px 40px; text-align: center; margin: 8px 0 64px; }
.contact-card h2 { margin: 0 0 8px; font-size: 28px; }
.contact-card p { color: var(--text-2); margin: 0 0 24px; }
.contact-card .email { display: block; font-size: 14px; margin-top: 14px; color: var(--text-2); }
details { border-bottom: 1px solid var(--line); padding: 22px 0; }
details summary {
  cursor: pointer; font-size: 19px; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; font-size: 26px; font-weight: 300; color: var(--text-2); transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 12px 0 0; color: var(--text-2); }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 88px 22px; }
.notfound h1 { font-size: clamp(64px, 12vw, 120px); }
.notfound .sub { font-size: 21px; color: var(--text-2); margin: 12px 0 0; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 734px) {
  section { padding: 88px 0; }
  .after-phone { padding-top: 250px; }
  .hero { padding-top: 64px; }
  .nav-links a:not(.btn) { display: none; }
  .tiles { grid-template-columns: 1fr; }
  .tile, .tile.wide { grid-column: auto; min-height: 0; padding: 36px 28px; }
  .roles { grid-template-columns: 1fr; gap: 40px; }
  .phone { width: 260px; height: 530px; border-radius: 46px; margin-bottom: -170px; }
  .screen { border-radius: 35px; }
}
