/* Pjata: Better Design kit "mango-waitress" (project 2a937d6e), target html.
   Kit tokens + component CSS verbatim, then brand overrides, then layout-only CSS. */

/* ---- Kit tokens ---- */
:root {
  --background: oklch(0.957 0.008 85);
  --foreground: oklch(0.31 0.006 75);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.31 0.006 75);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.31 0.006 75);
  --primary: oklch(0.235 0.004 75);
  --primary-foreground: oklch(0.985 0.003 90);
  --secondary: oklch(0.93 0.012 86);
  --secondary-foreground: oklch(0.31 0.006 75);
  --muted: oklch(0.94 0.009 86);
  --muted-foreground: oklch(0.55 0.009 80);
  --accent: oklch(0.915 0.013 86);
  --accent-foreground: oklch(0.31 0.006 75);
  --destructive: oklch(0.63 0.235 32);
  --destructive-foreground: oklch(0.99 0 0);
  --border: oklch(0.905 0.009 85);
  --input: oklch(0.99 0.003 88);
  --ring: oklch(0.4 0.006 75);
  --radius: 1rem;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-serif: ui-serif, Georgia, 'Times New Roman', serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius-sm: calc(var(--radius) - 0.5rem);
  --radius-md: calc(var(--radius) - 0.25rem);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 0.375rem);
  --radius-2xl: calc(var(--radius) + 0.75rem);
  --radius-3xl: calc(var(--radius) + 1.5rem);
  --shadow-xs: 0 0.0625rem 0.125rem oklch(0.30 0.01 75 / 0.05);
  --shadow-sm: 0 0 0 0.0625rem oklch(0.30 0.01 75 / 0.05), 0 0.0625rem 0.125rem oklch(0.30 0.01 75 / 0.05);
  --shadow-md: 0 0 0 0.0625rem oklch(0.30 0.01 75 / 0.04), 0 0.125rem 0.375rem -0.0625rem oklch(0.30 0.01 75 / 0.06), 0 0.5rem 1.5rem -0.375rem oklch(0.30 0.01 75 / 0.08);
  --shadow-s: var(--shadow-sm);
  --shadow-inset: inset 0 0 0 0.0625rem oklch(0.30 0.01 75 / 0.04), inset 0 0.0625rem 0.0625rem oklch(0.30 0.01 75 / 0.03);
  --shadow-button: 0 0 0 0.0625rem oklch(0.30 0.01 75 / 0.05), 0 0.0625rem 0.0625rem oklch(0.30 0.01 75 / 0.04);
  --shadow-button-hover: 0 0 0 0.0625rem oklch(0.30 0.01 75 / 0.06), 0 0.125rem 0.375rem -0.0625rem oklch(0.30 0.01 75 / 0.08);
  --shadow-primary: 0 0.0625rem 0.125rem oklch(0 0 0 / 0.12);
}

/* ---- Brand overrides: same look as the app (Cal AI style: light gray ground, black type and buttons) ---- */
:root {
  --background: #F7F7F8;
  --foreground: #111111;
  --card-foreground: #111111;
  --primary: #111111;
  --primary-foreground: #FFFFFF;
  --ring: #111111;
  --border: #E6E6E9;
  --muted: #F2F2F4;
  --muted-foreground: #6B6B70;                  /* 5.1:1 on #F7F7F8 */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
}

/* ---- Kit component CSS (verbatim subset in use) ---- */
*,*::before,*::after{box-sizing:border-box}
:where(.ds){font-family:var(--font-sans,ui-sans-serif,system-ui,sans-serif);color:var(--foreground,oklch(0.2 0 0));background:var(--background,oklch(1 0 0));line-height:1.5}
.ds :where(h1,h2,h3,h4,h5,h6,p,strong,label,legend,li,dt,dd,small){color:inherit}
.ds h1,.ds h2,.ds h3,.ds h4{font-family:inherit;font-weight:600;margin:0 0 .5em;color:var(--foreground,oklch(0.2 0 0))}
.ds .ds-display{font-family:inherit;font-size:clamp(1.75rem,4vw,2.5rem);font-weight:700;line-height:1.05;letter-spacing:-.03em;margin:0;color:var(--foreground,oklch(0.2 0 0))}
.ds .ds-section-title{font-family:inherit;font-size:1.25rem;font-weight:600;line-height:1.2;letter-spacing:-.01em;margin:0;color:var(--foreground,oklch(0.2 0 0))}
.ds .ds-supporting{font-size:.875rem;font-weight:400;line-height:1.5;color:var(--muted-foreground,oklch(0.55 0 0));margin:0}
.ds a{color:var(--primary,oklch(0.45 0.15 264));text-decoration:none}
.ds a.ds-btn{color:inherit}
.ds a.ds-btn:hover{text-decoration:none}
.ds a.ds-btn-primary{color:var(--primary-foreground)}  /* .ds a.ds-btn inherit beat the primary label colour */
.ds p{margin:0 0 1em}
.ds-muted{color:var(--muted-foreground,oklch(0.55 0 0))}
.ds-btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;font:inherit;font-size:.875rem;font-weight:500;line-height:1;padding:.6rem 1rem;border-radius:9999px;border:1px solid transparent;cursor:pointer;touch-action:manipulation;transition:opacity .15s,background .15s;text-decoration:none;white-space:nowrap;user-select:none}
.ds-btn:focus-visible{outline:2px solid var(--ring);outline-offset:2px}
.ds .ds-btn-primary{background-color:var(--primary);color:var(--primary-foreground);box-shadow:var(--shadow-xs)}
.ds .ds-btn-outline{background-color:transparent;color:var(--foreground);border-width:1px;border-color:var(--border)}
.ds-btn-lg{padding:.75rem 1.4rem;font-size:1rem}
.ds-card{display:flex;flex-direction:column;background:var(--card);color:var(--card-foreground);border:1px solid var(--border);border-radius:var(--radius-2xl,1rem);box-shadow:var(--shadow-s);overflow:hidden}
.ds-card-body{padding:.5rem 1.25rem 1.1rem}
.ds-badge{display:inline-flex;align-items:center;gap:.25rem;border-radius:9999px;padding:.125rem .625rem;font-size:.75rem;line-height:1rem;font-weight:600;background-color:var(--secondary);color:var(--secondary-foreground)}
.ds-badge-outline{background:transparent;border:1px solid var(--border);color:var(--foreground)}
.ds-divider{height:1px;background:var(--border);border:0;margin:1rem 0}
.ds-row{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center}
.ds-table{width:100%;border-collapse:collapse;font-size:.875rem}
.ds-table th,.ds-table td{text-align:left;padding:.5rem .75rem;border-bottom:1px solid var(--border);vertical-align:top}
.ds-table th{font-weight:600;color:var(--muted-foreground)}
@media (pointer:coarse){.ds-btn{min-height:44px}}
@media (hover:hover) and (pointer:fine){
  .ds a:hover{text-decoration:underline}
  .ds-btn:hover{opacity:.9}
  .ds .ds-btn-primary:hover{background-color:color-mix(in oklab,var(--primary) 90%,transparent)}
  .ds .ds-btn-outline:hover{background-color:var(--accent);border-color:color-mix(in oklab,var(--foreground) 20%,transparent);color:var(--accent-foreground)}
}
.ds ::selection{background:var(--primary);color:var(--primary-foreground)}

/* ---- Host isolation (kit template, APP_ROOT = body.ds) ---- */
body.ds{color:var(--foreground);background:var(--background)}
body.ds :where(h1,h2,h3,h4,h5,h6,p,strong,label,legend,li,dt,dd,small):not(.ds-supporting):not(.ds-card-desc):not(.ds-muted){color:inherit!important}

/* ---- Layout only ---- */
html{-webkit-text-size-adjust:100%}
body{margin:0}
.wrap{max-width:44rem;margin:0 auto;padding:0 1rem}
.site-header{padding:1.25rem 0}
.site-header .wrap{display:flex;flex-wrap:wrap;gap:.75rem 1.5rem;align-items:center;justify-content:space-between}
.brand{font-weight:700;font-size:1.125rem;color:var(--foreground)!important}
.site-nav{display:flex;flex-wrap:wrap;gap:1rem;font-size:.9375rem}
.site-nav a[aria-current="page"]{color:var(--foreground);font-weight:600}
main{padding:1.5rem 0 3rem}
.site-footer{border-top:1px solid var(--border);padding:1.5rem 0 2.5rem}
.site-footer .wrap{display:flex;flex-wrap:wrap;gap:.5rem 1.25rem}

/* Landing */
.hero{padding:2rem 0 2.5rem}
.hero .ds-display{max-width:18ch;text-wrap:balance}
.hero .ds-supporting{font-size:1.0625rem;max-width:34rem;margin-top:1rem;text-wrap:pretty}
.hero .ds-btn{margin-top:1.75rem}
.units{margin-top:2rem}
.features{list-style:none;margin:0;padding:0}
.features li{padding:1.5rem 0;border-top:1px solid var(--border)}
.features h2{margin-bottom:.35rem}
.features p{margin:0;max-width:36rem;text-wrap:pretty}

/* Legal and support text */
.doc h1{font-size:1.75rem;line-height:1.15;letter-spacing:-.02em;margin-bottom:.25rem;text-wrap:balance}
.doc h2{font-size:1.125rem;margin-top:2rem}
.doc h3{font-size:1rem;margin-top:1.25rem}
.doc p,.doc li{max-width:65ch;text-wrap:pretty}
.doc ul{padding-left:1.25rem;margin:0 0 1em}
.doc li{margin-bottom:.35rem}
.doc .ds-table{margin:0 0 1.25rem}
.table-scroll{overflow-x:auto}
.lang-switch{margin:0 0 1.5rem}
.summary{margin:1rem 0 1.5rem}
.summary .ds-card-body{padding-top:1.1rem}
.summary h2{margin-bottom:.5rem}
.summary ul{margin:0}
.lang-divider{margin:3rem 0 2rem;height:2px}
.faq h2{margin-top:1.75rem}
