/* Ragus marketing site.
   One stylesheet, no framework, no build step -- the whole site is files a
   browser can open directly. Palette matches the app exactly. */

:root {
  --ink: #2B2724;
  --muted: #7D736A;
  --accent: #C4552F;
  --rule: #E7DED2;
  --faint: #B9AFA4;
  --bg: #FBF8F4;
  --card: #FFFFFF;
  --measure: 720px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

/* ---------------------------------------------------------------- layout */

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

/* ------------------------------------------------------------------ nav */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.2px;
}

.brand svg { display: block; }

.nav-links { display: flex; gap: 22px; }

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--ink); }

/* ----------------------------------------------------------------- hero */

.hero { padding: 76px 0 8px; }

h1 {
  font-size: clamp(40px, 9vw, 60px);
  line-height: 1.05;
  letter-spacing: -1.6px;
  font-weight: 400;
  margin: 0 0 22px;
}

.lede {
  font-size: 20px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 36px;
  max-width: 30em;
}

/* ------------------------------------------------------------- download */

.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

.appstore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  padding: 13px 22px 13px 18px;
  border-radius: 12px;
  font-weight: 500;
}

.appstore:hover { opacity: 0.88; }

.appstore .sub { display: block; font-size: 11px; opacity: 0.72; line-height: 1.2; }
.appstore .main { display: block; font-size: 17px; line-height: 1.2; letter-spacing: -0.3px; }

.appstore[aria-disabled="true"] {
  background: var(--rule);
  color: var(--muted);
  pointer-events: none;
}

.cta-note { font-size: 14px; color: var(--faint); margin: 0; }

/* -------------------------------------------------------------- sections */

section { padding: 60px 0; }

section + section { border-top: 2px solid var(--rule); }

h2 {
  font-size: 13px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 22px;
}

h3 {
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.4px;
  font-weight: 600;
  margin: 0 0 8px;
}

p { margin: 0 0 18px; }

p:last-child { margin-bottom: 0; }

.big {
  font-size: 27px;
  line-height: 1.45;
  letter-spacing: -0.5px;
  font-weight: 400;
  margin: 0 0 20px;
}

/* ------------------------------------------------------------------ bits */

.steps { display: grid; gap: 30px; }

@media (min-width: 640px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}

.step .n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.step p { color: var(--muted); font-size: 16px; }

/* A phrase the user would actually type, shown as they'd say it. */
.said {
  background: var(--card);
  border: 2px solid var(--rule);
  border-radius: 16px;
  padding: 18px 20px;
  font-size: 19px;
  line-height: 1.5;
  margin: 0 0 14px;
}

.said .who { display: block; font-size: 12px; letter-spacing: 1.1px; text-transform: uppercase; color: var(--faint); margin-bottom: 7px; }

.result { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }

.result li {
  background: var(--card);
  border: 2px solid var(--rule);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 15px;
  color: var(--muted);
}

.result li b { color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------------------- faq */

.faq { border-top: 2px solid var(--rule); }

.faq details {
  border-bottom: 2px solid var(--rule);
  padding: 20px 0;
}

.faq summary {
  cursor: pointer;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.3px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: baseline;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  color: var(--accent);
  font-weight: 400;
  font-size: 23px;
  line-height: 1;
}

.faq details[open] summary::after { content: "\2212"; }

.faq .answer { padding-top: 14px; color: var(--muted); }

.faq .answer p { font-size: 16px; }

/* ------------------------------------------------------------------ blog */

.posts { list-style: none; margin: 0; padding: 0; }

.posts li { border-bottom: 2px solid var(--rule); }

.posts a {
  display: block;
  padding: 24px 0;
  text-decoration: none;
  color: var(--ink);
}

.posts a:hover h3 { color: var(--accent); }

.posts .date { font-size: 13px; color: var(--faint); margin: 0 0 6px; }

.posts .excerpt { color: var(--muted); font-size: 16px; margin: 6px 0 0; }

article.post { padding: 44px 0 20px; }

article.post h1 {
  font-size: clamp(31px, 6vw, 42px);
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 12px;
}

article.post .date { color: var(--faint); font-size: 14px; margin: 0 0 34px; }

article.post h2 {
  font-size: 21px;
  text-transform: none;
  letter-spacing: -0.3px;
  color: var(--ink);
  margin: 38px 0 12px;
}

article.post blockquote {
  margin: 24px 0;
  padding: 2px 0 2px 20px;
  border-left: 3px solid var(--rule);
  color: var(--muted);
}

article.post ul { padding-left: 20px; color: var(--ink); }
article.post li { margin-bottom: 9px; }

.back { display: inline-block; margin-top: 12px; font-size: 15px; text-decoration: none; }

/* ---------------------------------------------------------------- footer */

footer {
  border-top: 2px solid var(--rule);
  margin-top: 20px;
  padding: 34px 0 60px;
  color: var(--faint);
  font-size: 14px;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 16px; }

.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

/* ------------------------------------------------------------------ dark */

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #F2EDE7;
    --muted: #A79C91;
    --accent: #E2764C;
    --rule: #3A342E;
    --faint: #7D736A;
    --bg: #1B1815;
    --card: #221E1A;
  }
  .appstore { background: var(--accent); color: #1B1815; }
  .appstore[aria-disabled="true"] { background: var(--rule); color: var(--faint); }
}
