:root {
  --navy: #1e3d59;
  --navy-deep: #152c41;
  --orange: #f6821f;
  --bg: #fbf8f4;
  --surface: #ffffff;
  --text: #16283a;
  --muted: #56636f;
  --line: #e8e2da;
  --accent: #1e3d59;
  --link: #1e3d59;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(22, 40, 58, 0.04), 0 8px 24px rgba(22, 40, 58, 0.06);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1e2c;
    --surface: #152c41;
    --text: #f2ede6;
    --muted: #a9b4bf;
    --line: #24405a;
    --accent: #f6821f;
    --link: #f6a35e;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.3);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* Header */
.site-header { padding: 22px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; color: var(--text); text-decoration: none; }
.brand span { color: var(--orange); }
.nav { display: flex; gap: 20px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--text); }

/* Hero */
.hero { padding: 48px 0 36px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.hero h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 18px; max-width: 14ch; }
.hero h1 .grad { color: var(--orange); }
.hero p { font-size: 19px; color: var(--muted); max-width: 46ch; margin: 0; }

/* Apps */
.apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 12px 0 64px; }
.app {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); text-decoration: none; color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.app:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(16,16,21,.05), 0 14px 32px rgba(16,16,21,.1); }
.app img { width: 76px; height: 76px; border-radius: 18px; flex: none; box-shadow: 0 0 0 1px rgba(16,16,21,0.06); }
.app h2 { font-size: 20px; margin: 2px 0 2px; letter-spacing: -0.01em; }
.app .kind { font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.app p.desc { margin: 0 0 14px; font-size: 15.5px; }
.store { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--accent); }
.store svg { width: 15px; height: 15px; }

/* About */
.section { padding: 56px 0; border-top: 1px solid var(--line); }
.section h2.title { font-size: 28px; letter-spacing: -0.02em; margin: 0 0 12px; }
.about { display: flex; gap: 28px; align-items: center; }
.about img { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; flex: none; }
.about p { margin: 0 0 10px; color: var(--muted); }
.about p strong { color: var(--text); }
.more-apps { font-weight: 600; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; }
.contact-grid > div > p { color: var(--muted); }
form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
input, textarea {
  font: inherit; font-size: 16px; color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%;
}
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
button {
  font: inherit; font-weight: 600; font-size: 16px; color: #fff; background: var(--navy);
  border: 0; border-radius: 999px; padding: 13px 26px; cursor: pointer; justify-self: start;
}
button[disabled] { opacity: 0.6; cursor: progress; }
.status { margin: 0; font-size: 15px; min-height: 1.6em; }
.status.ok { color: #1a8a4a; }
.status.err { color: #c62841; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 44px; font-size: 14.5px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.socials { display: flex; gap: 8px 18px; flex-wrap: wrap; }

/* Legal pages */
.legal { padding: 24px 0 64px; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); letter-spacing: -0.02em; margin: 12px 0 4px; }
.legal .updated { color: var(--muted); margin: 0 0 28px; }
.legal h2 { font-size: 21px; margin: 34px 0 8px; letter-spacing: -0.01em; }
.legal ul { padding-left: 22px; }
.legal li { margin: 4px 0; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15.5px; margin: 8px 0; }
.legal th, .legal td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }

@media (max-width: 760px) {
  .apps { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 12px; }
  .about { flex-direction: column; align-items: flex-start; }
  .hero { padding-top: 28px; }
  .nav { gap: 14px; }
}
