/* direct.css — the AI front door's public pages (docs/AI_FRONT_DOOR_SPEC.md s7).
   The phone yardstick (Rob 2026-09-22): at 390x844 no text under 16px, no control under 44px,
   no sideways scroll. The site's own palette: charcoal ink, one deep-teal accent. */
:root {
  --ink: #1f2937; --soft: #4b5563; --mute: #6b7280; --line: #e5e7eb; --line2: #d1d5db;
  --bg: #ffffff; --bg2: #f9fafb; --accent: #0f766e; --accent-d: #115e59; --accent-s: #ccfbf1;
  --warn: #92400e; --warn-s: #fef3c7; --ok: #065f46; --ok-s: #d1fae5;
  --r: 10px; --r2: 14px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* author display rules must never un-hide */
html { -webkit-text-size-adjust: 100%; }
body.dx { margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.55 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; overflow-x: hidden; }
.dx a { color: var(--accent); }
.dx a:hover { color: var(--accent-d); }
.dx img { max-width: 100%; height: auto; }
.dx-skip { position: absolute; left: -9999px; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; }
.dx-skip:focus { left: 16px; top: 8px; background: var(--bg); padding: 8px 12px; z-index: 10; }
.dx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dx-wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* nav */
.dx-nav { border-bottom: 1px solid var(--line); background: var(--bg); }
.dx-nav-in { max-width: 1100px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center;
  justify-content: space-between; gap: 12px; flex-wrap: wrap; min-height: 56px; }
.dx-logo { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; font-weight: 700; font-size: 22px;
  color: var(--ink) !important; text-decoration: none; letter-spacing: -0.01em; }
.dx-links { display: flex; flex-wrap: wrap; gap: 2px; }
.dx-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-size: 16px;
  color: var(--soft); text-decoration: none; border-radius: 8px; }
.dx-links a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.dx-links a:hover { background: var(--bg2); color: var(--ink); }

/* type */
.dx-h1 { font-size: 28px; line-height: 1.2; margin: 20px 0 8px; letter-spacing: -0.015em; }
.dx-sub { margin: 0 0 12px; color: var(--soft); font-size: 17px; }
.dx-prose { padding-bottom: 32px; }
.dx-prose h2 { font-size: 22px; margin: 32px 0 10px; }
.dx-prose h3 { font-size: 19px; margin: 24px 0 8px; }
.dx-prose p, .dx-prose li { font-size: 17px; }
.dx-small { font-size: 16px; color: var(--mute); }
.dx-lede { font-size: 19px; color: var(--soft); max-width: 720px; }
.dx-note { padding: 12px 14px; border-radius: var(--r); margin: 10px 0; font-size: 16px; }
.dx-warn { background: var(--warn-s); color: var(--warn); }
.dx-ok { background: var(--ok-s); color: var(--ok); }
.dx-problem { border-left: 4px solid var(--warn); background: var(--warn-s); padding: 10px 14px; border-radius: 6px; margin: 12px 0; }
.dx-problem p { margin: 4px 0; }

/* the make / design layout */
.dx-make-grid { display: grid; grid-template-columns: 1fr; gap: 8px 32px; padding-bottom: 24px; }
@media (min-width: 900px) {
  .dx-make-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: start; }
  .dx-h1 { font-size: 36px; }
  .dx-panel { padding-top: 64px; }
}
.dx-frame { position: relative; width: 100%; aspect-ratio: 1 / 1; background: var(--bg2); border-radius: var(--r2);
  overflow: hidden; border: 1px solid var(--line); }
.dx-frame .dx-blank { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.dx-frame .dx-art { position: absolute; transform: translate(-50%, -50%); height: auto; max-width: none; pointer-events: none; }
.dx-frame-hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); margin: 0;
  background: rgba(255, 255, 255, 0.92); padding: 6px 12px; border-radius: 999px; font-size: 16px; color: var(--soft);
  white-space: nowrap; }
.dx-verdict { margin: 10px 0; padding: 10px 14px; border-radius: var(--r); font-size: 16px; }
.dx-verdict:empty { display: none; }
.dx-tabs { display: flex; gap: 8px; margin: 8px 0 10px; }
.dx-tab { min-height: 44px; min-width: 88px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line2);
  background: var(--bg); color: var(--ink); font-family: inherit; font-size: 16px; font-weight: 500; line-height: 1; cursor: pointer; }
.dx-tab[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* the form */
.dx-form { margin: 0; }
.dx-field { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.dx-field legend { font-weight: 600; font-size: 17px; margin-bottom: 8px; padding: 0; }
.dx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dx-chip { position: relative; }
.dx-chip input, .dx-swatch input, .dx-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dx-chip span { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line2); border-radius: 999px; font-size: 16px; cursor: pointer; background: var(--bg); }
.dx-chip span b { font-weight: 600; color: var(--soft); }
.dx-chip input:checked + span { border-color: var(--accent); background: var(--accent-s); }
.dx-chip input:checked + span b { color: var(--accent-d); }
.dx-chip input:focus-visible + span, .dx-seg input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.dx-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.dx-swatch { position: relative; cursor: pointer; }
.dx-swatch span { display: block; width: 44px; height: 44px; border-radius: 50%; background: var(--sw, #ccc);
  border: 1px solid var(--line2); box-shadow: inset 0 0 0 3px #fff; }
.dx-swatch input:checked + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.dx-swatch input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.dx-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.dx-seg label { position: relative; }
.dx-seg span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line2); font-size: 16px; cursor: pointer; }
.dx-seg input:checked + span { border-color: var(--accent); background: var(--accent-s); }
.dx-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 112px; padding: 16px; border: 2px dashed var(--line2); border-radius: var(--r2); text-align: center;
  cursor: pointer; background: var(--bg2); }
.dx-drop:hover { border-color: var(--accent); }
/* the whole drop zone is the tap target: the native input covers it, invisible */
.dx-drop { position: relative; }
.dx-drop input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.dx-drop-t { font-weight: 600; font-size: 17px; }
.dx-drop-s { font-size: 16px; color: var(--mute); }
.dx-linkbtn { background: none; border: 0; color: var(--accent); font: inherit; font-size: 16px; text-decoration: underline;
  cursor: pointer; min-height: 44px; padding: 0 4px; }
.dx-price { font-size: 17px; margin: 6px 0 12px; }
.dx-price b { font-size: 26px; }
.dx-price span { color: var(--soft); }
.dx-cta { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; padding: 0 22px;
  border: 0; border-radius: 12px; background: var(--accent); color: #fff !important; font-family: inherit; font-size: 18px;
  font-weight: 600; line-height: 1.2;
  cursor: pointer; text-decoration: none; }
.dx-cta:hover { background: var(--accent-d); }
.dx-cta:disabled { opacity: 0.6; cursor: progress; }
.dx-cta-inline { width: auto; }
.dx-btn { min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line2); background: var(--bg);
  font-family: inherit; font-size: 16px; font-weight: 500; line-height: 1; cursor: pointer; }
.dx-check { display: flex; gap: 12px; align-items: center; font-size: 16px; margin: 10px 0 14px; cursor: pointer; }
.dx-check input { width: 44px; height: 44px; margin: 0; flex: none; accent-color: var(--accent); }
.dx-msg { color: var(--warn); font-size: 16px; min-height: 1em; }

/* sizes */
.dx-sizes { display: grid; gap: 6px; }
.dx-size { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 8px; padding: 6px 0;
  border-bottom: 1px solid var(--line); }
.dx-size.dx-off { opacity: 0.4; }
.dx-size-n { font-weight: 600; font-size: 17px; }
.dx-size-p { color: var(--soft); font-size: 16px; }
.dx-step { display: inline-flex; align-items: center; gap: 4px; }
.dx-step button { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line2); background: var(--bg);
  font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink); }
.dx-step input { width: 52px; height: 44px; text-align: center; font-size: 17px; border: 1px solid var(--line2); border-radius: 10px; }

/* share */
.dx-share { margin: 24px 0 12px; padding: 16px; background: var(--bg2); border-radius: var(--r2); }
.dx-share h2 { font-size: 19px; margin: 0 0 6px; }
.dx-share p { margin: 0 0 10px; font-size: 16px; color: var(--soft); }
.dx-share-row { display: flex; gap: 8px; }
.dx-share-row input { flex: 1; min-width: 0; height: 44px; padding: 0 10px; font-size: 16px; border: 1px solid var(--line2);
  border-radius: 10px; background: var(--bg); }

/* how it works, items, ideas */
.dx-steps { padding-left: 22px; }
.dx-steps li { margin: 8px 0; }
.dx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; margin: 16px 0 28px; }
.dx-card { display: block; border: 1px solid var(--line); border-radius: var(--r2); overflow: hidden; color: var(--ink) !important;
  text-decoration: none; background: var(--bg); }
.dx-card:hover { border-color: var(--accent); }
.dx-card img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: var(--bg2); }
.dx-card-b { padding: 12px 14px 14px; }
.dx-card-t { font-weight: 600; font-size: 18px; margin: 0 0 2px; }
.dx-card-p { margin: 0; color: var(--soft); font-size: 16px; }
.dx-facts { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 16px; }
.dx-facts th, .dx-facts td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.dx-facts th { width: 38%; color: var(--soft); font-weight: 500; }
.dx-table-wrap { overflow-x: auto; }
.dx-colors-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 16px; padding: 0; list-style: none; }
.dx-colors-row li { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; padding: 4px 10px 4px 4px;
  border: 1px solid var(--line); border-radius: 999px; }
.dx-colors-row i { width: 28px; height: 28px; border-radius: 50%; background: var(--sw, #ccc); border: 1px solid var(--line2); }
.dx-hero-pic { max-width: 560px; }

/* for AI assistants */
.dx-ai { margin: 28px 0; padding: 16px; border: 1px solid var(--line2); border-radius: var(--r2); background: var(--bg2); }
.dx-ai h2 { font-size: 19px; margin: 0 0 6px; }
.dx-ai p { font-size: 16px; margin: 6px 0; }
.dx pre { margin: 8px 0; padding: 12px; background: #111827; color: #e5e7eb; border-radius: 10px; overflow-x: auto;
  font: 16px/1.5 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap;
  word-break: break-all; }
.dx code { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 16px; }
.dx p code, .dx li code, .dx td code { background: var(--bg2); padding: 1px 5px; border-radius: 4px; word-break: break-word; }

/* Links inside sentences get a taller tap area (the yardstick counts every link) without moving the text. */
.dx-prose a, .dx-ai a, .dx-small a, .dx-note a, .dx-check a, .dx-card-p a { padding: 12px 0; }
.dx-facts a { display: inline-block; min-width: 44px; padding: 12px 0; }

/* footer */
.dx-foot { border-top: 1px solid var(--line); margin-top: 24px; padding: 20px 0 36px; background: var(--bg2); }
.dx-foot-line { font-size: 16px; color: var(--soft); margin: 0 0 8px; }
.dx-foot-links { display: flex; flex-wrap: wrap; gap: 0 4px; margin: 0; }
.dx-foot-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; font-size: 16px; }
