/* yae.digital: shared styles.
   Most layout lives in inline styles carried over from the approved design (design/canvas).
   Colours used inline point at the tokens below, so a palette change happens here. */

@font-face { font-family: "Sora"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/sora-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/sora-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/sora-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/dm-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/dm-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  /* brand: colour carries meaning (lime = allowed, orange = needs a person, ink = authority or blocked, violet = AI) */
  --lime: #C8FF32;
  --orange: #FF6A3D;
  --violet: #6F45FF;
  --violet-deep: #5631E0;
  --ink: #111116;
  --deny: #E5484D;

  /* surfaces */
  --paper: #FAFAF7;      /* page base: very light warm white */
  --white: #FFFFFF;      /* alternating sections and cards */
  --ink-2: #1B1B22;      /* cards on dark */
  --line-dark: #2B2B34;  /* borders on dark */

  /* text */
  --text: #3A3A42;
  --muted: #5F5F69;
  --muted-dark: #A8A8B3; /* muted text on dark */

  /* lines */
  --border: #E6E6E0;
  --border-soft: #ECECE6;
  --line: #EFEFEA;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); }
img { max-width: 100%; }

a { color: var(--ink); }
a:hover { color: var(--violet-deep); }

details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details[open] .chev { transform: rotate(180deg); }

:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

[hidden] { display: none !important; }

/* pill buttons */
.btn { transition: transform 0.15s ease, box-shadow 0.15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(17, 17, 22, 0.14); }
.btn:disabled, .btn[aria-busy="true"] { opacity: 0.6; cursor: progress; transform: none; box-shadow: none; }

/* skip link */
.skip-link { position: absolute; left: -9999px; top: 12px; z-index: 100; padding: 10px 14px; border-radius: 8px; background: var(--white); color: var(--ink); font-family: "Sora", system-ui, sans-serif; font-weight: 600; }
.skip-link:focus { left: 16px; }

/* main nav: on phones the pill becomes one scrollable row under the logo */
.nav-product-link { display: none; }
@media (max-width: 760px) {
  .site-nav { order: 3; width: 100%; flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { white-space: nowrap; padding: 10px 11px !important; font-size: 14px !important; }
  .site-nav details, .site-nav .nav-how { display: none; }
  .nav-product-link { display: inline-block; }
  .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; justify-items: start !important; }
  .works-chip { border-radius: 18px !important; }
}

/* forms */
input[type=text], input[type=email], select, textarea {
  font-family: inherit; font-size: 16px; color: var(--ink); background: var(--white);
  border: 1px solid #D6D6D0; border-radius: 10px; padding: 12px 14px; width: 100%; box-sizing: border-box;
}
input[type=text]:focus, input[type=email]:focus, select:focus, textarea:focus { outline: 2px solid var(--violet); outline-offset: 1px; border-color: var(--violet); }
.opt input { accent-color: var(--ink); width: 18px; height: 18px; margin: 0; }
.opt:has(input:checked) { border-color: var(--ink) !important; background: #F4F4EF; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* legal pages */
/* Pricing: four plan cards, 2 x 2 on tablets, one per row on phones */
.plan-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .plan-grid { grid-template-columns: 1fr; } }

.legal { font-family: "Sora", system-ui, sans-serif; color: var(--text); font-size: 16px; line-height: 1.7; }
.legal .legal-eyebrow { margin: 0 0 18px; font-family: "DM Mono", ui-monospace, monospace; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.legal h1 { margin: 0 0 10px; color: var(--ink); font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 600; }
.legal .legal-updated { margin: 0 0 28px; font-family: "DM Mono", ui-monospace, monospace; font-size: 13px; color: var(--muted); }
.legal h2 { margin: 44px 0 12px; color: var(--ink); font-size: 22px; line-height: 1.25; letter-spacing: -0.015em; font-weight: 600; scroll-margin-top: 24px; }
.legal h3 { margin: 26px 0 8px; color: var(--ink); font-size: 17px; line-height: 1.35; font-weight: 600; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin: 0 0 8px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--violet-deep); }

/* Third-party logos. Until the official files are added, every slot stays hidden and the names show as text.
   `npm run logos` turns each slot into an <img>, which this rule doesn't touch. */
span[data-logo] { display: none !important; }
.logo-fallback { display: none; }
span[data-logo] ~ .logo-fallback { display: inline; }
