/* CODEX — Through Your Eyes: the rating page (design C of the approved preview, docs/handoffs/2026-10-15-trial-emails-preview.html
   in claude_online). The same tokens, faces, tick rows and send bar, on a full phone screen instead of a phone frame. A light page
   on purpose, as approved: every colour is set here, so it looks the same on any phone setting. */
:root {
  --m-bg: #F6FAFC;
  --m-card: #FFFFFF;
  --m-ink: #0B1B2B;
  --m-muted: #5A6B7D;
  --m-line: #DCE6EF;
  --m-chip: #EEF4F8;
  --accent: #12B5A6;
  --accent2: #3E7BFA;
  --warn: #B45309;
  --font-ui: 'Plus Jakarta Sans', 'IBM Plex Sans Arabic', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-ar: 'IBM Plex Sans Arabic', 'Noto Sans Arabic', Tahoma, Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; background: var(--m-bg); color: var(--m-ink); font-family: var(--font-ui); font-size: 15px; line-height: 1.55; -webkit-text-size-adjust: 100%; }
html[dir="rtl"] body { font-family: var(--font-ar); }
h1, h2, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; }
button, select, textarea { font: inherit; }
button:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent2); outline-offset: 2px; }
.nojs { padding: 24px 16px; text-align: center; color: var(--m-muted); }

/* The page: one phone-wide column, the list scrolls, the send bar stays at the bottom */
.screen { height: 100%; max-width: 560px; margin: 0 auto; background: var(--m-bg); display: flex; flex-direction: column; position: relative; }
.screen[dir="rtl"] { font-family: var(--font-ar); }

/* Top: the Codex mark and name, its tagline below, the globe */
.m-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 6px; }
.brand { display: flex; align-items: center; gap: 9px; direction: ltr; min-width: 0; }
.brand img { width: 40px; height: 40px; border-radius: 11px; display: block; flex: 0 0 auto; } /* his glowing Codex ring (15 Oct 2026, his pick B) */
.brand-txt { display: grid; line-height: 1.1; min-width: 0; }
.brand-name { font-family: 'Plus Jakarta Sans', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; font-weight: 800; font-size: 18px; letter-spacing: .12em; }
.brand-tag { font-family: 'Plus Jakarta Sans', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; font-weight: 500; font-size: 12px; color: var(--m-muted); letter-spacing: .02em; }
.globe { display: inline-flex; align-items: center; gap: 6px; font: 600 12.5px var(--font-ui); padding: 6px 10px; border-radius: 99px; border: 1px solid var(--m-line); background: var(--m-card); color: var(--m-ink); cursor: pointer; flex: 0 0 auto; }
.globe.ar-label { font-family: var(--font-ar); }
.globe svg { width: 15px; height: 15px; }

/* Layout C */
.lay-c .c-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.lay-c .c-hello { padding: 8px 18px 4px; display: grid; gap: 4px; }
.lay-c .c-hello h1 { font-size: 22px; font-weight: 800; line-height: 1.25; }
.lay-c .c-hello p { font-size: 13.5px; color: var(--m-muted); }
.lay-c .c-body { padding: 12px 14px 18px; display: grid; gap: 14px; align-content: start; }
.lay-c .group-t { font-size: 12px; font-weight: 700; color: var(--m-muted); padding: 0 6px 6px; text-transform: uppercase; letter-spacing: .06em; }
.lay-c[dir="rtl"] .group-t { letter-spacing: 0; text-transform: none; font-size: 13px; }
.lay-c .list { background: var(--m-card); border: 1px solid var(--m-line); border-radius: 16px; overflow: hidden; }
.lay-c .row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 14px; border: 0; border-top: 1px solid var(--m-line); background: transparent; font-family: inherit; font-weight: 500; font-size: 14px; color: var(--m-ink); cursor: pointer; text-align: start; }
.lay-c .row:first-child { border-top: 0; }
.lay-c .box { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--m-line); flex: 0 0 auto; display: grid; place-items: center; }
.lay-c .row.on .box { background: #12B5A6; border-color: #12B5A6; }
.lay-c .row.on.bad .box { background: #3E7BFA; border-color: #3E7BFA; }
.lay-c .box svg { width: 13px; height: 13px; opacity: 0; }
.lay-c .row.on .box svg { opacity: 1; }

/* The trial's app first: its icon beside the list of apps */
.app-pick { display: flex; align-items: center; gap: 10px; }
.app-pick img { width: 44px; height: 44px; border-radius: 12px; flex: 0 0 auto; background: var(--m-chip); border: 1px solid var(--m-line); display: block; }
.m-select { flex: 1; min-width: 0; width: 100%; font: 600 15px var(--font-ui); color: var(--m-ink); background-color: var(--m-card); border: 1px solid var(--m-line); border-radius: 12px; padding: 11px 12px; appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--m-muted) 50%), linear-gradient(135deg, var(--m-muted) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
[dir="rtl"] .m-select { background-position: 13px 52%, 18px 52%; }

/* Faces, sad to happy */
.faces { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; background: var(--m-card); border: 1px solid var(--m-line); border-radius: 16px; padding: 10px 6px; }
.face { background: none; border: 0; cursor: pointer; display: grid; justify-items: center; gap: 3px; padding: 4px 0; font-family: inherit; font-weight: 600; font-size: 10.5px; color: var(--m-muted); border-radius: 12px; min-width: 0; }
.face span { max-width: 100%; overflow-wrap: anywhere; text-align: center; line-height: 1.25; }
.face svg { width: 38px; height: 38px; }
.face circle.f { fill: #EEF4F8; stroke: #C9D6E1; }
.face path { stroke: #5A6B7D; fill: none; }
.face circle.e { fill: #5A6B7D; stroke: none; }
.face.on { color: #0B6E66; background: #E0F7F4; }
.face.on circle.f { fill: #FFFFFF; stroke: #12B5A6; }
.face.on path { stroke: #0B6E66; }
.face.on circle.e { fill: #0B6E66; }

.m-text { width: 100%; min-height: 84px; resize: vertical; font-family: inherit; font-size: 15px; color: var(--m-ink); background: var(--m-card); border: 1px solid var(--m-line); border-radius: 12px; padding: 10px 12px; display: block; }
.m-fine { font-size: 11.5px; color: var(--m-muted); text-align: center; }

/* The send bar */
.lay-c .c-bar { padding: 10px 14px calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--m-card); border-top: 1px solid var(--m-line); display: grid; gap: 8px; }
.c-note { font-size: 13px; font-weight: 600; color: var(--warn); text-align: center; }
.m-send { width: 100%; font-family: inherit; font-weight: 700; font-size: 15.5px; color: #FFFFFF; background: linear-gradient(135deg, #12B5A6, #3E7BFA); border: 0; border-radius: 14px; padding: 13px; cursor: pointer; }
.m-send[disabled] { opacity: .45; cursor: not-allowed; }
.m-ghost { font-family: inherit; font-weight: 600; font-size: 14px; color: var(--m-ink); background: transparent; border: 1px solid var(--m-line); border-radius: 14px; padding: 12px 16px; cursor: pointer; }

/* Thank you */
.thanks { flex: 1; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 30px 22px; text-align: center; }
.thanks .ok { width: 74px; height: 74px; border-radius: 50%; background: linear-gradient(135deg, #12B5A6, #3E7BFA); display: grid; place-items: center; }
.thanks .ok svg { width: 34px; height: 34px; }
.thanks h1 { font-size: 22px; font-weight: 800; }
.thanks p { color: var(--m-muted); font-size: 14px; max-width: 26ch; }

/* The stop page */
.stop { flex: 1; display: grid; align-content: center; justify-items: center; gap: 16px; padding: 24px 18px calc(24px + env(safe-area-inset-bottom, 0px)); text-align: center; }
.stop .ar { direction: rtl; font-family: var(--font-ar); }
.stop .en { direction: ltr; font-family: var(--font-ui); }
.stop h1 { font-size: 20px; font-weight: 800; line-height: 1.35; }
.stop p { color: var(--m-muted); font-size: 14px; max-width: 34ch; }
.stop .m-send { max-width: 340px; display: grid; gap: 2px; line-height: 1.35; }
.stop .m-send .ar { font-size: 16px; }
.stop .m-send .en { font-size: 13.5px; font-weight: 600; opacity: .92; }
.stop .done { display: grid; gap: 6px; font-weight: 700; font-size: 16px; color: #0B6E66; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
