/* whereused.app
 *
 * The same visual language as the app itself: monday's Vibe typography
 * (Poppins for headings, Figtree for text), its neutral palette and its 8px
 * radius. The accent is WhereUsed's own indigo, not monday's blue: the app is
 * independent, and the site should not read as monday.com.
 *
 * Fonts are served from this domain. No scripts, no cookies, no third-party
 * requests except monday's own "Add to monday.com" button image.
 */

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/figtree-400.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/figtree-500.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/figtree-600.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/figtree-700.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/poppins-500.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/poppins-600.woff2") format("woff2");
}

:root {
  color-scheme: light dark;

  --text: #323338;
  --text-secondary: #676879;
  --border: #d0d4e4;
  --border-soft: #e6e9ef;
  --page: #ffffff;
  --surface: #f6f7fb;
  --surface-strong: #eceffb;
  --accent: #4b3fd6;
  --accent-strong: #3629b3;
  --accent-soft: #eeecff;
  --negative: #d83a52;
  --warning: #ffcb00;

  --radius: 8px;
  --radius-lg: 14px;
  --shadow: 0 4px 16px rgba(29, 30, 50, 0.06);
  --shadow-lg: 0 24px 60px rgba(29, 30, 50, 0.14);

  --font-text: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Poppins", var(--font-text);
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #d5d8df;
    --text-secondary: #9699a6;
    --border: #4b4e69;
    --border-soft: #33354a;
    --page: #181b34;
    --surface: #20233c;
    --surface-strong: #262a47;
    --accent: #a498ff;
    --accent-strong: #c3bbff;
    --accent-soft: #2a2a5a;
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);
  }
}

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

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

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

h1 {
  font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3.4rem);
}

h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.1rem);
}

h3 {
  font-size: 1.12rem;
}

p {
  margin: 0;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

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

strong {
  font-weight: 600;
}

/* ---- shell ------------------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 24px;
  background: color-mix(in srgb, var(--page) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-soft);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.06rem;
  color: var(--text);
  text-decoration: none;
}

.wordmark img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}

.masthead nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.97rem;
}

.masthead nav a {
  color: var(--text-secondary);
  text-decoration: none;
}

.masthead nav a:hover {
  color: var(--text);
}

/* On a phone the section links crowd the wordmark, and the footer carries them
   anyway. Only the guide stays. */
@media (max-width: 700px) {
  .masthead nav a:not([href="/how-to-use/"]) {
    display: none;
  }
}

section {
  padding: 64px 24px;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
}

.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.prose h2 {
  margin-top: 44px;
  margin-bottom: 10px;
}

.prose h3 {
  margin: 26px 0 6px;
}

.prose p,
.prose ul,
.prose ol,
.prose .table-scroll {
  margin: 12px 0;
}

.prose li {
  margin-bottom: 6px;
}

.lede {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-top: 14px;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.meta {
  color: var(--text-secondary);
  font-size: 0.94rem;
}

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

.hero {
  padding: 72px 24px 40px;
  background:
    radial-gradient(900px 520px at 12% -10%, var(--accent-soft) 0%, transparent 70%),
    radial-gradient(760px 520px at 100% 0%, var(--surface-strong) 0%, transparent 65%);
}

.hero__text {
  max-width: 720px;
}

.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
}

.install img {
  display: block;
  width: auto;
  height: 40px;
}

.button-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--page);
  color: var(--text);
  font-weight: 600;
  font-size: 0.97rem;
  text-decoration: none;
}

.button-secondary:hover {
  color: var(--text);
  border-color: var(--accent);
}

.shot {
  margin: 40px auto 0;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--page);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---- cards and features ------------------------------------------------ */

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 32px;
}

.card {
  padding: 22px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--page);
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: 6px;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.98rem;
}

.card__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}

.card__icon svg {
  width: 20px;
  height: 20px;
}

.split {
  display: grid;
  gap: 36px;
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 44px;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 5fr 7fr;
  }

  .split--flip .split__text {
    order: 2;
  }
}

.split__text p {
  color: var(--text-secondary);
  margin-top: 12px;
}

.split h2 {
  font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.7rem);
}

.band {
  background: var(--surface);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.checks {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.checks li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  color: var(--text-secondary);
}

.checks svg {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--accent);
}

.checks strong {
  color: var(--text);
}

.note {
  margin-top: 28px;
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-secondary);
}

.note strong {
  color: var(--text);
}

/* ---- pricing and faq --------------------------------------------------- */

.pricing {
  max-width: 560px;
  margin: 32px auto 0;
  text-align: center;
}

.price {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1.1;
}

.pricing ul {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  text-align: left;
  color: var(--text-secondary);
}

.pricing ul li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.pricing ul svg {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--accent);
}

.pricing .actions {
  justify-content: center;
}

details {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-soft);
}

details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  list-style: none;
}

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

details summary::after {
  content: "+";
  float: right;
  color: var(--text-secondary);
  font-weight: 500;
}

details[open] summary::after {
  content: "−";
}

details p {
  margin-top: 10px;
  color: var(--text-secondary);
}

/* ---- prose bits shared with the policy and guide pages ------------------ */

figure {
  margin: 20px 0 28px;
}

figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

figcaption {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-soft);
}

th {
  font-weight: 600;
  color: var(--text);
}

td {
  color: var(--text-secondary);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--surface-strong);
}

/* ---- guide and policy navigation --------------------------------------- */

.toc {
  margin: 26px 0 34px;
  padding: 18px 22px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.toc__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 28px;
  font-size: 0.97rem;
}

.toc li {
  margin-bottom: 5px;
  break-inside: avoid;
  color: var(--text-secondary);
}

.toc a {
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

@media (max-width: 620px) {
  .toc ol {
    columns: 1;
  }
}

.prose h2[id],
.prose h3[id] {
  scroll-margin-top: 84px;
}

h2 .step {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-right: 10px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-text);
  font-size: 0.95rem;
  font-weight: 600;
  vertical-align: 3px;
}

.support {
  margin-top: 36px;
  padding: 20px 22px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.support h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.support p {
  color: var(--text-secondary);
}

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

footer {
  padding: 32px 24px 56px;
  border-top: 1px solid var(--border-soft);
  color: var(--text-secondary);
  font-size: 0.94rem;
}

footer .wrap {
  display: grid;
  gap: 12px;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

footer nav a {
  color: var(--text-secondary);
  text-decoration: none;
}

footer nav a:hover {
  color: var(--text);
}
