
/* This standalone HTML reproduces the approved Lovable src/routes/index.tsx.
   Original typography, OKLCH variables, spacing, sizes, icons and responsive breakpoints.
   No React, API, framework, backend, or production dependency. */
:root{
  --background:oklch(0.98 0.003 100);
  --foreground:oklch(0.2 0.015 160);
  --card:oklch(0.996 0.002 100);
  --primary:oklch(0.42 0.08 165);
  --primary-foreground:oklch(0.98 0.01 85);
  --muted-foreground:oklch(0.48 0.015 160);
  --border:oklch(0.9 0.01 85);
  --input:oklch(0.9 0.01 85);
  --gold:oklch(0.8 0.12 75);
  --gold-soft:oklch(0.94 0.045 80);
  --mint:oklch(0.93 0.04 165);
  --caution:oklch(0.5 0.085 75);
  --shadow-input:0 4px 20px -8px oklch(0.2 0.015 160 / 0.1);
  --shadow-result:0 16px 40px -20px oklch(0.25 0.04 165 / 0.16),0 2px 5px oklch(0.25 0.04 165 / 0.025);
}
*,:before,:after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;min-height:100vh;background:var(--background);color:var(--foreground);font-family:'IBM Plex Sans Arabic',sans-serif;-webkit-font-smoothing:antialiased;overflow-x:clip}
button,textarea{font:inherit}
button{cursor:pointer}
a{color:inherit;text-decoration:none}
svg{display:block;flex-shrink:0}
h1,h2,h3,p{margin:0}
ul{list-style:none;margin:0;padding:0}
button:focus-visible,a:focus-visible,textarea:focus-visible{outline:2px solid var(--primary);outline-offset:3px}
.skip{position:absolute;inset-inline-start:1rem;top:-110px;z-index:100;padding:.5rem;background:var(--card);color:var(--foreground)}
.skip:focus{top:.5rem}
.ic{width:16px;height:16px}
header{max-width:672px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;padding:24px 24px 0}
.brand{display:inline-flex;align-items:center;gap:12px;color:var(--foreground)}
.compass{display:grid;place-items:center;flex:0 0 auto;border-radius:999px;background:var(--primary)}
.brand-text{font-family:'Readex Pro',sans-serif;font-size:24px;font-weight:700;line-height:32px}
.gold{color:var(--gold)}
.learn{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0;border:0;background:transparent;color:var(--muted-foreground);font-size:12px;line-height:16px;font-weight:400}
.learn:hover{color:var(--foreground)}
.learn .ic{width:14px;height:14px;color:var(--gold)}
main{max-width:576px;margin:0 auto;padding:0 24px}
.hero{text-align:center;padding-top:48px}
.hero h1{font-family:'Readex Pro',sans-serif;font-size:38px;font-weight:600;line-height:1.5;letter-spacing:normal}
.hero .green{color:var(--primary)}
.word-highlight{position:relative;isolation:isolate}
.word-highlight:after{content:'';position:absolute;inset-inline:0;bottom:.1em;height:.15em;background:var(--gold);opacity:.65;z-index:-1;border-radius:2px}
.hero p{margin-top:16px;color:var(--muted-foreground);font-size:14px;line-height:28px}
.task-input{margin-top:32px;padding:16px;border:1px solid var(--input);border-radius:12px;background:var(--card);box-shadow:var(--shadow-input);transition:border-color .2s,box-shadow .2s}
.task-input:focus-within{border-color:var(--primary)}
.task-input textarea{display:block;width:100%;min-height:96px;padding:4px 4px 0;border:0;outline:none;resize:none;background:transparent;color:var(--foreground);font-size:16px;line-height:32px}
.task-input textarea::placeholder{color:color-mix(in oklab,var(--muted-foreground) 75%,transparent);opacity:1}
.task-input textarea:focus-visible{outline:none}
.primary-button{margin-top:8px;height:48px;width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 20px;border:0;border-radius:8px;background:var(--primary);color:var(--primary-foreground);font-family:'Readex Pro',sans-serif;font-size:16px;font-weight:500;box-shadow:none;transition:background-color .2s}
.primary-button:hover{background:color-mix(in oklab,var(--primary) 90%,black)}
.primary-button .ic{width:20px;height:20px}
.chips{margin-top:12px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.chip{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:0;height:36px;padding:0 8px;border:1px solid color-mix(in oklab,var(--border) 80%,transparent);border-radius:8px;background:transparent;color:var(--muted-foreground);font-size:12px;line-height:16px;white-space:nowrap;font-weight:400;box-shadow:none}
.chip:hover{background:var(--mint);color:var(--primary)}
.chip .ic{width:14px;height:14px;color:color-mix(in oklab,var(--primary) 75%,transparent);stroke-width:2}
.showcase{margin-top:40px;padding-bottom:48px}
.showcase-eyebrow{display:flex;align-items:center;justify-content:center;gap:12px;margin-bottom:20px;font-size:12px;line-height:16px;color:var(--muted-foreground)}
.showcase-eyebrow span{height:1px;width:24px;background:var(--border)}
.result-card{position:relative;overflow:hidden;border:1px solid var(--border);border-top:2px solid var(--gold);border-radius:16px;background:var(--card);box-shadow:var(--shadow-result);animation:rise .7s cubic-bezier(.2,.7,.2,1) both}
.card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid color-mix(in oklab,var(--border) 70%,transparent);padding:14px 20px}
.card-head .recommend{display:inline-flex;align-items:center;gap:8px;color:var(--primary);font-size:13px;font-weight:500;white-space:nowrap}
.status-dot{height:6px;width:6px;flex-shrink:0;border-radius:999px;background:var(--primary)}
.card-head .demo{font-size:13px;color:var(--muted-foreground)}
.card-body{padding:20px 20px 24px}
.question{display:flex;align-items:flex-start;gap:12px}
.question .ic{height:16px;width:16px;margin-top:4px;color:var(--gold)}
.question p{font-size:14px;line-height:28px;color:var(--muted-foreground)}
.tool{margin-top:24px;display:flex;align-items:center;gap:14px}
.tool-logo{display:grid;place-items:center;width:56px;height:56px;flex-shrink:0;border-radius:12px;border:1px solid color-mix(in oklab,var(--primary) 10%,transparent);background:var(--mint);color:var(--primary)}
.tool-logo svg{width:36px;height:36px;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round}
.tool-info{flex:1;min-width:0}
.tool-info h3{font-family:'Readex Pro',sans-serif;font-size:24px;line-height:32px;font-weight:600;text-align:start}
.tool-info p{margin-top:6px;font-size:12px;line-height:16px;color:var(--muted-foreground)}
.tool-award{display:flex;flex:0 0 auto;flex-direction:column;align-items:center;gap:6px;color:var(--primary)}
.award-seal{display:grid;place-items:center;height:36px;width:36px;border:1px solid color-mix(in oklab,var(--gold) 55%,transparent);border-radius:999px;outline:1px solid color-mix(in oklab,var(--gold) 25%,transparent);outline-offset:3px;background:var(--gold-soft)}
.award-seal .ic{width:16px;height:16px;stroke-width:2.5}
.tool-award .award-label{font-size:13px;line-height:16px;font-weight:600}
.explanation{margin-top:24px;font-size:15px;line-height:32px;color:color-mix(in oklab,var(--foreground) 90%,transparent)}
.ornament{margin:24px 0;display:flex;align-items:center;gap:12px}
.ornament .line{height:1px;flex:1;background:var(--border)}
.ornament .diamond{height:6px;width:6px;transform:rotate(45deg);background:var(--gold)}
.notes{display:grid;gap:20px;font-size:14px;line-height:20px}
.notes li{display:flex;align-items:flex-start;gap:12px}
.note-icon{display:grid;place-items:center;height:32px;width:32px;flex-shrink:0;border-radius:8px}
.note-icon .ic{width:16px;height:16px}
.note-icon.mint{background:var(--mint);color:var(--primary)}
.note-icon.gold-soft{background:var(--gold-soft);color:var(--caution)}
.note-text{min-width:0}
.note-title{font-weight:500;color:var(--foreground)}
.note-title b{font-family:'Readex Pro',sans-serif;color:var(--primary);font-weight:700}
.note-title .slash{margin:0 4px;color:var(--border)}
.note-desc{margin-top:4px;color:var(--muted-foreground);line-height:24px}
.source{margin-top:24px;padding-top:16px;border-top:1px solid color-mix(in oklab,var(--border) 70%,transparent);display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--muted-foreground);font-size:12px;line-height:16px}
.source-left{display:flex;align-items:center;gap:6px}
.source-left .ic{height:12px;width:12px}
.preview-button-wrap{margin-top:20px;display:flex;justify-content:center}
.preview-link{display:inline-flex;align-items:center;gap:8px;padding:8px 16px;border:0;border-radius:8px;background:transparent;color:var(--primary);font-size:12px;line-height:20px}
.preview-link:hover{background:var(--mint)}
.preview-link .ic{width:14px;height:14px}
footer{padding:28px 24px;text-align:center;border-top:1px solid color-mix(in oklab,var(--border) 70%,transparent)}
.footer-motto{display:flex;align-items:center;justify-content:center;gap:10px;font-size:14px;line-height:20px;color:var(--muted-foreground)}
footer nav{max-width:384px;margin:16px auto 0;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;column-gap:20px;row-gap:8px}
footer nav a{height:28px;display:flex;align-items:center;padding:0;font-size:12px;color:var(--muted-foreground)}
footer nav a:hover{color:var(--foreground)}
@keyframes rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@media(min-width:640px){
 header{padding-top:36px}
 .hero{padding-top:64px}
 .hero h1{font-size:48px;line-height:1.45}
 .hero p{font-size:16px}
 .task-input{margin-top:36px;padding:20px}
 .primary-button{height:52px}
 .chips{grid-template-columns:repeat(4,minmax(0,1fr))}
 .showcase{margin-top:48px;padding-bottom:64px}
 .card-head{padding-inline:28px}
 .card-body{padding:24px 28px 28px}
 .tool{gap:16px}
 .tool-logo{height:64px;width:64px}
 .explanation{font-size:16px}
}
@media(max-width:355px){main,header{padding-inline:16px}.chip{padding:0 4px;gap:4px;font-size:11px}.chip .ic{height:12px;width:12px}.brand-text{font-size:21px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}


/* Page derived from Lovable's src/routes/result.tsx and result-details.tsx.
  Preview only, no real recommendation API and no changes to production. */
.result-main{padding-bottom:48px}
.result-task{margin:28px 0 24px}
.result-task h2{margin-bottom:8px;color:var(--muted-foreground);font-size:15px;line-height:20px;font-weight:400}
.result-task .task-line{display:flex;align-items:flex-start;gap:12px}
.result-task .task-line .ic{margin-top:6px;width:16px;height:16px;color:var(--gold)}
.result-task .task-line p{font-size:16px;line-height:32px}
.result-page-card .card-body{padding:20px}
.result-page-card .tool{margin-top:0;gap:12px;padding-bottom:1px}
.result-page-card .tool-info h1{font-family:'Readex Pro',sans-serif;font-size:26px;font-weight:600;line-height:34px;text-align:start;margin:0}
.result-page-card .tool-info p{margin-top:6px;font-size:14px;line-height:24px}
.result-page-card .tool-logo .ic{width:28px;height:28px;stroke-width:1.5}
.result-page-card .award-seal{height:32px;width:32px}
.result-page-card .why-title{margin-top:26px;margin-bottom:9px;font-size:15px;line-height:24px;font-weight:600}
.result-page-card .why{font-size:16px;line-height:31px;color:color-mix(in oklab,var(--foreground) 85%,transparent)}
.result-page-card .action{margin-top:24px}
.action{display:flex;align-items:center;justify-content:space-between;gap:12px;height:48px;width:100%;border:0;border-radius:8px;background:var(--primary);color:var(--primary-foreground);padding:0 20px;text-align:start;font-family:'Readex Pro',sans-serif;font-size:14px;font-weight:500}
.action:hover{background:color-mix(in oklab,var(--primary) 90%,black)}
.action .ic{width:16px;height:16px}
.result-page-card .notes{gap:20px}
.result-page-card .note-desc{line-height:27px;font-size:14px}
.result-section{margin-top:40px}
.result-details{padding-top:32px;border-top:1px solid var(--border)}
.result-section-title{display:flex;align-items:center;gap:12px;margin-bottom:20px}
.result-section-title h2,.sources-heading h2{font-family:'Readex Pro',sans-serif;font-size:18px;line-height:28px;font-weight:600}
.result-section-title .note-icon{height:36px;width:36px}
.result-accordions{border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.result-accordions details+details{border-top:1px solid var(--border)}
.result-accordions summary{min-height:64px;padding:16px 0;display:flex;align-items:center;justify-content:space-between;gap:16px;list-style:none;cursor:pointer;font-size:15px;font-weight:500}
.result-accordions summary::-webkit-details-marker{display:none}
.result-accordions .summary-title{display:flex;align-items:center;gap:10px;min-width:0}
.result-accordions summary .ic{height:16px;width:16px;flex-shrink:0;color:var(--primary)}
.result-accordions summary>.ic{color:var(--muted-foreground);transition:transform .2s}
.result-accordions details[open] summary>.ic{transform:rotate(180deg)}
.result-accordions .details-content{padding-bottom:24px;font-size:14px;line-height:32px;color:var(--muted-foreground)}
.result-accordions ol{margin:0;padding:0;list-style:none;display:grid;gap:16px}
.result-accordions ol li{display:flex;gap:12px}
.result-accordions ol li .number{flex:0 0 auto;display:grid;place-items:center;width:24px;height:24px;margin-top:4px;border-radius:999px;background:oklch(.94 .01 85);color:var(--primary);font-size:12px}
.result-accordions h3{font-size:14px;line-height:24px;color:var(--foreground);font-weight:500}
.result-accordions .check-list{list-style:disc;padding-inline-start:20px;margin:0;display:grid;gap:8px}
.sources-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:20px}
.sources-heading span{font-size:14px;color:var(--muted-foreground)}
.source-list{border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.source-list a{display:flex;align-items:center;gap:12px;padding:20px 0;transition:color .2s}
.source-list a+a{border-top:1px solid var(--border)}
.source-list a:hover{color:var(--primary)}
.source-list a>.ic:first-child{width:20px;height:20px;color:var(--primary)}
.source-list a>.ic:last-child{width:16px;height:16px;color:var(--muted-foreground)}
.source-list .source-name{flex:1;min-width:0}
.source-list .source-name h3{font-size:14px;font-weight:500;line-height:20px}
.source-list .source-name p{margin-top:4px;font-size:14px;line-height:24px;color:var(--muted-foreground)}
.source-list .source-name p.domain{font-size:13px;line-height:20px;text-align:start}
.result-note{margin-top:24px;border-inline-start:2px solid var(--gold);padding-inline-start:16px;font-size:14px;line-height:28px;color:var(--muted-foreground)}
.another-wrap{display:flex;justify-content:center;margin-top:24px}
.another-task{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:44px;padding:0 16px;border:1px solid var(--border);border-radius:8px;background:transparent;color:var(--foreground);font-size:14px}
.another-task .ic{width:16px;height:16px}
.another-task:hover{background:var(--mint)}
.result-footer{padding:24px;text-align:center;border-top:1px solid color-mix(in oklab,var(--border) 70%,transparent)}
.result-footer p{font-size:14px;color:var(--muted-foreground)}
.result-action-bar{display:flex;position:fixed;inset-inline:0;bottom:0;z-index:20;border-top:1px solid var(--border);background:color-mix(in oklab,var(--card) 95%,transparent);backdrop-filter:blur(6px);padding-bottom:env(safe-area-inset-bottom,0)}
.result-action-inner{display:flex;align-items:center;gap:16px;max-width:576px;width:100%;margin:auto;padding:12px 24px}
.result-action-inner .action-text{flex:1;min-width:0}
.result-action-inner .action-text p{font-size:12px;color:var(--muted-foreground)}
.result-action-inner .action-text h3{margin-top:2px;font-family:'Readex Pro',sans-serif;font-size:14px;font-weight:600}
.result-action-inner .action{width:auto;height:44px;gap:12px;font-size:14px;padding:0 20px;white-space:nowrap}
.header-new-task{display:inline-flex;align-items:center;gap:6px;height:36px;font-size:12px;color:var(--muted-foreground)}
.header-new-task:hover{color:var(--foreground)}
.header-new-task .ic{height:14px;width:14px}
@media(min-width:640px){.result-task{margin-top:36px}.result-task .task-line p{font-size:18px}.result-page-card .card-body{padding:28px}.result-page-card .tool{gap:16px}.result-page-card .tool-info h1{font-size:30px;line-height:36px}.result-page-card .why{font-size:16px}.result-action-bar{display:none}}
@media(max-width:639px){.result-footer{padding-bottom:calc(110px + env(safe-area-inset-bottom,0px))}}

/* Result port extension to integrate the existing AIAI result information hierarchy.
   Same Lovable palette, radii, fonts, shadows and widths. No global redesign. */
header{position:relative}
.site-menu{position:relative;z-index:30;display:flex;align-items:center}
.menu-toggle{display:grid;place-items:center;width:38px;height:38px;padding:0;border:0;border-radius:8px;background:transparent;color:var(--foreground)}
.menu-toggle:hover,.menu-toggle[aria-expanded="true"]{background:var(--mint);color:var(--primary)}
.menu-panel{position:absolute;top:calc(100% + 8px);inset-inline-end:0;z-index:50;min-width:198px;padding:6px;border:1px solid var(--border);border-radius:12px;background:var(--card);box-shadow:var(--shadow-result);text-align:start}
.menu-panel[hidden]{display:none!important}
.menu-panel a{display:block;padding:10px 12px;border-radius:8px;font-size:14px;line-height:22px;color:var(--foreground)}
.menu-panel a:hover{background:var(--mint);color:var(--primary)}
.request-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.request-head h2{margin:0!important}
.request-edit{display:inline-flex;align-items:center;gap:5px;height:28px;padding:0 6px;border:0;border-radius:6px;background:transparent;font-size:13px;color:var(--muted-foreground)}
.request-edit:hover,.request-edit[aria-expanded="true"]{background:var(--mint);color:var(--primary)}
.request-edit .ic{width:13px;height:13px}
.request-edit-panel{margin-top:16px;padding:14px;border:1px solid var(--border);border-radius:10px;background:var(--card)}
.request-edit-panel[hidden]{display:none}
.request-edit-panel form{display:grid;gap:10px}
.request-edit-panel label{font-size:13px}
.request-edit-panel textarea{resize:vertical;min-height:88px;width:100%;padding:10px;border:1px solid var(--border);border-radius:7px;background:var(--background);font-size:14px;line-height:24px;color:var(--foreground)}
.edit-submit{padding:8px 16px;border:0;border-radius:7px;background:var(--primary);color:var(--primary-foreground);justify-self:start;font-size:13px}
.result-page-card .tool-info h1{overflow-wrap:anywhere;line-height:1.35;white-space:normal}
.result-page-card .tool-info p{overflow-wrap:anywhere}
.action{transition:background .18s;cursor:pointer}
.action:hover{color:var(--primary-foreground)}
.sample-section{margin-top:42px}
.sample-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px}
.sample-head .micro-label{display:block;font-size:13px;color:var(--primary);font-weight:500;margin-bottom:3px}
.sample-head h2{font-family:'Readex Pro',sans-serif;font-size:21px;font-weight:600;line-height:34px}
.sample-scope{font-size:12px;color:var(--muted-foreground);text-align:end;white-space:nowrap;margin-bottom:5px}
.sample-intro{margin-top:10px;color:var(--muted-foreground);font-size:13px;line-height:26px}
.result-footer nav{margin-top:13px;display:flex;align-items:center;justify-content:center;gap:22px}
.result-footer nav a{font-size:13px;color:var(--muted-foreground)}
.result-footer nav a:hover{color:var(--primary)}
.result-action-bar[hidden]{display:none!important}
.result-action-inner .action{display:flex;align-items:center;justify-content:space-between}
@media(max-width:390px){.result-page-card .tool-info h1{font-size:clamp(16px,5.2vw,20px)}.result-page-card .tool-logo{width:48px;height:48px}.result-page-card .tool{gap:9px}.sample-head h2{font-size:18px}.sample-scope{font-size:12px}.sample-caption{flex-wrap:wrap}.sample-sheet{padding:18px;width:min(100% - 28px,330px)}}
@media(min-width:640px){.sample-sheet{width:360px;max-width:calc(100% - 60px)}.sample-section{margin-top:48px}}
@media(prefers-reduced-motion:reduce){.result-card{animation:none!important}}

/* Real output slot: no simulated screenshots or preview-only controls. */
.sample-empty-state{display:flex;gap:14px;align-items:center;margin-top:18px;padding:20px 17px;background:var(--card);border:1px solid var(--border);border-radius:12px;box-shadow:0 3px 12px oklch(.2 .015 160 / .025)}
.sample-empty-symbol{width:45px;height:45px;flex:0 0 45px;display:grid;place-items:center;background:var(--mint);color:var(--primary);border:1px solid color-mix(in oklab,var(--primary) 12%,transparent);border-radius:10px}
.sample-empty-symbol svg{height:23px;width:23px}
.sample-empty-copy h3{font-size:14px;line-height:25px;font-weight:600;color:var(--foreground)}
.sample-empty-copy p{margin-top:4px;font-size:13px;line-height:25px;color:var(--muted-foreground)}
@media(max-width:355px){.sample-empty-state{padding:15px 12px;gap:10px}.sample-empty-symbol{width:39px;height:39px;flex-basis:39px}}

/* Protect the approved white CTA label from higher-specificity legacy result rules. */
body.lr-page .result-page-card .action,body.lr-page .result-action-inner .action{color:var(--primary-foreground)}

/* Reset pre-existing result page's 14px/1.85 shorthand to the standalone reference's browser-default 16px/normal. */
body.lr-page{font-size:16px;line-height:normal;font-weight:400}

/* Source-bound proof: concise excerpt with the original publisher link.
   Keeps the approved result design and full source listing unchanged. */
body.lr-page .result-accordions .details-content .source-evidence-link{
 display:inline-flex;align-items:center;min-height:34px;margin-top:5px;
 font-size:12px;line-height:21px;font-weight:600;
 color:var(--primary);text-decoration:none;
}
body.lr-page .result-accordions .details-content .source-evidence-link:hover{text-decoration:underline}
body.lr-page .result-accordions .details-content ol>li p[dir="auto"]{
 font-size:13px;line-height:25px;white-space:normal;overflow-wrap:anywhere
}
