/* ==========================================================================
   AppsMaster — site styles
   Colors live in :root so the whole site (and the blog) can be re-themed here.
   ========================================================================== */

:root {
  --bg: #F8F7FD;
  --ink: #161D33;
  --accent: #6639FA;
  --accent2: #4F24D9;
  --primary: #161D33;
  --chip: #ECE7FE;
  --muted: #4A5068;
  --line: #D4D0E8;
  --glow: #9583F7;
  --line2: #C3BEDD;
  --subtle: #767B93;
  --band: #F0EEFB;
  --card: #E2DEF3;
  --ok: #E9E4FE;
  --line3: #C9C3E6;
  --field: #DAD6EE;
  --foot: #C9CCDA;
  --white: #FFFFFF;
  --max: 1160px;
}

/* Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent2); text-decoration: underline; }

input, textarea, button { font-family: inherit; }

h1, h2, h3 { margin: 0; }
p { margin: 0; }

.container {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.site { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1 0 auto; }

/* Header ----------------------------------------------------------------- */
.site-header {
  padding-top: 24px;
  padding-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { color: var(--ink); text-decoration: none; }

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-size: 18px;
}

.brand-name { font-size: 21px; }

/* logo.png is 3:1 with built-in padding, so 54px tall ≈ 28px of visible mark */
.brand-logo { height: 54px; width: auto; display: block; margin: -10px 0 -10px -12px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
  font-weight: 500;
  flex-wrap: wrap;
}

.site-nav a { color: var(--ink); }

.site-nav .btn-dark {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
}
.site-nav .btn-dark:hover { color: var(--bg); text-decoration: none; opacity: .9; }

/* Buttons & small UI ----------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  cursor: pointer;
  border: none;
}
.btn:hover { text-decoration: none; }

.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent2); color: var(--white); }

.btn-outline { border: 1.5px solid var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }

.btn-block { display: block; width: 100%; padding: 16px 24px; }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

.chip {
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--chip);
  color: var(--accent2);
  font-size: 14px;
  font-weight: 600;
}

.status {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--ok);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
}

.app-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 24px;
  flex-shrink: 0;
}

.link-arrow { align-self: flex-start; font-weight: 600; font-size: 15px; }

.muted { color: var(--muted); font-size: 16px; }
.strong { font-weight: 600; }

/* Hero ------------------------------------------------------------------- */
.hero {
  padding-top: 72px;
  padding-bottom: 88px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 56px;
  align-items: center;
}

.hero-copy { display: flex; flex-direction: column; gap: 24px; }

.hero h1 {
  font-weight: 700;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 520px;
  text-wrap: pretty;
}

.hero-visual {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: 28px;
  background: var(--primary);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: var(--glow);
}

.hero-screen {
  position: absolute;
  top: 60px;
  left: 28px;
  right: 28px;
  bottom: 28px;
  border-radius: 16px;
  background: var(--bg);
  border: 1px dashed var(--line2);
  display: grid;
  place-items: center;
  color: var(--subtle);
  font-size: 14px;
  text-align: center;
  padding: 16px;
  overflow: hidden;
}
.hero-screen:has(img) { padding: 0; border: none; }
.hero-screen img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Transparent hero illustration (hero-store.png, 5:4) */
.hero-art { display: flex; justify-content: center; }
.hero-art img { width: 100%; max-width: 600px; height: auto; display: block; }


/* Apps band -------------------------------------------------------------- */
.band { background: var(--band); padding: 88px 0; }

.stack-lg { display: flex; flex-direction: column; gap: 40px; }

.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }

.section-head h2,
.request-copy h2 {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.1;
}

.section-head p { font-size: 18px; line-height: 1.6; color: var(--muted); }

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 20px;
}

.app-card {
  background: var(--white);
  border-radius: 22px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border: 1px solid var(--card);
}

.app-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.app-card-body { display: flex; flex-direction: column; gap: 8px; }
.app-card h3 { font-size: 22px; font-weight: 700; }
.app-card p { font-size: 16px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }

.app-card-idea {
  background: transparent;
  justify-content: center;
  gap: 10px;
  border: 1.5px dashed var(--line3);
  min-height: 220px;
}
.app-card-idea h3 { font-size: 20px; }

/* Request form ----------------------------------------------------------- */
.request { padding: 96px 0; }

.request-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 56px;
  align-items: start;
}

.request-copy { display: flex; flex-direction: column; gap: 18px; }
.request-copy h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.08; text-wrap: balance; }

.lead-sm {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 460px;
  text-wrap: pretty;
}

.request-form {
  background: var(--white);
  border: 1px solid var(--card);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 20px 50px rgba(22, 29, 51, .06);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 16px;
}

.request-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.request-form .optional { font-weight: 400; color: var(--subtle); }

.request-form input,
.request-form textarea {
  padding: 13px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--field);
  background: var(--bg);
  font-size: 16px;
  color: var(--ink);
  outline: none;
  width: 100%;
}

.request-form textarea { resize: vertical; line-height: 1.5; }

.request-form input:focus,
.request-form textarea:focus { border-color: var(--accent); }

.form-note {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--ok);
  color: var(--primary);
  font-size: 15px;
}
.form-note[hidden] { display: none; }
.form-note.is-error { background: #FDECEC; color: #9B1C1C; }

/* Honeypot field: hidden from people, left for bots to fill. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Legal pages ------------------------------------------------------------ */
.legal { padding-top: 72px; padding-bottom: 96px; max-width: 820px; }

.legal h1 {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  margin-bottom: 24px;
}

.legal p, .legal li { font-size: 17px; line-height: 1.7; color: var(--muted); }

/* Footer ----------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--foot);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 15px;
}

.footer-brand { font-size: 19px; color: var(--bg); }
.footer-email { color: var(--glow); }
.footer-email:hover { color: var(--glow); }

.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a { color: var(--foot); }
.footer-nav a:hover { color: var(--bg); }
