/* Mila — ai-mila.com
   Premium black on white, the restraint of the app's result page: a serif
   wordmark, generous air, one gold accent used sparingly, and no decoration
   that is not carrying information. No JavaScript anywhere on this site. */

:root {
  --ink: #0B0B0B;
  --muted: #6B6560;
  --faint: #9B948C;
  --hair: #E8E4DE;
  --paper: #FFFFFF;
  --warm: #F7F4EF;
  --gold: #C8A96B;
  --max: 1080px;
  --text: 680px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.narrow { max-width: var(--text); }

/* ---- the draft banner --------------------------------------------------
   Deliberately loud and impossible to mistake for page furniture. It comes
   off only when counsel has actually reviewed the page. */
.draft {
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  line-height: 1.5;
  letter-spacing: 0.03em;
  text-align: center;
  padding: 11px 20px;
}
.draft strong { color: var(--gold); letter-spacing: 0.08em; }

/* ---- masthead ---------------------------------------------------------- */
header.site {
  border-bottom: 1px solid var(--hair);
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(12px);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 20px; padding-bottom: 20px; gap: 20px; flex-wrap: wrap;
}
.wordmark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px; letter-spacing: 0.06em; text-decoration: none;
  color: var(--ink); line-height: 1;
}
nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
nav a {
  color: var(--muted); text-decoration: none; font-size: 13.5px;
  white-space: nowrap; padding: 2px 0; border-bottom: 1px solid transparent;
}
nav a:hover { color: var(--ink); }
nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }

/* ---- type -------------------------------------------------------------- */
main { padding: 56px 0 80px; }
h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400; font-size: 42px; line-height: 1.12;
  letter-spacing: -0.01em; margin: 0 0 16px;
}
h2 {
  font-size: 12px; letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--faint); margin: 46px 0 14px; font-weight: 600;
}
h3 { font-size: 17px; margin: 30px 0 8px; font-weight: 600; letter-spacing: -0.005em; }
p { margin: 0 0 16px; max-width: var(--text); }
.lead { font-size: 19.5px; line-height: 1.55; }
.sub { color: var(--muted); }
small, .fine { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
ul { padding-left: 20px; margin: 0 0 16px; max-width: var(--text); }
li { margin-bottom: 8px; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--gold); }
hr { border: 0; border-top: 1px solid var(--hair); margin: 44px 0; }

/* A placeholder nobody can skim past. */
.ph {
  background: #FFF3CD; border-bottom: 1px solid #E0C56A;
  padding: 0 4px; font-weight: 600;
}

/* ---- landing: hero ----------------------------------------------------- */
.hero { padding: 56px 0 12px; }
.hero h1 { font-size: 64px; max-width: 17ch; letter-spacing: -0.02em; }
.hero .lead { max-width: 52ch; color: var(--muted); margin-top: 24px; font-size: 20px; }
.eyebrow {
  font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin: 0 0 22px;
}

/* ---- landing: feature grid --------------------------------------------- */
.grid {
  display: grid; gap: 1px; background: var(--hair);
  border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
  grid-template-columns: repeat(3, 1fr); margin: 56px 0;
}
.cell { background: var(--paper); padding: 30px 26px 32px; }
.cell .n {
  font-family: Georgia, serif; font-size: 13px; color: var(--gold);
  display: block; margin-bottom: 14px; letter-spacing: 0.08em;
}
.cell h3 { margin: 0 0 8px; font-size: 16.5px; }
.cell p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* ---- landing: quiet statement ------------------------------------------ */
.statement {
  background: var(--ink); color: #fff; padding: 64px 0; margin: 0 0 56px;
}
.statement p {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px; line-height: 1.45; margin: 0 auto; max-width: 22ch;
  text-align: center; color: #fff;
}
/* Declares its own size and family: .statement p sets both, and .fine alone
   would inherit the 27px serif meant for the pull quote. */
.statement .fine {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 13.5px; line-height: 1.6;
  color: rgba(255,255,255,0.58); text-align: center; max-width: 52ch; margin: 26px auto 0;
}

.notice {
  background: var(--warm); border-radius: 16px; padding: 26px 28px; margin: 40px 0;
  max-width: var(--text);
}
.notice h3 { margin-top: 0; }
.notice p:last-child { margin-bottom: 0; }

/* ---- tables ------------------------------------------------------------ */
.tablewrap { overflow-x: auto; margin: 0 0 22px; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; min-width: 520px; }
th, td { text-align: left; padding: 11px 13px; border-bottom: 1px solid var(--hair); vertical-align: top; }
th { font-size: 11.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; color: var(--muted); }

/* ---- footer ------------------------------------------------------------ */
footer.site { border-top: 1px solid var(--hair); padding: 40px 0 64px; margin-top: 40px; }
footer.site .links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 18px; }
footer.site .links a { color: var(--muted); text-decoration: none; font-size: 13.5px; }
footer.site .links a:hover { color: var(--ink); }
footer.site p { margin: 0; font-size: 13px; color: var(--faint); line-height: 1.7; }
footer.site .mark {
  font-family: Georgia, serif; font-size: 17px; letter-spacing: 0.06em;
  color: var(--ink); display: block; margin-bottom: 16px;
}


/* ---- mobile navigation -------------------------------------------------
   Five links will not sit on one row at 360px, and shrinking the type to make
   them fit would make a legal site harder to read on the device most people
   will open it on. So on small screens the nav becomes its own full-width row
   under the wordmark: one line, horizontally scrollable, every link still
   visible and reachable.
   
   Deliberately NOT a hamburger. Affiliate reviewers and users looking for a
   privacy policy should not have to discover a menu to find one -- hiding the
   legal pages behind a tap is the opposite of what these pages are for.
   
   Touch targets go to 44px, which is the comfortable minimum; they were 26px. */
@media (max-width: 720px) {
  header.site .wrap {
    flex-direction: column; align-items: stretch; gap: 0;
    padding-top: 14px; padding-bottom: 0;
  }
  .wordmark { font-size: 21px; padding-bottom: 12px; }
  nav {
    display: flex; flex-wrap: nowrap; gap: 0 20px;
    /* min-width: 0 is load-bearing. A flex item defaults to min-width: auto,
       so the nav refused to shrink below the combined width of five links and
       pushed the document 13px wider than a 360px viewport -- the whole page
       scrolled sideways because of the menu. With this it shrinks to the
       column and scrolls its own overflow instead. */
    min-width: 0; max-width: 100%;
    overflow-x: auto; overflow-y: hidden;
    margin: 0 -20px; padding: 0 20px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    border-top: 1px solid var(--hair);
  }
  nav::-webkit-scrollbar { display: none; }
  /* A scrollable row with no visible edge reads as a truncated one. This fades
     the last few pixels so the row obviously continues, without a scrollbar and
     without shrinking the type to force five links into 360px. */
  @supports (mask-image: linear-gradient(#000, #000)) {
    nav {
      mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
      -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
    }
  }
  nav a {
    min-height: 44px; display: flex; align-items: center;
    font-size: 13.5px; flex: 0 0 auto;
    border-bottom: 2px solid transparent;
  }
  nav a[aria-current="page"] { border-bottom-color: var(--gold); }

  /* Footer links get the same treatment: stacked, full-width, tappable. */
  footer.site .links { flex-direction: column; gap: 0; }
  footer.site .links a {
    min-height: 44px; display: flex; align-items: center;
    border-bottom: 1px solid var(--hair); font-size: 14px;
  }
  footer.site .links a:last-child { border-bottom: 0; }

  /* An address that cannot wrap is the classic source of a 1px overflow. */
  a[href^="mailto:"] { word-break: break-word; }
}

/* ---- responsive -------------------------------------------------------- */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 48px; max-width: none; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 20px; }
  main { padding: 36px 0 56px; }
  h1 { font-size: 31px; }
  .hero { padding: 22px 0 4px; }
  .hero h1 { font-size: 38px; max-width: none; }
  .hero .lead { font-size: 17px; }
  .lead { font-size: 17.5px; }
  .grid { grid-template-columns: 1fr; margin: 40px 0; }
  .cell { padding: 24px 20px 26px; }
  .statement { padding: 44px 0; }
  .statement p { font-size: 21px; max-width: none; }
  header.site .wrap { padding-top: 16px; padding-bottom: 14px; gap: 12px; }
  nav { gap: 4px 18px; }
  nav a { font-size: 13px; }
  .notice { padding: 22px 20px; border-radius: 14px; }
}
