/* The colours and the fonts are the same as in the Munim app. */
:root {
  --paper: #F4F5F2;
  --card: #FFFFFF;
  --ink: #16202E;
  --text: #3E4856;
  --muted: #5A6472;
  --line: #DCDDD6;
  --gold: #FFE7A0;
  --gold-line: #E6C866;
  --amber: #7A5200;
  --dark-text: #C8CDD5;
  --dark-card: #1F2B3C;
  --dark-line: #2E3A4C;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }

a { color: var(--ink); }
a:hover { color: var(--amber); }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; }
h1 { margin: 0; font-size: clamp(38px, 6vw, 58px); font-weight: 700; letter-spacing: -0.02em; }
h2 { margin: 0; font-size: clamp(28px, 4vw, 38px); font-weight: 700; }
h3 { margin: 0 0 8px; font-size: 19px; font-weight: 600; }
p { margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding-top: 80px; padding-bottom: 80px; }
.narrow { max-width: 860px; }
.center { text-align: center; }
.lead { margin-top: 20px; font-size: 19px; color: var(--text); }
.lead.center { margin-left: auto; margin-right: auto; max-width: 620px; }
.small { margin-top: 16px; font-size: 14px; color: var(--muted); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; padding: 8px 12px; background: var(--card); }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.button-large { padding: 14px 24px; border-radius: 10px; font-size: 17px; }
.button-dark { background: var(--ink); color: #FFFFFF; }
.button-dark:hover { background: #26344A; color: #FFFFFF; }
.button-light { background: var(--gold); color: var(--ink); border: 1px solid var(--gold-line); }
.button-light:hover { background: #FFDE7A; color: var(--ink); }
.actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.actions-center { justify-content: center; }

/* The bar at the top */
.top-bar { background: var(--paper); border-bottom: 1px solid var(--line); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 700; text-decoration: none; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px 24px; flex: 1 1 auto; font-size: 15px; font-weight: 500; }
.nav-links a { text-decoration: none; color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 20px; font-size: 15px; }
.link-strong { font-weight: 600; text-decoration: none; }

/* The first screen */
.hero { background: var(--card); border-bottom: 1px solid var(--line); }
.hero-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 72px; padding-bottom: 72px; }
.hero-grid > div:first-child { flex: 1 1 420px; min-width: 0; }
.pill {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 14px;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  background: #FFF6D6;
  font-size: 14px;
  font-weight: 600;
  color: var(--amber);
}
.hero-pictures { position: relative; flex: 1 1 540px; min-width: 0; padding-bottom: 40px; }
.shot { display: block; width: 100%; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 30px 60px -30px rgba(22, 32, 46, 0.35); }
.phone {
  position: absolute;
  right: -8px;
  bottom: 0;
  width: 150px;
  border: 4px solid var(--ink);
  border-radius: 20px;
  box-shadow: 0 16px 32px -12px rgba(22, 32, 46, 0.45);
}

/* Cards and features */
.cards { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.card p, .features p { color: var(--text); }
.features { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; }
.features svg {
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  fill: none;
  stroke: var(--amber);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The dark section about Tally */
.dark { background: var(--ink); color: #F4F5F2; }
.steps { margin: 40px 0; padding: 0; list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.steps li { counter-increment: step; padding: 28px; background: var(--dark-card); border-radius: 14px; }
.steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 20px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
}
.steps p { color: var(--dark-text); }
.shot-dark { border-color: var(--dark-line); }

/* Downloads */
.downloads { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.download {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
}
.download:hover { border-color: var(--ink); }
.download-name { font-size: 20px; font-weight: 600; }
.download-note { font-size: 14px; color: var(--muted); }
.download.is-yours { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.download.is-yours .download-note { color: var(--dark-text); }
.download.is-yours .download-name::after { content: " (your computer)"; font-size: 14px; font-weight: 400; }

/* Questions */
details { margin-top: 12px; padding: 20px 24px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
#questions h2 { margin-bottom: 32px; }
summary { font-size: 18px; font-weight: 600; cursor: pointer; }
details p { margin-top: 12px; color: var(--text); }

/* The last call to action */
.band { padding: 56px 32px; border-radius: 18px; background: var(--gold); text-align: center; }
.band p { margin-top: 12px; font-size: 18px; color: #3A2E00; }

/* Footer */
.footer { border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-top: 40px; padding-bottom: 40px; }
.footer-brand { font-size: 18px; font-weight: 700; color: var(--ink); }
.footer-links { display: flex; flex-wrap: wrap; gap: 48px; }
.footer-links div { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.footer-title { font-weight: 600; color: var(--ink); }

@media (max-width: 640px) {
  /* The page has the same links lower down, so the bar keeps only the brand and the app. */
  .nav-links { display: none; }
  .brand { flex: 1 1 auto; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .hero-grid { padding-top: 48px; padding-bottom: 48px; }
  .phone { width: 110px; }
  .band { padding: 40px 20px; }
}
