/* Eazy website. Same look as the app (frontend/DESIGN.md): system font, near-black ink, soft
   pastel wash, no web fonts, no scripts. Light only, like the app. */
:root {
  --ink: #171717;        /* neutral-900 */
  --muted: #737373;      /* neutral-500 */
  --line: rgba(229, 229, 229, 0.8);
  --card: rgba(255, 255, 255, 0.9);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Noto Sans Thai", "Thonburi", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(60% 40% at 0% 15%, rgba(214, 245, 228, 0.75), transparent 70%),
    radial-gradient(55% 35% at 100% 10%, rgba(250, 226, 238, 0.7), transparent 70%),
    radial-gradient(80% 40% at 50% 100%, rgba(228, 226, 245, 0.9), transparent 70%),
    #fbfbfc;
  background-attachment: fixed;
}

a { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(23, 23, 23, 0.4);
  text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--ink); }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* Top bar */
.top { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.top .logo img { display: block; height: 34px; width: auto; }
.top .logo { text-decoration: none; }
.lang { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--card);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06); font-size: 14px; }
.lang a, .lang span { display: block; padding: 4px 12px; border-radius: 999px; text-decoration: none; }
.lang span { background: var(--ink); color: #fff; font-weight: 600; }
.lang a { color: var(--muted); }

/* Home */
.hero { text-align: center; padding: 40px 0 24px; }
.hero h1 { font-size: 34px; line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 12px; }
.hero p { font-size: 19px; color: #404040; margin: 0 auto 24px; max-width: 30em; }
.hero .family { display: block; width: 100%; max-width: 520px; height: auto; margin: 8px auto 0; }
.pill { display: inline-block; padding: 12px 22px; border-radius: 999px; background: var(--ink); color: #fff;
  font-weight: 600; text-decoration: none; }
.pill.soon { background: var(--card); color: #404040; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); font-weight: 500; }
.hero .note { font-size: 14px; color: var(--muted); margin: 16px auto 0; max-width: 34em; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 32px 0; }
.card { background: var(--card); border-radius: 20px; padding: 18px 20px; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05); }
.card h3 { margin: 0 0 4px; font-size: 17px; }
.card p { margin: 0; font-size: 15px; color: #525252; }

/* Long pages (privacy, terms, support) */
.doc { background: var(--card); border-radius: 24px; padding: 28px 24px; margin: 8px 0 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05); }
.doc h1 { font-size: 30px; line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 4px; }
.doc .meta { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.doc h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; margin: 32px 0 8px; }
.doc h3 { font-size: 17px; margin: 20px 0 4px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 600; }
.doc .box { background: #f5f5f5; border-radius: 14px; padding: 12px 16px; }
.toc { columns: 2; column-gap: 24px; font-size: 15px; padding-left: 20px; }
.table-scroll { overflow-x: auto; }

/* Footer */
.foot { padding: 24px 0 40px; font-size: 14px; color: var(--muted); text-align: center; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-bottom: 8px; }
.foot a { color: var(--muted); font-weight: 400; }

@media (max-width: 560px) {
  .hero h1 { font-size: 28px; }
  .doc { padding: 22px 18px; border-radius: 20px; }
  .doc h1 { font-size: 26px; }
  .toc { columns: 1; }
  /* Tables become one block per row on phones: the first cell is the row's title. */
  .doc table, .doc tbody, .doc tr, .doc td { display: block; width: auto; }
  .doc tr:first-child { display: none; }
  .doc tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .doc td { border: 0; padding: 2px 0; }
  .doc td:first-child { font-weight: 600; }
}
