/* OurTeory — soft, modern, minimal */

@font-face {
  font-family: "DM Sans";
  src: url("fonts/dmsans-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("fonts/dmsans-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #fbfaf8;
  --card: #ffffff;
  --tint: #f4f0fc;
  --ink: #26232e;
  --muted: #6b6578;
  --line: #ebe7f0;
  --accent: #6e5cc9;
  --accent-soft: #e9e3fb;
  --pink: #f8b4bd;
  --radius: 26px;
  --wrap: 1040px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

img { max-width: 100%; display: block; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }

/* ---------- header ---------- */
.site-header { padding: 22px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { font-weight: 700; font-size: 21px; letter-spacing: -0.02em; color: var(--ink); }
.wordmark span { color: var(--accent); }
.wordmark:hover { text-decoration: none; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--muted); font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); text-decoration: none; }

/* ---------- type ---------- */
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.025em; margin: 0; }
h1 { font-size: clamp(38px, 6vw, 60px); font-weight: 700; }
h2 { font-size: clamp(28px, 4vw, 36px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 34em; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.muted { color: var(--muted); }

/* ---------- sections ---------- */
section { padding: 72px 0; }
.hero { padding: 72px 0 88px; }
.hero h1 { max-width: 13em; }
.hero .lead { margin-top: 22px; }
.section-head { margin-bottom: 34px; }
.section-head p { margin: 12px 0 0; }
.tinted { background: var(--tint); }

/* ---------- pills & buttons ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 14px; font-weight: 700;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.7; }
.button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 15px;
}
.button:hover { text-decoration: none; background: #3a3644; }
.button.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.button.ghost:hover { background: var(--card); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- cards ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}

/* app card on the home page */
.app-card { display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; }
.app-card img { width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 8px 24px rgba(110, 92, 201, 0.14); }
.app-card h3 { font-size: 24px; }
.app-card p { margin: 6px 0 0; color: var(--muted); }
.app-card .pill { margin-top: 14px; }

/* about */
.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.person { position: relative; margin-top: 46px; }
.person .avatar {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: 20px; color: var(--ink);
  margin-bottom: 18px;
}
.person p { margin: 10px 0 0; color: var(--muted); }
.person .role { margin: 4px 0 0; font-size: 14px; font-weight: 700; color: var(--accent); }
.peeker { position: absolute; width: 110px; top: -54px; right: 34px; }

/* features grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 26px; }
.feature .icon {
  width: 42px; height: 42px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  margin-bottom: 16px;
}
.feature .icon svg { width: 22px; height: 22px; }
.feature p { margin: 8px 0 0; color: var(--muted); font-size: 16px; }

/* app hero */
.app-hero { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; }
.app-hero img { width: 150px; height: 150px; border-radius: 36px; box-shadow: 0 14px 40px rgba(110, 92, 201, 0.18); }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 9px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 15px; }

/* pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.price h3 { margin-bottom: 4px; }
.price .tag { font-size: 14px; font-weight: 700; color: var(--accent); }
.price p { margin: 10px 0 0; color: var(--muted); font-size: 16px; }

/* contact band */
.contact { text-align: center; }
.contact .lead { margin: 14px auto 0; }
.contact .actions { justify-content: center; }

/* ---------- long-form pages (privacy, terms, support) ---------- */
.doc { padding: 56px 0 80px; }
.doc .wrap { max-width: 720px; }
.doc h1 { font-size: clamp(34px, 5vw, 46px); }
.doc .updated { color: var(--muted); margin: 14px 0 0; font-size: 15px; }
.doc .summary { margin: 34px 0 8px; background: var(--tint); border: 0; }
.doc .summary p { margin: 0; }
.doc h2 { font-size: 23px; margin: 44px 0 12px; }
.doc h3 { margin: 26px 0 8px; font-size: 18px; }
.doc p, .doc li { color: #3d3947; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 16px; }
.doc th, .doc td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { font-size: 14px; color: var(--muted); font-weight: 700; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 34px 0 44px; font-size: 15px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }

/* ---------- small screens ---------- */
@media (max-width: 820px) {
  .features, .pricing { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 56px 0; }
  .hero { padding: 40px 0 64px; }
  .nav { gap: 16px; }
  .app-card { grid-template-columns: 1fr; gap: 18px; align-items: start; }
  .app-card .button { justify-self: start; }
  .pill { border-radius: 16px; line-height: 1.35; }
  .app-card img { width: 76px; height: 76px; border-radius: 20px; }
  .people, .features, .pricing { grid-template-columns: 1fr; }
  .app-hero { grid-template-columns: 1fr; gap: 24px; }
  .app-hero img { width: 112px; height: 112px; border-radius: 28px; }
  .card { padding: 24px; }
}
