
  :root {
    --primary: #0B1A32;
    --ink: #0B1A32;
    --parchment: #F5F6F8;
    --sf: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
    --ar: "IBM Plex Sans Arabic", "SF Arabic", "Noto Sans Arabic", system-ui, sans-serif;
    --brand-sweep: linear-gradient(96deg, #ff9a52 0%, #f2568f 46%, #8b5cf6 100%);
  }

  html { scroll-behavior: smooth; scroll-padding-top: 80px; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

  body {
    font-family: var(--sf);
    background: #ffffff;
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }
  :root[dir="rtl"] body { font-family: var(--ar); }
  .ar { font-family: var(--ar); }

  /* ---- Type scale (appleDESIGN tokens) ---- */
  .t-hero        { font-size: 56px; font-weight: 600; line-height: 1.07; letter-spacing: -0.28px; }
  .t-display-lg  { font-size: 40px; font-weight: 600; line-height: 1.10; letter-spacing: 0; }
  .t-display-md  { font-size: 34px; font-weight: 600; line-height: 1.20; letter-spacing: -0.374px; }
  .t-lead        { font-size: 28px; font-weight: 400; line-height: 1.14; letter-spacing: 0.196px; }
  .t-lead-airy   { font-size: 24px; font-weight: 300; line-height: 1.5;  letter-spacing: 0; }
  .t-tagline     { font-size: 21px; font-weight: 600; line-height: 1.19; letter-spacing: 0.231px; }
  .t-body-strong { font-size: 17px; font-weight: 600; line-height: 1.24; letter-spacing: -0.374px; }
  .t-body        { font-size: 17px; font-weight: 400; line-height: 1.47; letter-spacing: -0.374px; }
  .t-caption     { font-size: 14px; font-weight: 400; line-height: 1.43; letter-spacing: -0.224px; }
  .t-caption-str { font-size: 14px; font-weight: 600; line-height: 1.29; letter-spacing: -0.224px; }
  .t-fine        { font-size: 12px; font-weight: 400; line-height: 1.4;  letter-spacing: -0.12px; }
  .t-micro       { font-size: 10px; font-weight: 400; line-height: 1.3;  letter-spacing: -0.08px; }
  .t-nav         { font-size: 13px; font-weight: 400; line-height: 1.0;  letter-spacing: -0.12px; }

  :root[dir="rtl"] .t-hero,
  :root[dir="rtl"] .t-display-lg,
  :root[dir="rtl"] .t-display-md,
  :root[dir="rtl"] .t-body,
  :root[dir="rtl"] .t-caption { letter-spacing: 0; }
  :root[dir="rtl"] .t-hero { line-height: 1.26; }
  :root[dir="rtl"] .t-display-lg { line-height: 1.32; }
  :root[dir="rtl"] .t-lead { line-height: 1.45; }
  /* Tajawal ships 300/400/500/700 with no 600, so the Latin 600 steps are
     mapped explicitly: display sizes take 700, small emphasis takes 500. */
  :root[dir="rtl"] .t-hero,
  :root[dir="rtl"] .t-display-lg,
  :root[dir="rtl"] .t-display-md,
  :root[dir="rtl"] .t-tagline { font-weight: 700; }
  :root[dir="rtl"] .t-body-strong,
  :root[dir="rtl"] .t-caption-str,
  :root[dir="rtl"] .det-value,
  :root[dir="rtl"] .navbtn[aria-current="true"],
  :root[dir="rtl"] .hist[aria-current="true"],
  :root[dir="rtl"] .chip[aria-pressed="true"] { font-weight: 500; }

  /* Arabic sets smaller on the body than Latin at the same px, so the two
     smallest steps are lifted rather than shrunk to illegibility. */
  :root[dir="rtl"] .t-micro { font-size: 11px; line-height: 1.5; }
  :root[dir="rtl"] .t-fine  { font-size: 13px; line-height: 1.55; }
  :root[dir="rtl"] .tip     { font-size: 13px; line-height: 1.6; }
  :root[dir="rtl"] .hist    { font-size: 14px; }
  :root[dir="rtl"] .type-badge { font-size: 12px; }

  h1, h2 { text-wrap: balance; }

  @media (max-width: 1068px) { .t-hero { font-size: 44px; letter-spacing: -0.2px; } .t-display-lg { font-size: 34px; } .t-lead { font-size: 24px; } }
  @media (max-width: 640px)  { .t-hero { font-size: 34px; } .t-display-lg { font-size: 28px; } .t-lead { font-size: 19px; line-height: 1.35; } }
  @media (max-width: 419px)  { .t-hero { font-size: 29px; } }

  /* The hero owns most of the first screen; the gallery starts just below the fold. */
  .hero-section {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
  }
  /* An auto inline margin on a column flex item cancels stretch, so the children
     were sizing to their own content, and the text input's intrinsic width then
     pushed the hero wider than a phone screen. Pin them to the container instead. */
  .hero-section > * { width: 100%; min-width: 0; }
  @media (max-width: 735px) { .hero-section { min-height: 70vh; } }

  @media (min-width: 1000px) {
    .hero-line { white-space: nowrap; font-size: min(56px, 5.05vw); }
    :root[dir="rtl"] .hero-line { font-size: min(56px, 6.4vw); }
  }

  /* ---- The one gradient: two words of the headline ---- */
  .sweep {
    background: var(--brand-sweep);
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
    /* The clipped background stops at the em box, which cuts marks that rise
       above it, the madda on آ, for one. Pad the box back out. */
    padding-block: 0.14em;
    margin-block: -0.14em;
  }

  .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
         border: 0; transition: transform .16s ease, background-color .16s ease, color .16s ease, border-color .16s ease; }
  .btn:active { transform: scale(0.95); }
  .btn:focus-visible { outline: 2px solid #2F6FDB; outline-offset: 3px; }
  @media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:active { transform: none; } }

  .btn-primary { background: var(--primary); color: #fff; border-radius: 9999px;
                 padding: 11px 22px; font-size: 17px; font-weight: 400; letter-spacing: -0.374px; }
  .btn-outline { background: #fff; color: var(--ink); border: 1px solid #DEE1E7; border-radius: 9999px;
                 padding: 10px 18px; font-size: 15px; font-weight: 400; letter-spacing: -0.224px; }
  .btn-outline:hover { border-color: #C9CDD5; }
  .btn-pearl   { background: #FAFBFC; color: #2B313B; border: 1px solid #DEE1E7; border-radius: 11px;
                 padding: 8px 14px; font-size: 14px; font-weight: 400; letter-spacing: -0.224px; }
  .btn-pearl:hover { border-color: #C9CDD5; }

  .card { background: #fff; border: 1px solid #DEE1E7; border-radius: 18px; }
  .link { color: var(--primary); text-decoration: none; }
  .link:hover { text-decoration: underline; }

  .prompt-shadow { box-shadow: rgba(11,26,50,0.10) 0 6px 26px 0, rgba(11,26,50,0.04) 0 1px 3px 0; }
  .frosted { background: rgba(255,255,255,0.78); backdrop-filter: saturate(180%) blur(20px);
             -webkit-backdrop-filter: saturate(180%) blur(20px); }

  #prompt-input { font-size: 17px; letter-spacing: -0.374px; }
  #prompt-input::placeholder { color: #A0A6B0; }
  #prompt-bar { transition: border-color .16s ease; }
  #prompt-bar:focus-within { border-color: rgba(11,26,50,0.18); }

  .chip { border-radius: 9999px; padding: 9px 20px; font-size: 14px; letter-spacing: -0.224px;
          color: #2B313B; background: transparent; border: 0; cursor: pointer;
          transition: background-color .16s ease, color .16s ease; }
  .chip[aria-pressed="true"] { background: #0B1A32; color: #fff; }
  .chip:focus-visible { outline: 2px solid #2F6FDB; outline-offset: 2px; }

  .opt { border: 1px solid #DEE1E7; background: #fff; border-radius: 9999px;
         padding: 7px 14px; font-size: 13px; letter-spacing: -0.12px; color: #2B313B;
         cursor: pointer; transition: border-color .16s ease, color .16s ease, background-color .16s ease; }
  .opt:hover { border-color: #C9CDD5; }
  .opt[aria-pressed="true"] { border-color: var(--primary); color: var(--primary); background: rgba(11,26,50,0.05); }
  .opt:focus-visible { outline: 2px solid #2F6FDB; outline-offset: 2px; }

  /* ---- Masonry ---- */
  .masonry { column-gap: 16px; column-count: 1; }
  @media (min-width: 560px)  { .masonry { column-count: 2; } }
  @media (min-width: 900px)  { .masonry { column-count: 3; } }
  @media (min-width: 1300px) { .masonry { column-count: 4; } }
  .g-item { break-inside: avoid; margin-bottom: 16px; }
  .g-card { display: block; width: 100%; background: #fff; border: 1px solid #DEE1E7;
            border-radius: 18px; overflow: hidden; cursor: pointer; position: relative;
            transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
  .g-card:hover { transform: translateY(-2px); box-shadow: rgba(11,26,50,0.10) 0 8px 26px 0; border-color: #C9CDD5; }
  .g-card:focus-visible { outline: 2px solid #2F6FDB; outline-offset: 3px; }
  @media (prefers-reduced-motion: reduce) { .g-card { transition: none; } .g-card:hover { transform: none; } }
  .g-art { display: block; width: 100%; height: auto; background: #F5F6F8; }
  .play-badge { position: absolute; inset-inline-end: 10px; top: 10px; width: 34px; height: 34px;
                border-radius: 9999px; background: rgba(11,26,50,0.55); backdrop-filter: blur(6px);
                display: inline-flex; align-items: center; justify-content: center; pointer-events: none; }
  .type-badge { display: inline-flex; align-items: center; gap: 5px; flex: none;
                border: 1px solid #DEE1E7; border-radius: 9999px; padding: 3px 9px;
                font-size: 11px; letter-spacing: -0.1px; color: #5C636E; }
  .type-badge[data-kind="video"] { border-color: var(--primary); color: var(--primary); }

  /* ---- Nav ---- */
  .navbtn { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent;
            border-radius: 9999px; padding: 8px 13px; cursor: pointer;
            font-size: 13px; letter-spacing: -0.12px; color: var(--ink); opacity: .74;
            transition: background-color .16s ease, opacity .16s ease; white-space: nowrap; }
  .navbtn:hover { opacity: 1; background: rgba(11,26,50,0.04); }
  .navbtn[aria-current="true"] { opacity: 1; font-weight: 600; background: var(--parchment); }
  .navbtn:focus-visible { outline: 2px solid #2F6FDB; outline-offset: 2px; }
  .navbtn svg { width: 15px; height: 15px; flex: none; }

  #profile-btn { border-radius: 9999px; padding: 3px; border: 1px solid #DEE1E7; background: #fff;
                 display: inline-flex; align-items: center; gap: 6px; cursor: pointer; transition: border-color .16s ease; }
  #profile-btn:hover { border-color: #C9CDD5; }
  #profile-btn:focus-visible { outline: 2px solid #2F6FDB; outline-offset: 2px; }
  #profile-menu[hidden] { display: none; }
  #profile-menu { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; width: 300px; z-index: 60;
                  background: #fff; border: 1px solid #DEE1E7; border-radius: 18px; overflow: hidden;
                  box-shadow: rgba(11,26,50,0.12) 0 10px 34px 0; }
  .menu-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 16px;
              background: transparent; border: 0; cursor: pointer; text-align: start;
              font-size: 14px; letter-spacing: -0.224px; color: var(--ink); transition: background-color .14s ease; }
  .menu-row:hover { background: #F5F6F8; }
  .menu-row:focus-visible { outline: 2px solid #2F6FDB; outline-offset: -2px; }
  .menu-row svg { width: 15px; height: 15px; flex: none; color: #5C636E; }

  .credit-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--parchment);
                 border-radius: 9999px; padding: 7px 13px; font-size: 13px; letter-spacing: -0.12px; color: #2B313B; }

  /* ---- Tooltip ---- */
  .tipwrap { position: relative; display: inline-flex; }
  .tipbtn { width: 17px; height: 17px; border-radius: 9999px; border: 0; padding: 0; cursor: help;
            background: var(--parchment); color: #5C636E; display: inline-flex;
            align-items: center; justify-content: center; font-size: 10px; font-weight: 600; }
  .tipbtn:hover { background: #ECEEF2; color: var(--ink); }
  .tipbtn:focus-visible { outline: 2px solid #2F6FDB; outline-offset: 2px; }
  .tip {
    position: absolute; bottom: calc(100% + 8px); inset-inline-end: -6px; z-index: 30;
    width: 232px; background: #0B1A32; color: #fff; border-radius: 10px; padding: 9px 12px;
    font-size: 12px; line-height: 1.45; letter-spacing: -0.08px; text-align: start;
    opacity: 0; visibility: hidden; transform: translateY(3px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s;
    box-shadow: rgba(11,26,50,0.18) 0 6px 20px 0; pointer-events: none;
  }
  .tip-below { bottom: auto; top: calc(100% + 8px); transform: translateY(-3px); }
  .tipwrap:hover .tip, .tipwrap :focus-visible + .tip { opacity: 1; visibility: visible; transform: none; }
  @media (prefers-reduced-motion: reduce) { .tip { transition: none; } }

  .meter { height: 6px; border-radius: 9999px; background: #ECEEF2; overflow: hidden; }
  .meter > span { display: block; height: 100%; background: var(--primary); }

  /* ---- Create studio ---- */
  .step { display: flex; align-items: center; gap: 10px; font-size: 14px; letter-spacing: -0.224px; color: #5C636E; }
  .step[data-state="done"] { color: var(--ink); }
  .step[data-state="active"] { color: var(--primary); }
  .step .dot { width: 18px; height: 18px; border-radius: 9999px; border: 1.5px solid currentColor;
               display: inline-flex; align-items: center; justify-content: center; flex: none; }
  .step[data-state="done"] .dot { background: var(--primary); border-color: var(--primary); color: #fff; }
  .step[data-state="active"] .dot { border-style: dashed; animation: spin 1.6s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
  @media (prefers-reduced-motion: reduce) { .step[data-state="active"] .dot { animation: none; } }

  #model-menu[hidden] { display: none; }
  #model-menu { position: absolute; top: calc(100% + 6px); inset-inline-start: 0; width: 300px; z-index: 40;
                background: #fff; border: 1px solid #DEE1E7; border-radius: 14px; overflow: hidden;
                box-shadow: rgba(11,26,50,0.12) 0 10px 30px 0; }
  .model-row { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 11px 14px;
               background: transparent; border: 0; cursor: pointer; text-align: start; transition: background-color .14s ease; }
  .model-row:hover { background: #F5F6F8; }
  .model-row:focus-visible { outline: 2px solid #2F6FDB; outline-offset: -2px; }

  /* ---- Chat ---- */
  .bubble { max-width: 74%; padding: 12px 16px; border-radius: 18px; font-size: 15px; line-height: 1.55; }
  .bubble-me { align-self: flex-end; background: var(--primary); color: #fff; border-end-end-radius: 6px; }
  .bubble-ai { align-self: flex-start; background: var(--parchment); color: var(--ink); border-end-start-radius: 6px; }
  :root[dir="rtl"] .bubble { font-size: 16px; line-height: 1.75; }
  .typing { display: inline-flex; gap: 4px; align-items: center; }
  .typing i { width: 6px; height: 6px; border-radius: 9999px; background: #A0A6B0; display: block; animation: blink 1.2s infinite ease-in-out; }
  .typing i:nth-child(2) { animation-delay: .18s; }
  .typing i:nth-child(3) { animation-delay: .36s; }
  @keyframes blink { 0%, 80%, 100% { opacity: .28; } 40% { opacity: 1; } }
  @media (prefers-reduced-motion: reduce) { .typing i { animation: none; opacity: .6; } }

  .hist { display: block; width: 100%; text-align: start; border: 0; background: transparent; cursor: pointer;
          border-radius: 10px; padding: 9px 11px; font-size: 13px; line-height: 1.35; color: var(--ink-80, #2B313B);
          overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
          transition: background-color .14s ease; }
  .hist:hover { background: #F5F6F8; }
  .hist[aria-current="true"] { background: var(--parchment); font-weight: 600; color: var(--ink); }
  .hist:focus-visible { outline: 2px solid #2F6FDB; outline-offset: -2px; }

  .no-scrollbar { scrollbar-width: none; }
  .no-scrollbar::-webkit-scrollbar { display: none; }

  #menu-tray { max-height: 0; overflow: hidden; transition: max-height .32s ease; }
  #menu-tray[data-open="true"] { max-height: 520px; }
  @media (prefers-reduced-motion: reduce) { #menu-tray { transition: none; } }

  [hidden] { display: none !important; }

  /* ---- Detail viewer ---- */
  #viewer[hidden], #demo-modal[hidden] { display: none; }
  #viewer, #demo-modal { position: fixed; inset: 0; z-index: 90; background: rgba(11,26,50,0.80);
                        display: flex; align-items: center; justify-content: center; padding: 20px; }
  .lb-shell { display: grid; grid-template-columns: minmax(0,1fr) 372px; gap: 16px;
              width: 100%; max-width: 1280px; height: 100%; }
  .lb-media { position: relative; background: #060F1F; border-radius: 18px; overflow: hidden;
              display: flex; align-items: center; justify-content: center; min-height: 0; }
  .lb-media img, .lb-media video { max-width: 100%; max-height: 100%; width: auto; height: auto; display: block; }
  .lb-panel { background: #fff; border-radius: 18px; overflow-y: auto; min-height: 0; padding: 20px; }
  @media (max-width: 980px) {
    .lb-shell { grid-template-columns: 1fr; grid-template-rows: minmax(200px, 46%) minmax(0,1fr); }
  }
  .lb-ov { width: 38px; height: 38px; border-radius: 11px; border: 0; cursor: pointer;
           background: rgba(30,30,32,0.62); backdrop-filter: blur(8px); color: #fff;
           display: inline-flex; align-items: center; justify-content: center; transition: background-color .16s ease; }
  .lb-ov:hover { background: rgba(30,30,32,0.85); }
  .lb-ov:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
  .lb-ov[aria-pressed="true"] { background: var(--primary); }
  .lb-count { position: absolute; inset-block-start: 34px; inset-inline-start: 6px;
              background: rgba(30,30,32,0.72); color: #fff; border-radius: 6px;
              font-size: 10px; padding: 1px 5px; font-variant-numeric: tabular-nums; }
  .det-label { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #5C636E; letter-spacing: -0.12px; }
  .det-label svg { width: 13px; height: 13px; flex: none; }
  .det-value { font-size: 15px; font-weight: 600; letter-spacing: -0.224px; color: var(--ink); margin-top: 3px; }

  .tnum { font-variant-numeric: tabular-nums; }

*{box-sizing:border-box}body{margin:0}h1,h2,p{margin:0}button,input{font:inherit}button{background:none;color:inherit}svg{display:block}button{cursor:pointer}a{color:inherit}img{max-width:100%}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.flex{display:flex}.inline-flex{display:inline-flex}.items-center{align-items:center}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.justify-between{justify-content:space-between}.flex-wrap{flex-wrap:wrap}.flex-1{flex:1}.shrink-0{flex-shrink:0}.min-w-0{min-width:0}.gap-1{gap:4px}.gap-3{gap:12px}.gap-4{gap:16px}.mx-auto{margin-inline:auto}.max-w-grid{max-width:1240px}.text-center{text-align:center}.text-start{text-align:start}.text-ink{color:#0B1A32}.text-ink-48{color:#5C636E}.bg-white{background:white}.bg-transparent{background:transparent}.border-0{border:0}.outline-none{outline:none}.rounded-full{border-radius:9999px}.px-4{padding-inline:16px}.px-6{padding-inline:24px}.py-3{padding-block:12px}.py-16{padding-block:64px}.mt-1{margin-top:4px}.mt-4{margin-top:16px}.mt-5{margin-top:20px}.mt-10{margin-top:40px}.mb-8{margin-bottom:32px}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hero-section{padding:48px 24px}#prompt-form{max-width:700px}#prompt-bar{height:60px;padding-inline:24px 8px;border:1px solid rgba(11,26,50,.09)}#prompt-bar>svg{width:18px;height:18px}#prompt-bar button{padding:10px 20px;font-size:15px}#prompt-bar button svg{width:13px;height:13px}#prompt-note{max-width:640px}#view-home>section:last-child{padding:0 16px 80px}#view-home h2+p{margin-top:6px}
header{position:sticky;top:0;z-index:50;border-bottom:1px solid #0B1A3214}.public-nav{max-width:1240px;margin:auto;height:56px;padding:0 32px;display:flex;align-items:center;justify-content:space-between;gap:16px}.public-nav>a svg{height:22px;width:auto}.nav-links,.nav-actions{display:flex;align-items:center;gap:4px}.nav-actions{gap:16px}.login{font-size:13px;padding:8px 18px}.languages{display:flex;align-items:center;gap:6px;font:12px var(--sf);direction:ltr}.languages button{border:0;padding:5px 2px;color:#5C636E}.languages button[aria-pressed=true]{color:#0B1A32;font-weight:600}.languages span{color:#C9CDD5}#category-filters{display:flex;flex-wrap:wrap;gap:4px;background:#F5F6F8;padding:5px;border-radius:24px;margin-bottom:32px;width:fit-content}.chip{padding:9px 15px}
dialog{border:1px solid #DEE1E7;border-radius:18px;padding:28px;width:min(480px,calc(100% - 32px));max-height:90vh;overflow:auto;color:var(--ink);background:white}dialog::backdrop{background:#060F1FAA;backdrop-filter:blur(6px)}dialog h2{padding-inline-end:30px;font-size:24px;margin-bottom:14px}dialog p{color:#5C636E;line-height:1.6}.close{position:absolute;inset-inline-end:14px;top:12px;border:0;border-radius:50%;width:32px;height:32px;font-size:24px}.close:focus-visible,button:focus-visible{outline:2px solid #0B1A32;outline-offset:3px}#art-dialog{width:min(900px,calc(100% - 32px))}#art-media img,#art-media video{display:block;max-height:65vh;max-width:100%;width:auto;margin:0 auto 18px;border-radius:8px}#art-dialog .t-caption{margin-bottom:12px}.dialog-foot{margin-top:22px}.prototype-note{font-size:12px;margin-top:20px;border-top:1px solid #DEE1E7;padding-top:15px}
@media(min-width:640px){#view-home>section:last-child{padding-inline:24px}}@media(min-width:1024px){#view-home>section:last-child{padding-inline:32px}}@media(max-width:600px){.public-nav{height:auto;min-height:56px;flex-wrap:wrap;padding:14px 16px;gap:12px}.nav-links{order:3;width:100%;justify-content:center;border-top:1px solid #ECEEF2;padding-top:8px}.nav-actions{margin-inline-start:auto}.hero-section{padding-inline:16px}#prompt-bar{padding-inline-start:15px;gap:8px}#prompt-input{font-size:14px}#prompt-bar button{padding-inline:14px}#category-filters{border-radius:18px}.chip{padding:9px 12px}}

.prompt-starters{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;max-width:740px;margin:24px auto 0}.starter{font-family:inherit;font-size:13px;border:1px solid #DEE1E7;background:#FAFBFC;border-radius:999px;padding:9px 15px;transition:background .15s,border-color .15s}.starter:hover{background:#F5F6F8;border-color:#A0A6B0}#login-form{display:grid;gap:10px;margin-top:22px}#login-form label{font-size:14px;font-weight:500}#login-form input,#assistant-input{width:100%;border:1px solid #C9CDD5;border-radius:11px;padding:12px 14px;background:white;color:#0B1A32;font:inherit;outline:none}#login-form input:focus,#assistant-input:focus{border-color:#0B1A32;box-shadow:0 0 0 3px #2F6FDB22}#login-form .btn{margin-top:10px}#login-status,#assistant-reply{font-size:14px;margin-top:12px}#assistant-input{display:block;resize:vertical;margin:20px 0 14px}#assistant-form .btn{font-size:15px}.hero-section{padding-block:48px}:root[dir="rtl"] .t-hero,:root[dir="rtl"] .t-display-md{font-weight:600}
.starter-area{max-width:800px;margin:22px auto 0}.starter-area .prompt-starters{margin-top:12px;max-width:800px;gap:9px}.starter-area .starter{font-size:14px;padding:10px 16px;background:#F5F6F8}.starter-area .starter:hover{background:#FDF8EE;border-color:#ECAC4E80}
#contact-dialog{width:min(500px,calc(100% - 32px))}#contact-form{display:grid;gap:16px;margin-top:22px}.contact-field{display:grid;gap:7px}.contact-field label{font-size:14px;font-weight:500}.contact-field input{width:100%;font:inherit;color:#0B1A32;border:1px solid #C9CDD5;border-radius:11px;padding:11px 14px;background:white;outline:none}.contact-field input:focus{border-color:#0B1A32;box-shadow:0 0 0 3px #2F6FDB22}#contact-status{font-size:14px;line-height:1.6}#contact-status:empty{display:none}.public-marketing-nav .nav-links{flex-wrap:wrap;justify-content:center}@media(max-width:760px){.public-marketing-nav{height:auto;min-height:56px;flex-wrap:wrap;padding-block:12px}.public-marketing-nav .nav-links{order:3;width:100%;gap:4px}.public-marketing-nav .nav-actions{margin-inline-start:auto}}@media(max-width:600px){.public-marketing-nav .navbtn{font-size:12px;padding:8px 10px}.public-marketing-nav .nav-links{row-gap:5px}}

/* ===== Salimfy Brand v1.0 (Salimfy Brand Guidelines) ===== */
:root{--primary:#0B1A32;--ink:#0B1A32;--parchment:#F5F6F8;--navy-800:#1A2941;--navy-500:#56657E;--navy-300:#A7B1C3;--gold:#ECAC4E;--gold-300:#F2C882;--gold-50:#FDF8EE;--focus:#2F6FDB}
.lockup{display:inline-flex;align-items:center;gap:10px;direction:ltr}
.public-nav .lockup-logo{height:24px;width:auto;display:block}
a.navbtn{text-decoration:none}
#category-filters{width:100%}
@media(max-width:440px){.public-marketing-nav .nav-links{gap:0;flex-wrap:nowrap}.public-marketing-nav .navbtn{padding:8px 6px;gap:4px;font-size:12px}.public-marketing-nav .navbtn svg{width:13px;height:13px}}
.sweep{background:none;color:var(--ink);-webkit-text-fill-color:currentColor;padding-block:0;margin-block:0}
.hero-line .sweep+span{color:var(--navy-500)}
.t-hero{letter-spacing:-0.03em}:root[dir="rtl"] .t-hero{letter-spacing:0}
.btn-primary{background:var(--ink);color:#fff}.btn-primary:hover{background:var(--navy-800)}
.btn-gold{background:var(--gold);color:var(--ink);border-radius:999px;font-weight:600}
.btn-gold:hover{background:var(--gold-300)}
.g-card,.card{border-radius:14px}dialog{border-radius:20px}
#school-account-menu,#profile-menu{border-radius:14px}
.g-card:hover{box-shadow:0 8px 24px rgba(11,26,50,.08)}
.prompt-shadow{box-shadow:0 8px 24px rgba(11,26,50,.08),0 1px 2px rgba(11,26,50,.06)}
.type-badge[data-kind="video"]{border-color:var(--navy-300);color:var(--ink)}
.meter>span{background:var(--gold)}
.token-pill>span:first-child{color:#B97B28}
.starter-area .starter:hover{background:var(--gold-50);border-color:#F2C882}
#login-form input:focus,#assistant-input:focus,.contact-field input:focus{border-color:var(--focus);box-shadow:0 0 0 3px #2F6FDB22}
.demo-cta-wrap{display:flex;justify-content:center;margin-top:36px}
.demo-cta{min-height:56px;min-width:240px;padding:0 36px;font-size:17px;letter-spacing:-0.2px;box-shadow:0 8px 24px rgba(11,26,50,.08)}
.demo-cta svg{width:16px;height:16px}
:root[dir="rtl"] .demo-cta svg{transform:scaleX(-1)}
@media(max-width:600px){.demo-cta{width:100%;max-width:340px;min-width:0}.demo-cta-wrap{margin-top:28px}}
#contact-dialog .dialog-lede{margin-top:-4px}
#contact-form .btn-gold{min-height:48px;padding:0 22px;font-size:16px;margin-top:4px}

.navbtn[aria-current="true"]{opacity:1}
.sub-section{padding:72px 32px 96px}
.sub-head{display:grid;gap:12px;max-width:760px}
.sub-lede{font-size:19px;line-height:1.55;color:#5C636E}
:root[dir="rtl"] .sub-lede{line-height:1.75}
.plans{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-top:48px}
.plan{display:flex;flex-direction:column;gap:16px;padding:32px;border:1px solid #DEE1E7;border-radius:20px;background:#fff;min-width:0}
.plan-main{background:radial-gradient(120% 95% at 82% 8%,#1D3A66 0%,#0B1A32 55%,#060F1F 100%);border-color:#0B1A32;color:#fff}
.plan-name{font-size:15px;font-weight:600;letter-spacing:0;color:#56657E}
.plan-main .plan-name{color:#A7B1C3}
.price{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
.amount{font:600 64px/1 Inter,"SF Pro Text",system-ui,sans-serif;letter-spacing:-0.04em}
.amount-text{font-family:inherit;font-size:40px;line-height:1.2;letter-spacing:0}
:root[dir="ltr"] .amount-text{letter-spacing:-0.03em}
.per{font-size:16px;color:#A7B1C3}
.plan-min{font-size:15px;color:#5C636E}
.plan-main .plan-min{color:#F2C882;font-weight:500}
.plan-list{list-style:none;margin:8px 0 0;padding:16px 0 0;display:grid;gap:12px;border-top:1px solid #DEE1E7}
.plan-main .plan-list{border-top-color:#2A3952}
.plan-list li{display:flex;align-items:flex-start;gap:10px;font-size:15px;line-height:1.5}
.plan-list svg{width:16px;height:16px;flex:none;margin-top:3px;color:#1F9D6B}
.plan-main .plan-list svg{color:#ECAC4E}
.plan-cta{margin-top:auto;min-height:48px;padding:0 24px;font-size:16px;align-self:stretch}
.plan-list{margin-bottom:16px}
.plan-cta-outline{background:#fff;color:#0B1A32;border:1px solid #C9CDD5;border-radius:999px;text-decoration:none;font-weight:600}
.plan-cta-outline:hover{border-color:#0B1A32}
.plan-cta-outline svg{width:16px;height:16px}
.plan-main .btn-gold:focus-visible{outline-color:#ECAC4E}
.sub-note{margin-top:20px;font-size:13px;color:#5C636E}
@media(max-width:800px){.plans{grid-template-columns:1fr}.sub-section{padding:48px 16px 72px}.plan{padding:24px}.amount{font-size:56px}.amount.amount-text{font-size:32px}}

.lang-circle{width:40px;height:40px;flex:none;border-radius:50%;border:0;background:#0B1A32;color:#fff;
  display:inline-flex;align-items:center;justify-content:center;font:600 12px/1 Inter,"SF Pro Text",system-ui,sans-serif;letter-spacing:.02em;
  transition:border-color .2s ease-out,background-color .2s ease-out}
.lang-circle:hover{background:#1A2941}
.nav-actions{gap:12px}

/* ===== School header mark ===== */
.school-mark{display:inline-flex;align-items:center;gap:10px;color:#0B1A32}
header .public-nav .school-mark svg{width:36px;height:36px;flex:none}
.school-mark span{font-size:15px;font-weight:600;white-space:nowrap}
@media(max-width:480px){.school-mark span{display:none}}
/* ===== App shell ===== */
body.in-app{background:#fff}
@media(min-width:1101px){body.in-app header .public-nav .nav-links{display:none}}
@media(min-width:901px){body.in-app header .public-nav{max-width:none;padding-inline:24px}}
.app{display:grid;grid-template-columns:232px minmax(0,1fr);min-height:calc(100svh - 57px)}
.app-side{position:sticky;top:57px;height:calc(100svh - 57px);display:flex;flex-direction:column;justify-content:space-between;gap:24px;padding:20px 12px;border-inline-end:1px solid #DEE1E7;background:#fff}
.side-nav{display:grid;gap:2px}
.side-link{display:flex;align-items:center;gap:12px;width:100%;border:0;background:transparent;border-radius:10px;padding:11px 12px;font-size:15px;color:#2B313B;text-align:start;transition:background-color .2s ease-out}
.side-link svg{width:18px;height:18px;flex:none;color:#56657E}
.side-link:hover{background:#F5F6F8}
.side-link[aria-current="page"]{background:#0B1A32;color:#fff;font-weight:500}
.side-link[aria-current="page"] svg{color:#ECAC4E}
.side-balance{border:1px solid #DEE1E7;border-radius:14px;padding:14px;display:grid;gap:10px;font-size:13px;color:#5C636E}
.side-balance-row{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.side-balance strong{font:600 17px/1 Inter,"SF Pro Text",system-ui,sans-serif;color:#0B1A32;font-variant-numeric:tabular-nums}
.side-balance p{font-size:12px;line-height:1.5}
.app-main{min-width:0}
.pane-h{font-size:24px;line-height:1.3;font-weight:600}
.pane-h-lg{font-size:34px;line-height:1.25}
/* Generate */
.pane-create{display:grid;grid-template-columns:minmax(340px,400px) minmax(0,1fr);min-height:calc(100svh - 57px)}
.studio-form{padding:28px 24px 40px;border-inline-end:1px solid #DEE1E7;min-width:0;display:grid;gap:24px;align-content:start}
#studio-form{display:grid;gap:24px}
.field{display:grid;gap:10px;border:0;padding:0;margin:0;min-width:0}
.field>label:not(.ref-drop),.field>legend,.field-label label{font-size:14px;font-weight:600;color:#0B1A32;padding:0}
.field>legend{margin-bottom:10px}
.field-label{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.field-hint{font-size:12px;color:#5C636E}
#studio-prompt{width:100%;min-height:150px;resize:vertical;border:1px solid #C9CDD5;border-radius:10px;padding:14px;font:inherit;font-size:16px;line-height:1.6;color:#0B1A32;background:#fff;outline:none}
#studio-prompt:focus,#chat-input:focus{outline:none}
#studio-prompt:focus{border-color:#2F6FDB;box-shadow:0 0 0 3px #2F6FDB22}
#studio-prompt::placeholder,#chat-input::placeholder{color:#A0A6B0}
.ref-drop{display:flex;align-items:center;gap:14px;padding:16px;border:1.5px dashed #C9CDD5;border-radius:14px;background:#FAFBFC;cursor:pointer;transition:border-color .2s ease-out,background-color .2s ease-out}
.ref-drop:hover,.ref-drop[data-over="true"]{border-color:#0B1A32;background:#F3F5F9}
#ref-input:focus-visible+.ref-drop{outline:2px solid #2F6FDB;outline-offset:2px}
.ref-drop svg{width:28px;height:28px;flex:none;color:#56657E}
.ref-text{display:grid;gap:2px;min-width:0}
.ref-text strong{font-size:14px;font-weight:500;color:#0B1A32}
.ref-text span{font-size:12px;color:#5C636E}
.ref-preview{display:flex;align-items:center;gap:12px;padding:8px;border:1px solid #DEE1E7;border-radius:14px}
.ref-preview img{width:56px;height:56px;border-radius:10px;object-fit:cover;flex:none;background:#F5F6F8}
.ref-name{flex:1;min-width:0;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ref-remove{width:36px;height:36px;border-radius:50%;border:0;background:transparent;color:#5C636E;display:inline-flex;align-items:center;justify-content:center;flex:none}
.ref-remove:hover{background:#F5F6F8;color:#0B1A32}
.ref-remove svg{width:16px;height:16px}
.opts{display:flex;flex-wrap:wrap;gap:8px}
.opts .opt{display:inline-flex;align-items:center;gap:7px;font-size:13.5px;padding:8px 14px}
.ratio-ico{width:16px;height:16px}
.studio-submit{display:grid;gap:10px;padding-top:4px}
.studio-go{min-height:52px;font-size:16px;width:100%}
.studio-go svg{width:14px;height:14px}
.studio-go[disabled]{opacity:.6;cursor:progress}
.form-error{font-size:13px;color:#A92A2E;background:#FDECEC;border-radius:10px;padding:10px 12px}
.studio-result{padding:28px 32px 40px;background:#F5F6F8;min-width:0;display:flex;flex-direction:column;gap:16px}
.result-frame{position:relative;background:#fff;border:1px solid #DEE1E7;border-radius:20px;min-height:420px;height:calc(100svh - 230px);display:flex;align-items:center;justify-content:center;padding:20px;overflow:hidden}
#result-img{max-width:100%;max-height:100%;width:auto;height:auto;border-radius:10px;box-shadow:0 8px 24px rgba(11,26,50,.08);transition:opacity .3s ease-out}
.result-frame[data-busy="true"] #result-img{opacity:.18;filter:blur(6px)}
.result-busy{position:absolute;inset:0;display:flex;align-items:center;justify-content:center}
.busy-card{background:#fff;border:1px solid #DEE1E7;border-radius:14px;padding:18px 22px;display:grid;gap:12px;box-shadow:0 8px 24px rgba(11,26,50,.08)}
.busy-card .step[data-state="active"]{color:#0B1A32}
.busy-card .step[data-state="active"] .dot{border-color:#ECAC4E}
.busy-card .step[data-state="done"] .dot{background:#0B1A32;border-color:#0B1A32}
.result-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.result-meta{min-width:0;flex:1 1 240px}
.result-title{font-size:16px;font-weight:600;line-height:1.5}
.result-sub{font-size:13px;color:#5C636E;margin-top:2px}
.r-act,.i-act{min-height:42px;padding:0 18px;font-size:14px;gap:8px}
.r-act svg,.i-act svg{width:16px;height:16px}
.result-status{font-size:13px;color:#0E7A50;min-height:20px}
/* Chat */
.pane-chat{height:calc(100svh - 57px);display:flex;justify-content:center;padding:0 24px}
.chat-col{width:100%;max-width:760px;display:flex;flex-direction:column;min-height:0}
.chat-head{padding:28px 0 12px}
.chat-log{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:14px;padding:12px 2px 24px}
.chat-log .bubble{max-width:80%;white-space:pre-wrap;overflow-wrap:anywhere}
.chat-log .bubble-ai{background:#F5F6F8}
.chat-log .bubble-me{background:#0B1A32;color:#fff}
.composer{display:flex;align-items:flex-end;gap:8px;margin-bottom:24px;padding:8px;border:1px solid #C9CDD5;border-radius:20px;background:#fff;box-shadow:0 8px 24px rgba(11,26,50,.08)}
.composer:focus-within{border-color:#2F6FDB;box-shadow:0 0 0 3px #2F6FDB22}
#chat-input{flex:1;min-width:0;border:0;resize:none;font:inherit;font-size:16px;line-height:1.6;padding:8px 10px;max-height:180px;background:transparent;color:#0B1A32}
.send{width:42px;height:42px;border-radius:50%;border:0;background:#0B1A32;color:#fff;display:inline-flex;align-items:center;justify-content:center;flex:none}
.send:hover{background:#1A2941}
.send svg{width:18px;height:18px}
/* Libraries */
.pane-lib{padding:32px 40px 72px}
.lib-head{display:grid;gap:6px;margin-bottom:24px}
.lib-p{font-size:15px;color:#5C636E}
.lib-filters{display:flex;flex-wrap:wrap;gap:4px;background:#F5F6F8;padding:5px;border-radius:24px;margin-bottom:28px}
.lib-empty{text-align:center;color:#5C636E;padding:64px 16px;font-size:15px}
/* Item popup */
#item-dialog{padding:0;width:min(1120px,calc(100% - 32px));max-height:calc(100svh - 48px);overflow:hidden;border:0}
.item-grid{display:grid;grid-template-columns:360px minmax(0,1fr);max-height:calc(100svh - 48px)}
.item-panel{padding:32px 28px;display:flex;flex-direction:column;gap:16px;overflow-y:auto;min-width:0}
.item-kind{font-size:13px;color:#5C636E}
dialog h2.item-title{font-size:22px;line-height:1.35;font-weight:600;margin:0;padding:0}
.item-prompt-box{border:1px solid #DEE1E7;border-radius:14px;padding:14px 16px;display:grid;gap:8px;background:#FAFBFC}
dialog p.item-label{font-size:12px;font-weight:600;color:#56657E;letter-spacing:.02em}
dialog p.item-prompt{font-size:15px;line-height:1.75;color:#0B1A32;white-space:pre-wrap}
.item-actions{display:flex;gap:8px;flex-wrap:wrap}
.item-actions .i-act{flex:1 1 auto;justify-content:center}
dialog p.item-status{font-size:13px;color:#0E7A50;min-height:20px;line-height:1.5}
.item-media{background:#F5F6F8;display:flex;align-items:center;justify-content:center;padding:24px;min-height:0;min-width:0}
.item-media img,.item-media video{max-width:100%;max-height:calc(100svh - 96px);width:auto;height:auto;border-radius:10px;display:block;box-shadow:0 8px 24px rgba(11,26,50,.08)}
.item-close{z-index:2;background:#fff!important;box-shadow:0 1px 2px rgba(11,26,50,.12);display:inline-flex;align-items:center;justify-content:center}
.item-close svg{width:16px;height:16px}
/* Navy side menu (dark surface, gold accent) */
.app-side{background:radial-gradient(120% 60% at 82% 0%,#1D3A66 0%,#0B1A32 55%,#060F1F 100%);border-inline-end:0;color:#fff}
.side-link{color:#CBD2DE}
.side-link svg{color:#7B889F}
.side-link:hover{background:rgba(255,255,255,.06);color:#fff}
.side-link[aria-current="page"]{background:#2A3952;color:#fff}
.side-link[aria-current="page"] svg{color:#ECAC4E}
.app-side .side-link:focus-visible,.app-side .btn:focus-visible{outline:2px solid #ECAC4E;outline-offset:2px}
.side-balance{background:rgba(255,255,255,.04);border-color:#2A3952;color:#A7B1C3}
.side-balance strong{color:#fff}
.side-balance .meter{background:#2A3952}
.studio-result{background:radial-gradient(120% 70% at 18% 0%,#1D3A66 0%,#0B1A32 55%,#060F1F 100%)}
.studio-result .result-frame{border-color:transparent}
.studio-result .result-title{color:#fff}
.studio-result .result-sub{color:#A7B1C3}
.studio-result .result-status{color:#F2C882}
.studio-result .btn-outline{background:transparent;color:#fff;border-color:#3D4C66}
.studio-result .btn-outline:hover{border-color:#A7B1C3}
.studio-result .btn:focus-visible{outline:2px solid #ECAC4E;outline-offset:2px}
.result-empty{display:grid;justify-items:center;gap:8px;text-align:center;color:#5C636E;padding:24px;transition:opacity .3s ease-out}
.result-empty svg{width:48px;height:48px;color:#A7B1C3;margin-bottom:4px}
.result-empty strong{font-size:17px;font-weight:600;color:#0B1A32}
.result-empty span{font-size:14px}
.result-frame[data-busy="true"] .result-empty{visibility:hidden}
@media(max-width:1100px){.app{grid-template-columns:minmax(0,1fr)}.app-side{display:none}.pane-create{grid-template-columns:minmax(300px,380px) minmax(0,1fr)}}
@media(max-width:900px){.pane-chat{height:calc(100svh - 61px)}.pane-lib{padding:24px 16px 56px}.pane-h-lg{font-size:28px}}
@media(max-width:760px){
  .pane-create{grid-template-columns:1fr}
  .studio-form{border-inline-end:0;border-bottom:1px solid #DEE1E7;padding:24px 16px}
  .studio-result{padding:20px 16px 32px}
  .result-frame{height:auto;min-height:300px;aspect-ratio:4/5;max-height:70svh}
  .pane-chat{padding:0 16px}
  .chat-log .bubble{max-width:88%}
  .item-grid{grid-template-columns:1fr;overflow-y:auto}
  .item-media{order:-1;padding:16px}
  .item-media img,.item-media video{max-height:50svh}
  .item-panel{padding:20px 16px 24px;overflow:visible}
}
/* ===== Generate: navy canvas with two white cards ===== */
.pane-create{background:radial-gradient(120% 70% at 18% 0%,#1D3A66 0%,#0B1A32 55%,#060F1F 100%);gap:24px;padding:24px}
.app-side{border-inline-end:1px solid #1A2941}
.studio-form{background:#fff;border-radius:20px;border:0;padding:28px 24px 32px;align-self:start}
.studio-result{background:transparent;padding:0}
.result-frame{border:0;height:calc(100svh - 190px)}
@media(max-width:760px){
  .pane-create{padding:16px;gap:16px}
  .studio-form{padding:20px 16px 24px;border-bottom:0}
  .studio-result{padding:0 0 16px}
  .result-frame{height:auto}
}
/* ===== Logo orbit (JS-driven, figure-eight with depth) ===== */
.orbit{position:relative;width:150px;height:78px;margin:0 auto 10px}
.orb{position:absolute;top:16px;left:calc(50% - 20px);width:40px;height:40px;will-change:transform}
.orb-navy{transform:translateX(-17px)}
.orb-gold{transform:translateX(17px)}
.orb-shadow{position:absolute;bottom:4px;left:calc(50% - 15px);width:30px;height:6px;border-radius:50%;background:#0B1A32;opacity:.12;filter:blur(3px);will-change:transform,opacity}
.orb-shadow:first-child{transform:translateX(-17px)}
.orb-shadow:nth-child(2){transform:translateX(17px)}
.busy-card .orbit{width:120px;height:66px;margin-bottom:2px}
.busy-card .orb{top:10px}
/* ===== Side menu spacing ===== */
.app-side{justify-content:flex-start;gap:28px;padding:36px 12px 28px}
.side-nav{gap:4px}
.side-balance,.side-demo{margin-inline:0}
.side-logo{margin-top:auto;padding:0 12px}
.side-logo svg{height:22px;width:auto;display:block}
/* ===== Navy canvas for every app page ===== */
.pane-chat,.pane-lib{background:radial-gradient(120% 70% at 18% 0%,#1D3A66 0%,#0B1A32 55%,#060F1F 100%)}
.pane-chat{padding:24px}
.chat-col{background:#fff;border-radius:20px;max-width:none;padding:0 32px}
.chat-col>*{width:100%;max-width:760px;margin-inline:auto}
.chat-col{align-items:stretch}
.pane-lib{padding:24px;min-height:calc(100svh - 57px)}
.lib-card{background:#fff;border-radius:20px;padding:32px 32px 48px}
@media(max-width:900px){.pane-chat{padding:16px}.pane-lib{padding:16px;min-height:calc(100svh - 61px)}.lib-card{padding:24px 16px 40px}.chat-col{padding:0 16px}}
/* ===== Round 9: school mark in the side menu, unified side cards, aligned titles ===== */
.side-school{display:grid;justify-items:center;gap:12px;text-align:center;padding:4px 12px 20px;border-bottom:1px solid #1A2941}
.side-school img{width:84px;height:84px;background:#fff;border-radius:20px;padding:6px;display:block}
.school-brand img.school-logo{width:104px;height:104px;display:block}
@media(max-width:600px){.school-brand img.school-logo{width:84px;height:84px}}
.side-school p{font-size:14px;font-weight:500;color:#fff;line-height:1.5}
.side-balance,.side-demo{background:rgba(255,255,255,.04);border:1px solid #2A3952;color:#A7B1C3}
.pane-h,.pane-h-lg{font-size:26px;line-height:1.3;font-weight:600}
.studio-form{padding:28px 28px 32px}
.lib-card{padding:28px 28px 48px}
.chat-col{padding:0 28px}
.chat-col>*{max-width:none;margin-inline:0}
.chat-log .bubble{max-width:70%}
@media(max-width:900px){.lib-card,.studio-form{padding:24px 16px 32px}.chat-col{padding:0 16px}.pane-h,.pane-h-lg{font-size:24px}}
/* ===== Assistant: style picker ===== */
.style-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;max-width:620px;align-self:flex-start;width:100%}
.style-card{display:grid;gap:8px;padding:6px 6px 10px;border:1px solid #DEE1E7;border-radius:14px;background:#fff;text-align:center;font-size:13px;font-weight:500;color:#0B1A32;transition:border-color .2s ease-out,box-shadow .2s ease-out,transform .2s ease-out}
.style-card img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:10px;display:block;background:#F5F6F8}
.style-card:hover:not([disabled]){border-color:#0B1A32;box-shadow:0 8px 24px rgba(11,26,50,.08);transform:translateY(-2px)}
.style-card[aria-pressed="true"]{border:2px solid #ECAC4E;padding:5px 5px 9px}
.style-card[disabled]:not([aria-pressed="true"]){opacity:.45}
.style-card[disabled]{cursor:default}
.quick-row{display:flex;flex-wrap:wrap;gap:8px;align-self:flex-start}
.quick{border:1px solid #C9CDD5;background:#fff;border-radius:999px;padding:9px 16px;font-size:14px;color:#0B1A32;transition:border-color .2s ease-out,background-color .2s ease-out}
.quick:hover{border-color:#0B1A32;background:#F5F6F8}
.chat-prompt{align-self:flex-start;max-width:560px;width:100%;border:1px solid #DEE1E7;border-radius:14px;padding:14px 16px;background:#FAFBFC;display:grid;gap:10px}
.chat-prompt-label{font-size:12px;font-weight:600;color:#56657E}
.chat-prompt p+p{font-size:15px;line-height:1.7}
.chat-go{min-height:44px;font-size:15px;justify-self:start;padding:0 22px}
@media(max-width:600px){.style-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ===== Public preview of the app ===== */
.brand-tile{width:84px;height:84px;background:#fff;border-radius:20px;display:flex;align-items:center;justify-content:center}
.brand-tile svg{width:56px;height:auto}
.side-brand p{font-family:Inter,"SF Pro Text",system-ui,sans-serif;direction:ltr}
.side-sep{display:block;height:1px;background:#2A3952;margin:8px 12px}
a.side-link{text-decoration:none}
.side-demo{border-radius:14px;padding:16px;display:grid;gap:8px}
.side-demo strong{font-size:15px;font-weight:600;color:#fff}
.side-demo p{font-size:12.5px;line-height:1.6;color:#A7B1C3}
.side-demo-btn{min-height:42px;font-size:14px;margin-top:4px;width:100%}
.side-demo-links{display:grid;gap:2px;margin-top:6px;padding-top:8px;border-top:1px solid #2A3952}
.side-mini{display:flex;align-items:center;gap:10px;border:0;background:transparent;color:#CBD2DE;font-size:14px;font-weight:500;padding:8px 6px;border-radius:8px;text-decoration:none;text-align:start;width:100%}
.side-mini:hover{background:rgba(255,255,255,.06);color:#fff}
.side-mini svg{color:#7B889F}
.side-mini svg{width:17px;height:17px;flex:none}
.app-side .side-mini:focus-visible{outline:2px solid #ECAC4E;outline-offset:1px}
#demo-gate{width:min(460px,calc(100% - 32px))}
.gate-actions{display:grid;gap:10px;margin-top:22px}
.gate-btn{min-height:48px;font-size:15px;width:100%}
.result-example{font-size:12px;font-weight:600;color:#56657E;background:#fff;border:1px solid #DEE1E7;border-radius:6px;padding:3px 8px;position:absolute;top:16px;inset-inline-start:16px}

/* ===== Round 8: app pages, navy header, Salimfy at the bottom of the side menu ===== */
.side-powered{display:flex;align-items:center;justify-content:center;gap:8px;direction:ltr;margin-top:auto;padding:16px 12px 0;border-top:1px solid #1A2941}
.side-powered span{color:#A7B1C3;font-size:11px;font-family:"IBM Plex Sans Arabic",Inter,system-ui,sans-serif}
.side-powered svg{height:14px;width:auto;opacity:.9}
html[lang="ar"] .side-powered{flex-direction:row-reverse}
body.in-app header .public-nav .nav-actions{margin-inline-start:auto}
body.in-app header .public-nav>a[data-action="home"]{display:none}
body.in-app{background:#0B1A32}
body.in-app header.frosted{background:radial-gradient(120% 70% at 50% 0%,#1D3A66 0%,#0B1A32 55%,#060F1F 100%) fixed;backdrop-filter:none;-webkit-backdrop-filter:none;border-bottom:0;box-shadow:none}
body.in-app .app-side,body.in-app .pane-create,body.in-app .pane-chat,body.in-app .pane-lib{background:radial-gradient(120% 70% at 50% 0%,#1D3A66 0%,#0B1A32 55%,#060F1F 100%) fixed;border-inline-end:0}
.side-school{cursor:pointer;border-radius:14px}.side-school:hover img{box-shadow:0 0 0 3px rgba(236,172,78,.5)}.side-school:focus-visible{outline:2px solid #ECAC4E;outline-offset:2px}
body.in-app .token-pill{background:#1A2941;border-color:#2A3952;color:#fff}
body.in-app .token-pill>span:first-child{color:#ECAC4E}
body.in-app #school-profile{background:#1A2941;border-color:#2A3952;color:#fff}
body.in-app #menu-toggle{color:#fff;border-color:#2A3952;background:transparent}
body.in-app header .navbtn{color:#fff}
body.in-app .lang-circle{border:1px solid #3D4C66}
body.in-app header .login{background:#ECAC4E;color:#0B1A32;border-color:#ECAC4E}

/* ===== Round 9: about / how to start, mascot stage ===== */
.mini-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:40px}
.mini-card{border:1px solid #DEE1E7;border-radius:20px;padding:28px;display:grid;gap:10px;align-content:start}
.mini-ic{width:44px;height:44px;border-radius:50%;background:#0B1A32;color:#ECAC4E;display:flex;align-items:center;justify-content:center;font-size:18px}
.mini-card h2{font-size:20px;font-weight:600;margin-top:6px}
.mini-card p{color:#5C636E;font-size:16px;line-height:1.7}
.view-cta{margin-top:36px;min-height:52px;padding:0 30px;font-size:16px}
.start-steps{list-style:none;padding:0;margin:40px 0 0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.start-steps li{border:1px solid #DEE1E7;border-radius:20px;padding:28px;display:grid;gap:10px;align-content:start}
.start-num{width:44px;height:44px;border-radius:50%;background:#0B1A32;color:#ECAC4E;display:flex;align-items:center;justify-content:center;font:600 18px/1 Inter,system-ui}
.start-steps li:first-child .start-num{background:#ECAC4E;color:#0B1A32}
.start-steps h2{font-size:20px;font-weight:600;margin-top:6px}
.start-steps p{color:#5C636E;font-size:16px;line-height:1.7}
@media(max-width:900px){.mini-cards,.start-steps{grid-template-columns:1fr}.view-cta{width:100%}}
.mini-ic .ic{width:22px;height:22px}
.mini-card h3{font-size:20px;font-weight:600;margin-top:6px}
.ab-h{font-size:30px;font-weight:600;line-height:1.35;margin:72px 0 28px;color:#0B1A32}
.ab-feat{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:56px;align-items:center}
.ab-feat+.ab-feat{margin-top:72px}
.ab-feat.flip{grid-template-columns:minmax(0,7fr) minmax(0,5fr)}.ab-feat.flip .ab-copy{order:2}
.ab-eyebrow{font-size:14px;font-weight:600;color:#94611B;margin-bottom:8px}
.ab-copy h3{font-size:26px;font-weight:600;line-height:1.4}
.ab-copy>p:not(.ab-eyebrow){color:#5C636E;margin-top:12px;font-size:16px;line-height:1.8}
.ab-ticks{list-style:none;padding:0;margin:18px 0 0;display:grid;gap:10px}
.ab-ticks li{display:flex;align-items:flex-start;gap:10px;font-size:15px;line-height:1.6}
.ab-ticks .ic{width:20px;height:20px;padding:3px;border-radius:50%;background:#0B1A32;color:#ECAC4E;flex:none;margin-top:2px}
.ab-shot{margin:0;border-radius:20px;overflow:hidden;border:1px solid rgba(11,26,50,.08);box-shadow:0 24px 60px rgba(11,26,50,.14);background:#fff}
.ab-bar{display:flex;gap:6px;align-items:center;height:30px;padding:0 14px;background:#F5F6F8;border-bottom:1px solid #DEE1E7;direction:ltr}
.ab-bar i{width:9px;height:9px;border-radius:50%;background:#DEE1E7}
.ab-shot img{display:block;width:100%;height:auto}
.ab-navy{background:radial-gradient(120% 95% at 82% 8%,#1D3A66 0%,#0B1A32 55%,#060F1F 100%);color:#fff;padding:88px 32px}
.ab-h-d{color:#fff;margin-top:0;margin-bottom:10px}.ab-sub-d{color:#A7B1C3;font-size:17px;margin-bottom:36px}
.ab-pillars{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.ab-pillar{border:1px solid #2A3952;background:rgba(255,255,255,.03);border-radius:20px;padding:26px;display:grid;gap:8px;align-content:start}
.ab-pillar .ic{width:40px;height:40px;padding:9px;border-radius:12px;background:rgba(236,172,78,.14);color:#ECAC4E}
.ab-pillar h3{font-size:18px;font-weight:600;margin-top:6px}.ab-pillar p{font-size:15px;color:#A7B1C3;line-height:1.7}
.ab-steps{list-style:none;padding:0;margin:40px 0 0;display:grid;gap:20px}
.ab-steps>li{display:grid;grid-template-columns:44px minmax(0,1fr);gap:20px;border:1px solid #DEE1E7;border-radius:20px;padding:28px}
.ab-steps>li:first-child .start-num{background:#ECAC4E;color:#0B1A32}
.ab-steps h3{font-size:22px;font-weight:600}.ab-steps>li p{color:#5C636E;margin-top:8px;font-size:16px;line-height:1.8}
.ab-sub{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:20px;padding:28px;border-radius:20px;background:#F5F6F8}
.ab-sub h3{font-size:20px;font-weight:600}.ab-sub p{color:#5C636E;margin-top:6px;font-size:16px;line-height:1.8;max-width:720px}
.ab-line{background:#fff;color:#0B1A32;border:1px solid #C9CDD5;border-radius:999px;min-height:48px;padding:0 24px;white-space:nowrap;font-weight:600}.ab-line:hover{border-color:#0B1A32}
.ab-faq{display:grid;gap:12px}
.ab-qa{border:1px solid #DEE1E7;border-radius:14px;background:#fff}
.ab-qa summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;cursor:pointer;font-weight:600;font-size:17px}
.ab-qa summary::-webkit-details-marker{display:none}
.ab-pm{position:relative;width:14px;height:14px;flex:none}.ab-pm::before,.ab-pm::after{content:"";position:absolute;inset:6px 0 auto;height:2px;background:#0B1A32;border-radius:2px;transition:transform .2s ease-out}.ab-pm::after{transform:rotate(90deg)}
.ab-qa[open] .ab-pm::after{transform:rotate(0)}
.ab-qa p{padding:0 24px 22px;color:#5C636E;font-size:16px;line-height:1.8}
.ab-cta{margin-top:72px;border-radius:20px;padding:40px;background:radial-gradient(120% 95% at 82% 8%,#1D3A66 0%,#0B1A32 55%,#060F1F 100%);color:#fff;display:grid;gap:10px;justify-items:start}
.ab-cta h2{font-size:28px;font-weight:600;line-height:1.4}.ab-cta p{color:#A7B1C3;font-size:17px}.ab-cta .view-cta{margin-top:14px}
#view-about .ab-cta{margin-top:0}
/* full-width navy bands */
.ab-band{padding:88px 32px}
.ab-after{padding-top:72px!important}
.ab-after .ab-h:first-child,.ab-after .ab-feat:first-child{margin-top:0}
.band-cols{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.band-col{position:relative;display:flex;flex-direction:column;gap:12px;padding:32px 28px 36px;border-radius:20px;border:1px solid #2A3952;background:rgba(255,255,255,.04);min-height:100%}
.band-col h3{font-size:22px;font-weight:600;color:#fff;margin-top:8px}
.band-col>p{font-size:16px;line-height:1.8;color:#A7B1C3}
.band-ic{width:48px;height:48px;border-radius:14px;background:rgba(236,172,78,.14);color:#ECAC4E;display:flex;align-items:center;justify-content:center}.band-ic .ic{width:24px;height:24px}
.band-steps{counter-reset:none;margin-top:8px}
.band-num{width:56px;height:56px;border-radius:50%;border:1px solid #3D4C66;color:#ECAC4E;display:flex;align-items:center;justify-content:center;font:600 22px/1 Inter,system-ui;background:#0B1A32}
.band-steps .band-col:first-child .band-num{background:#ECAC4E;color:#0B1A32;border-color:#ECAC4E}
.band-steps .band-col:not(:last-child)::after{content:"";position:absolute;top:60px;inset-inline-start:calc(28px + 56px + 12px);inset-inline-end:-20px;height:1px;background:linear-gradient(90deg,#3D4C66,#2A3952)}
.ab-ticks-d{border-top:1px solid #2A3952;padding-top:16px;margin-top:auto}
.ab-ticks-d li{color:#fff;font-size:14.5px}
.ab-ticks-d .ic{background:rgba(236,172,78,.16);color:#ECAC4E}
.band-steps .band-col>p{min-height:5.4em}
@media(max-width:900px){.ab-band{padding:64px 16px}.band-cols{grid-template-columns:1fr}.band-steps .band-col::after{display:none}.band-steps .band-col>p{min-height:0}}
/* unified footer for About / How to start / Subscription */
.site-ftr{background:#F5F6F8;border-top:1px solid #ECEEF2;color:#5C636E;padding:22px 32px;font-size:13px}
.ftr-row{display:flex;align-items:center;justify-content:space-between;gap:16px 32px;flex-wrap:wrap}
.ftr-start{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.ftr-logo{height:20px;width:auto;display:block}
.ftr-copy{font-family:Inter,system-ui}.ftr-dot{color:#A0A6B0}
.ftr-links{display:flex;gap:24px}
.ftr-links button{color:#5C636E;background:none;border:0;padding:0;font:inherit;cursor:pointer}.ftr-links button:hover,.ftr-links button[aria-current=true]{color:#0B1A32;text-decoration:underline}
.ftr-end{display:flex;align-items:center;gap:24px;flex-wrap:wrap}.ftr-logo{height:20px;width:auto;display:block}
body.in-app .site-ftr{display:none}
/* footer sits at the bottom of the screen when the page is short */
body:not(.in-app) main#top{display:flex;flex-direction:column;min-height:calc(100svh - 57px)}
body:not(.in-app) main#top>.site-ftr{margin-top:auto}
@media(max-width:600px){body:not(.in-app) main#top{min-height:calc(100svh - 61px)}}
@media(max-width:900px){.site-ftr{padding:20px 16px}}
/* header content aligns with the page content edges */
@media(min-width:601px){header .public-marketing-nav{max-width:1304px}}
/* About demos: smaller, one height */
.ab-feat,.ab-feat.flip{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:64px}
.ab-feat .dm{height:380px;min-height:0;padding:24px}
.ab-feat .dm .dm-card{max-width:440px;padding:16px}
.ab-feat .dm-gen .dm-card.dm-form{max-width:220px}.ab-feat .dm-frame{max-width:180px;max-height:250px}.ab-feat .dm-frame[style*="16/9"]{max-width:220px}
.ab-feat .dm-input{min-height:60px}
.ab-feat .dm-thread{gap:8px}.ab-feat .dm-b{font-size:12.5px;padding:7px 11px}.ab-feat .dm-langs{padding-bottom:8px}.ab-feat .dm-langs span{font-size:11px;padding:3px 9px}
.ab-feat .dm-style{padding:5px;font-size:11px;gap:4px}.ab-feat .dm-prompt{font-size:12px;padding:8px 10px}.ab-feat .dm-compose{display:none}
.ab-feat .dm-ready .dm-ai{display:none}
.ab-feat .dm-tile .art{aspect-ratio:16/10}.ab-feat .dm-grid{gap:8px;margin-top:10px}.ab-feat .dm-tile{padding:5px}.ab-feat .dm-tile figcaption{font-size:11px;padding:5px 2px 1px}
@media(max-width:900px){.ab-feat,.ab-feat.flip{grid-template-columns:1fr;gap:28px}.ab-feat .dm{height:auto}}
@media(max-width:900px){.ab-feat,.ab-feat.flip{grid-template-columns:1fr;gap:28px}.ab-feat.flip .ab-copy{order:0}.ab-pillars{grid-template-columns:1fr}.ab-sub{flex-direction:column;align-items:stretch}.ab-h{font-size:24px;margin-top:56px}.ab-navy{padding:64px 16px}.ab-steps>li{grid-template-columns:1fr;padding:22px}.ab-cta{padding:28px}}
/* Mascot stage: the scene sits behind the hero, the characters run on the floor below the text */
.hero-section{position:relative;overflow:hidden;isolation:isolate}
.hero-section>.max-w-grid{position:relative;z-index:1}
.mascot-stage{position:absolute;inset:auto 0 0 0;height:var(--stage-h,420px);z-index:0;pointer-events:none;background:linear-gradient(#fff,#F2F4F7 55%,#E7EAF0)}
.mascot-stage video,.mascot-stage img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center bottom}
.mascot-stage::before{content:"";position:absolute;inset:0 0 auto;height:40%;background:linear-gradient(#fff,rgba(255,255,255,0));z-index:1}
.mascot-ph{position:absolute;inset:auto 0 0;height:46%;background:radial-gradient(60% 100% at 50% 100%,#E3E7EE,#F2F4F7 60%,rgba(255,255,255,0))}
.hero-section.has-stage{padding-bottom:calc(var(--stage-h,420px) - 40px)!important}
@media (prefers-reduced-motion:reduce){.mascot-stage video{display:none}}
@media(max-width:700px){.hero-section{--stage-h:200px}}

/* ===== About: interactive illustrations ===== */
.ab-feat .dm{position:relative;border-radius:24px;padding:28px;background:radial-gradient(120% 95% at 82% 8%,#1D3A66 0%,#0B1A32 55%,#060F1F 100%);min-height:380px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.dm::after{content:"";position:absolute;width:320px;height:320px;inset-inline-end:-120px;top:-140px;border-radius:50%;background:radial-gradient(rgba(236,172,78,.22),rgba(236,172,78,0) 70%);pointer-events:none}
.dm-card{position:relative;z-index:1;background:#fff;border-radius:16px;box-shadow:0 24px 60px rgba(0,0,0,.35);padding:20px;width:100%;max-width:520px;font-size:14px}
.dm .art{display:block;border-radius:10px;overflow:hidden;background:#F5F6F8}.dm .art svg{display:block;width:100%;height:100%}
.dm-label{font-size:12px;font-weight:600;color:#56657E;margin:12px 0 6px}.dm-label:first-child{margin-top:0}
.dm-chips{display:flex;flex-wrap:wrap;gap:6px}
.dm-chip{border:1px solid #DEE1E7;background:#fff;border-radius:999px;padding:6px 12px;font-size:12.5px;color:#2B313B;cursor:pointer;transition:all .2s ease-out}
.dm-chip:hover{border-color:#A7B1C3}.dm-chip[aria-pressed=true]{background:#0B1A32;border-color:#0B1A32;color:#fff}
/* gen */
.dm-gen{gap:16px}.dm-gen .dm-card.dm-form{max-width:250px;flex:none}
.dm-input{min-height:74px;border:1px solid #DEE1E7;border-radius:10px;padding:10px 12px;font-size:13px;line-height:1.6;color:#0B1A32}
.dm-caret{display:inline-block;width:1.5px;height:15px;background:#0B1A32;vertical-align:-3px;margin-inline-start:2px;animation:dmBlink 1s steps(1) infinite}
@keyframes dmBlink{50%{opacity:0}}
.dm-go{margin-top:14px;width:100%;min-height:40px;border:0;border-radius:999px;background:#ECAC4E;color:#0B1A32;font-weight:600;display:flex;align-items:center;justify-content:center;gap:6px;cursor:pointer}.dm-go svg{width:12px;height:12px}
.dm-go:hover{background:#F2C882}
.dm-preview{position:relative;z-index:1;flex:1;display:grid;justify-items:center;gap:10px;min-width:0}
.dm-frame{position:relative;width:100%;max-width:230px;max-height:300px;border-radius:14px;overflow:hidden;background:#fff;box-shadow:0 24px 60px rgba(0,0,0,.35);transition:aspect-ratio .35s ease-out,max-width .35s ease-out}
.dm-frame[style*="16/9"]{max-width:280px}
.dm-art{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#FDF8EE}.dm-art svg{width:100%;height:100%;object-fit:cover}
.dm-shimmer{position:absolute;inset:0;background:linear-gradient(110deg,#F5F6F8 30%,#fff 50%,#F5F6F8 70%);background-size:200% 100%;opacity:0;pointer-events:none}
.dm-frame.busy .dm-shimmer{opacity:1;animation:dmShim 1.1s linear infinite}.dm-frame.busy .dm-art{opacity:0}
.dm-art{transition:opacity .4s ease-out}
@keyframes dmShim{to{background-position:-200% 0}}
.dm-saved{font-size:12px;color:#F2C882;opacity:0;transition:opacity .3s ease-out}.dm-saved.on{opacity:1}
/* chat */
.dm-thread{display:grid;gap:10px}
.dm-langs{display:flex;flex-wrap:wrap;gap:6px;padding-bottom:10px;border-bottom:1px solid #ECEEF2}
.dm-langs span{font-size:11.5px;padding:4px 10px;border-radius:999px;background:#F5F6F8;color:#56657E;transition:all .3s ease-out}
.dm-langs span.on{background:#0B1A32;color:#fff}
.dm-b{max-width:85%;padding:9px 13px;border-radius:14px;line-height:1.6;font-size:13px}
.dm-me{background:#0B1A32;color:#fff;justify-self:start}
.dm-ai{background:#F5F6F8;color:#0B1A32;justify-self:end}
html[dir=ltr] .dm-me{justify-self:end}html[dir=ltr] .dm-ai{justify-self:start}
.dm-styles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.dm-style{border:1px solid #DEE1E7;background:#fff;border-radius:12px;padding:6px;display:grid;gap:6px;font-size:11.5px;color:#2B313B;cursor:pointer;transition:all .2s ease-out}
.dm-style .art{aspect-ratio:1}
.dm-style:hover{border-color:#A7B1C3;transform:translateY(-2px)}
.dm-style[aria-pressed=true]{border-color:#ECAC4E;box-shadow:0 0 0 3px rgba(236,172,78,.35)}
.dm-ready{display:grid;gap:8px}
.dm-prompt{background:#FDF8EE;border:1px solid #F7DFB2;border-radius:12px;padding:10px 12px;font-size:12.5px;line-height:1.7;color:#0B1A32}
.dm-compose{display:flex;align-items:center;justify-content:space-between;border:1px solid #DEE1E7;border-radius:999px;padding:6px 6px 6px 14px;color:#A0A6B0;font-size:12.5px}
html[dir=rtl] .dm-compose{padding:6px 14px 6px 6px}
.dm-compose i{width:28px;height:28px;border-radius:50%;background:#0B1A32;color:#fff;display:flex;align-items:center;justify-content:center}.dm-compose svg{width:13px;height:13px}
/* library */
.dm-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px}
.dm-tile{margin:0;border:1px solid #ECEEF2;border-radius:12px;padding:6px;transition:opacity .25s ease-out,transform .25s ease-out}
.dm-tile .art{aspect-ratio:1}
.dm-tile figcaption{font-size:11.5px;padding:6px 2px 2px;color:#2B313B;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dm-tile.off{display:none}
/* admin */
.dm-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.dm-head p{font-weight:600}
.dm-count{min-width:26px;height:26px;border-radius:999px;background:#ECAC4E;color:#0B1A32;display:flex;align-items:center;justify-content:center;font:600 13px/1 Inter,system-ui}
.dm-queue{display:grid;gap:8px}
.dm-item{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:12px;border:1px solid #ECEEF2;border-radius:12px;padding:8px;transition:transform .35s ease-out,opacity .35s ease-out}
.dm-item .art{width:48px;height:48px}
.dm-meta{display:grid;gap:2px;min-width:0}.dm-meta b{font-size:13px}.dm-meta small{font-size:11.5px;color:#5C636E}
.dm-acts{display:flex;gap:6px}
.dm-ok,.dm-no{border-radius:999px;padding:6px 12px;font-size:12px;cursor:pointer;border:1px solid transparent}
.dm-ok{background:#0B1A32;color:#fff}.dm-ok:hover{background:#1A2941}.dm-no{background:#fff;color:#5C636E;border-color:#DEE1E7}
.dm-item.out-ok{transform:translateX(-30px);opacity:0}.dm-item.out-no{transform:scale(.96);opacity:0}
html[dir=ltr] .dm-item.out-ok{transform:translateX(30px)}
.dm-empty{display:grid;justify-items:center;gap:8px;padding:28px 0;color:#0E7A50}.dm-empty svg{width:32px;height:32px}.dm-empty p{color:#0B1A32;font-weight:500}
.dm-toast{min-height:20px;margin-top:10px;font-size:12px;color:#0E7A50;text-align:center}
@media(max-width:900px){.ab-feat .dm{padding:16px;min-height:0}.dm-gen{flex-direction:column}.dm-gen .dm-card.dm-form{max-width:none;width:100%}.dm-styles{grid-template-columns:repeat(2,minmax(0,1fr))}.dm-item{grid-template-columns:40px minmax(0,1fr)}.dm-item .art{width:40px;height:40px}.dm-acts{grid-column:1/-1}}
.dm button:focus-visible{outline:2px solid #ECAC4E;outline-offset:2px}
@media (prefers-reduced-motion:reduce){.dm *{animation:none!important;transition:none!important}}

/* About demos v3: the box itself is navy, content sits on it directly */
.ab-feat .dm{background:#0B1A32;border-radius:20px;padding:28px;box-shadow:none}
.ab-feat .dm::after{display:none}
.ab-feat .dm .dm-card{background:transparent;box-shadow:none;padding:0;max-width:none;color:#fff}
.ab-feat .dm-label{color:#A7B1C3}
.ab-feat .dm-chip{background:transparent;border-color:#3D4C66;color:#fff}.ab-feat .dm-chip:hover{border-color:#7B889F}
.ab-feat .dm-chip[aria-pressed=true]{background:#ECAC4E;border-color:#ECAC4E;color:#0B1A32}
.ab-feat .dm-input{background:#1A2941;border-color:#2A3952;color:#fff}.ab-feat .dm-caret{background:#ECAC4E}
.ab-feat .dm-gen{gap:24px}.ab-feat .dm-gen .dm-card.dm-form{max-width:230px}
.ab-feat .dm-frame{box-shadow:0 16px 40px rgba(0,0,0,.35)}
.ab-feat .dm-langs{border-bottom-color:#2A3952}.ab-feat .dm-langs span{background:#1A2941;color:#A7B1C3}.ab-feat .dm-langs span.on{background:#ECAC4E;color:#0B1A32}
.ab-feat .dm-me{background:#ECAC4E;color:#0B1A32}.ab-feat .dm-ai{background:#1A2941;color:#fff}
.ab-feat .dm-style{background:#1A2941;border-color:#2A3952;color:#fff}.ab-feat .dm-style:hover{border-color:#7B889F}
.ab-feat .dm-style[aria-pressed=true]{border-color:#ECAC4E}
.ab-feat .dm-prompt{background:rgba(236,172,78,.1);border-color:rgba(236,172,78,.35);color:#fff}
.ab-feat .dm-tile{background:#1A2941;border-color:#2A3952}.ab-feat .dm-tile figcaption{color:#fff}
.ab-feat .dm-head p{color:#fff}
.ab-feat .dm-item{background:#1A2941;border-color:#2A3952}.ab-feat .dm-meta b{color:#fff}.ab-feat .dm-meta small{color:#A7B1C3}
.ab-feat .dm-ok{background:#ECAC4E;color:#0B1A32}.ab-feat .dm-ok:hover{background:#F2C882}
.ab-feat .dm-no{background:transparent;color:#CBD2DE;border-color:#3D4C66}
.ab-feat .dm-empty p{color:#fff}.ab-feat .dm-empty{color:#ECAC4E}.ab-feat .dm-toast{color:#F2C882}
.ab-feat .dm .art{background:#1A2941}.ab-feat .dm .art svg{width:100%;height:100%}
@media(max-width:900px){.ab-feat .dm{padding:20px}}

.lg{max-width:780px}
.lg-date{font-size:14px;color:#7A818C}
.lg-sec{margin-top:40px}
.lg-sec h2{font-size:22px;font-weight:600;color:#0B1A32;margin-bottom:12px}
.lg-sec p,.lg-sec li{font-size:16px;line-height:1.9;color:#434A55}
.lg-sec ul{margin:0;padding-inline-start:22px;display:grid;gap:8px}
.lg-sec li::marker{color:#ECAC4E}

/* ===== Round 10 ===== */
.sb-band{background:#F5F6F8;padding:64px 32px}
.sb-plans{margin-top:0;max-width:none}
.sb-plans .plan{padding:36px;border-radius:20px}
.sb-note{margin-top:20px;font-size:14px;color:#5C636E}
.sb-inc{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.sb-item{border:1px solid #DEE1E7;border-radius:20px;padding:24px;display:grid;gap:8px;align-content:start}
.sb-ic{width:44px;height:44px;border-radius:12px;background:#0B1A32;color:#ECAC4E;display:flex;align-items:center;justify-content:center}.sb-ic .ic{width:22px;height:22px}
.sb-item h3{font-size:18px;font-weight:600;margin-top:6px}.sb-item p{font-size:15px;color:#5C636E;line-height:1.7}
#view-subscription .ab-cta{margin-top:56px}
.hw-band{padding:88px 32px}
.hw-feat .hw-eyebrow{color:#F2C882}
.hw-h{font-size:32px;font-weight:600;line-height:1.35;color:#fff}
.hw-p{color:#A7B1C3!important;font-size:17px;line-height:1.8;margin-top:12px}
.hw-feat .view-cta{margin-top:28px}
.hw-feat .dm{background:#1A2941;border:1px solid #2A3952}
.nf-in{display:grid;justify-items:start;gap:8px;padding:40px 0 80px}
.nf-code{font:700 96px/1 Inter,system-ui;color:#ECAC4E;letter-spacing:-.04em}
.ck{position:fixed;inset-inline:16px;bottom:16px;z-index:90;display:flex;justify-content:center;pointer-events:none}
.ck-in{pointer-events:auto;max-width:760px;width:100%;background:#fff;border:1px solid #DEE1E7;border-radius:16px;box-shadow:0 8px 24px rgba(11,26,50,.12);padding:14px 18px;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.ck-in p{font-size:14px;color:#2B313B;line-height:1.6}
.ck-acts{display:flex;align-items:center;gap:16px}
.ck-link{background:none;border:0;padding:0;font:inherit;font-size:14px;color:#1D52AE;text-decoration:underline;cursor:pointer}
.ck-ok{min-height:40px;padding:0 22px;font-size:14px}
body.in-app .ck{display:none}
.contact-idea{background:#FDF8EE;border:1px solid #F7DFB2;border-radius:12px;padding:10px 14px;font-size:14px;line-height:1.7;color:#0B1A32;margin-bottom:6px}
.contact-idea b{display:block;font-size:12px;color:#94611B;margin-bottom:2px}
.hp-field{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.contact-done{display:grid;justify-items:center;gap:10px;text-align:center;padding:16px 0}
.contact-done svg{width:44px;height:44px;color:#1F9D6B}
.contact-done h3{font-size:20px;font-weight:600}.contact-done p{color:#5C636E}
.art-make{margin-top:16px}
@media(max-width:900px){.sb-band,.hw-band{padding:56px 16px}.sb-inc{grid-template-columns:1fr 1fr}.hw-h{font-size:26px}}
@media(max-width:560px){.sb-inc{grid-template-columns:1fr}.ck-in{flex-direction:column;align-items:stretch}.ck-acts{justify-content:space-between}}

/* ===== Round 11: phone polish ===== */
.mob-only{display:none!important}
@media(max-width:700px){
  /* header: logo, language and menu only; log in moves into the menu */
  header .public-marketing-nav .nav-actions .login{display:none}
  .nav-links .mob-only{display:flex!important}
  .nav-links .mob-login{margin-top:8px;justify-content:center;background:#0B1A32!important;color:#fff!important;border-radius:999px!important;min-height:48px}
  .nav-links .mob-demo{justify-content:center;background:#ECAC4E!important;color:#0B1A32!important;border-radius:999px!important;min-height:48px;font-weight:600}
  /* hero */
  .hero-section{padding-top:40px!important;padding-bottom:32px!important}
  .hero-section h1{font-size:38px!important;line-height:1.35!important}
  .hero-section .t-lead{font-size:17px!important;margin-top:12px!important}
  #prompt-form{margin-top:28px!important}
  #prompt-bar{height:56px!important;padding-inline-start:16px!important}
  /* starters: one swipeable row instead of a stack */
  .starter-area{margin-inline:-24px;max-width:none}
  .prompt-starters{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;scroll-snap-type:x proximity;padding:2px 24px 6px;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  .prompt-starters::-webkit-scrollbar{display:none}
  .starter{flex:none;scroll-snap-align:start;font-size:13.5px;padding:9px 14px}
  .demo-cta-wrap{margin-top:24px!important}
  .demo-cta{width:100%;min-height:54px}
  /* cookie note: compact */
  .ck{inset-inline:12px;bottom:12px}
  .ck-in{padding:12px 14px;gap:10px;flex-direction:row!important;align-items:center!important;flex-wrap:nowrap}
  .ck-in p{font-size:12.5px;line-height:1.5}
  .ck-acts{gap:10px;flex:none}
  .ck-link{display:none}
  .ck-ok{min-height:36px;padding:0 16px;font-size:13px}
}
@media(max-width:380px){.hero-section h1{font-size:34px!important}}

/* ===== Round 13: subscription paused ===== */
#pricing-open,[data-view-go="subscription"],.ab-sub{display:none!important}

/* ===== Mobile header ===== */
.login{white-space:nowrap}
.menu-toggle{display:none}
@media(max-width:900px){
  header .public-nav{flex-wrap:nowrap!important;height:60px!important;min-height:0!important;padding:0 16px!important;gap:12px!important;position:relative}
  header .public-nav .nav-actions{margin-inline-start:auto!important;gap:8px!important}
  .menu-toggle{display:inline-flex;align-items:center;justify-content:center;flex:none;width:40px;height:40px;border-radius:50%;border:1px solid #DEE1E7;background:#fff;color:#0B1A32}
  .menu-toggle svg{width:18px;height:18px}
  .menu-toggle .i-close{display:none}
  .public-nav[data-open="true"] .menu-toggle .i-open{display:none}
  .public-nav[data-open="true"] .menu-toggle .i-close{display:block}
  header .public-nav .nav-links{display:none!important;position:absolute;top:100%;left:0;right:0;order:0!important;width:auto!important;
    flex-direction:column;align-items:stretch;gap:2px!important;padding:8px 12px 16px!important;margin:0;
    background:#fff;border-top:1px solid #ECEEF2!important;border-bottom:1px solid #DEE1E7;box-shadow:0 24px 60px rgba(11,26,50,.14)}
  header .public-nav[data-open="true"] .nav-links{display:flex!important}
  header .public-nav .nav-links .navbtn{justify-content:flex-start;width:100%;padding:14px 12px!important;font-size:16px!important;gap:12px!important;border-radius:10px;opacity:1}
  header .public-nav .nav-links .navbtn svg{display:block!important;width:18px!important;height:18px!important;color:#56657E}
  header .public-nav .nav-links .navbtn[aria-current="true"]{background:#F5F6F8}
}
@media(max-width:400px){
  header .public-nav .lockup-logo{height:21px}
  header .public-nav .login{padding:8px 12px;white-space:nowrap}
  header .public-nav .nav-actions{gap:6px!important}
  .lang-circle,.menu-toggle{width:36px;height:36px}
  .token-pill>svg,#school-profile>svg{display:none}
  #school-profile{padding:3px}
  .token-pill{padding:7px 10px}
}
