/* ===========================================================
   The Really Useful App Company — site styles
   Aesthetic: refined minimalism (generous whitespace,
   light-weight display type, near-monochrome ink palette)
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Schibsted+Grotesk:wght@400;500;600;700;800&display=swap');

:root {
  --ink:        #1a1b1d;
  --ink-soft:   #6b6c70;
  --ink-faint:  #9a9b9f;
  --bg:         #f5f5f7;
  --surface:    #ffffff;
  --line:       #e3e3e6;
  --accent:     #2a5bd7;
  --radius:     20px;
  --maxw:       1080px;
  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Schibsted Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 245, 247, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 600; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand .name { font-size: 16px; }
.brand .name b { font-weight: 700; }
.menu { display: flex; gap: 30px; align-items: center; }
.menu a { font-size: 14.5px; color: var(--ink-soft); transition: color 0.2s var(--ease); }
.menu a:hover { color: var(--ink); }
.menu .cta {
  color: var(--surface); background: var(--ink);
  padding: 8px 16px; border-radius: 980px; font-weight: 500;
  transition: opacity 0.2s var(--ease);
}
.menu .cta:hover { color: var(--surface); opacity: 0.82; }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { padding: 130px 0 110px; text-align: center; }
.eyebrow {
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(42px, 8vw, 88px);
  font-weight: 700; letter-spacing: -0.035em; line-height: 1.03;
  max-width: 16ch; margin: 0 auto;
}
.hero h1 .muted { color: var(--ink-faint); }
.hero p {
  font-size: clamp(18px, 2.4vw, 22px); color: var(--ink-soft);
  max-width: 52ch; margin: 30px auto 0; font-weight: 400;
}
.hero .actions { margin-top: 42px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 980px;
  font-size: 16px; font-weight: 500; transition: all 0.2s var(--ease);
}
.btn-primary { background: var(--ink); color: var(--surface); }
.btn-primary:hover { color: var(--surface); opacity: 0.82; }
.btn-ghost { color: var(--ink); border: 1px solid var(--line); background: var(--surface); }
.btn-ghost:hover { border-color: var(--ink-faint); }

/* ---------- Sections ---------- */
section { padding: 92px 0; }
.section-head { max-width: 60ch; margin-bottom: 56px; }
.section-head .eyebrow { text-align: left; }
h2 {
  font-size: clamp(30px, 4.6vw, 46px); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.08;
}
.lead { font-size: 19px; color: var(--ink-soft); margin-top: 18px; max-width: 56ch; }

/* ---------- Capabilities grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px 30px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,0.06); }
.card .ico {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; background: var(--bg);
  margin-bottom: 22px; color: var(--ink);
}
.card h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 15.5px; }

/* ---------- About / split ---------- */
.about { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about .lead { font-size: 21px; color: var(--ink); max-width: 40ch; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about-grid p + p { margin-top: 18px; }
.about-grid .body { color: var(--ink-soft); font-size: 16.5px; }
.stats { display: flex; gap: 48px; margin-top: 40px; flex-wrap: wrap; }
.stat .n { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; }
.stat .l { font-size: 14px; color: var(--ink-soft); margin-top: 4px; }

/* ---------- Contact ---------- */
.contact-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 48px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
}
.contact-card h2 { margin-bottom: 8px; }
.detail { margin-top: 22px; }
.detail .k { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 4px; }
.detail .v { font-size: 17px; }
.detail .v a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
footer { padding: 54px 0 70px; color: var(--ink-soft); font-size: 13.5px; }
.foot-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.foot-bottom { padding-top: 26px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 22px; }
.foot-links a:hover { color: var(--ink); }

/* ---------- Legal page ---------- */
.legal { padding: 70px 0 90px; max-width: 760px; }
.legal h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 700; letter-spacing: -0.03em; }
.legal .updated { color: var(--ink-faint); margin: 14px 0 44px; font-size: 14px; }
.legal h2 { font-size: 23px; margin: 40px 0 12px; }
.legal p { color: var(--ink-soft); margin-bottom: 14px; font-size: 16.5px; }
.legal ul { color: var(--ink-soft); margin: 0 0 14px 22px; font-size: 16.5px; }
.legal li { margin-bottom: 7px; }
.placeholder { background: #fff7e6; border: 1px dashed #e8c578; color: #8a6516; padding: 2px 7px; border-radius: 6px; font-size: 0.92em; }

/* ---------- Load animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); animation: rise 0.7s var(--ease) forwards; }
.d1 { animation-delay: 0.05s; } .d2 { animation-delay: 0.15s; }
.d3 { animation-delay: 0.25s; } .d4 { animation-delay: 0.35s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .grid { grid-template-columns: 1fr; }
  .about-grid, .contact-card { grid-template-columns: 1fr; gap: 28px; }
  .menu { gap: 18px; }
  .menu a:not(.cta) { display: none; }
  .hero { padding: 90px 0 70px; }
  section { padding: 64px 0; }
  .contact-card { padding: 32px; }
}
