/* Tydified public site — legal + support pages.
   Palette and fonts mirror docs/brand/BRAND_KIT.md. Mobile-first. */

:root {
  --blue: #14B0FE;
  --amber: #FEAA01;
  --green: #60DB01;
  --navy: #00001B;
  --pink: #FC5499;

  --bg: #FDFDFB;
  --surface: #FFFFFF;
  --text: #1A1A2E;
  --text-muted: #5A5A6E;
  --border: #E6E6EF;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0D0D18;
    --surface: #15152A;
    --text: #F0F0F5;
    --text-muted: #A0A0B5;
    --border: #2A2A42;
  }
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

h1,
h2,
h3 {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
}

h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.3rem;
  margin: 2.4rem 0 0.75rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
}

h3 {
  font-size: 1.08rem;
  margin: 1.6rem 0 0.4rem;
}

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

a:hover {
  color: var(--pink);
}

/* Header ------------------------------------------------------------------ */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.site-header .inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
}

.wordmark {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--navy);
  text-decoration: none;
  margin-right: auto;
}

@media (prefers-color-scheme: dark) {
  .wordmark {
    color: var(--text);
  }
}

.wordmark span {
  color: var(--blue);
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  font-size: 0.94rem;
}

.site-header nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
}

.site-header nav a:hover,
.site-header nav a[aria-current='page'] {
  color: var(--blue);
}

/* Content ---------------------------------------------------------------- */

main {
  max-width: 780px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.meta {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin: 0 0 2rem;
}

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

ul,
ol {
  padding-left: 1.4rem;
}

li {
  margin-bottom: 0.4rem;
}

/* Tables scroll rather than pushing the page sideways. */
.table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 420px;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--bg);
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
}

tr:last-child td {
  border-bottom: none;
}

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin: 1.5rem 0;
}

.callout.warn {
  border-left-color: var(--pink);
}

.callout > :first-child {
  margin-top: 0;
}

.callout > :last-child {
  margin-bottom: 0;
}

/* Landing page ----------------------------------------------------------- */

.hero {
  text-align: center;
  padding: 1rem 0 2.5rem;
}

.tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0.75rem 0 0;
}

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 1rem;
}

.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  text-decoration: none;
  color: inherit;
}

.card:hover {
  border-color: var(--blue);
}

.card h2 {
  font-size: 1.05rem;
  margin: 0 0 0.3rem;
  padding-top: 0;
  border-top: none;
  color: var(--blue);
}

.card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-muted);
}

/* Footer ----------------------------------------------------------------- */

footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 1.25rem 2.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

footer p {
  max-width: 780px;
  margin: 0 auto 0.4rem;
}

/* Hero image + store badges ------------------------------------------------ */
.landing main { max-width: 1100px; }
.hero-logo { width: min(520px, 80%); height: auto; margin: 0 auto 1rem; display: block; }
.wordmark img { display: block; height: 44px; width: auto; }
.hero-img { width: 100%; height: auto; border-radius: var(--radius); margin: 0 0 24px; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 0 0 2.5rem; }
.gallery img { width: 100%; height: auto; border-radius: var(--radius); }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } }
.badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.badge { padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: 0.9rem; font-weight: 600; }
