/*
 * Faithful port of Lovable diamond-seal-showcase-main/src/routes/index.tsx
 * and src/styles.css. Only .lh-page is styled; no engine/shared page changes.
 * Original colors, Readex Pro + IBM Plex Sans Arabic, spacing and breakpoints.
 */
.lh-page {
 --lh-background:oklch(.98 .003 100); --lh-foreground:oklch(.2 .015 160);
 --lh-card:oklch(.996 .002 100); --lh-primary:oklch(.42 .08 165);
 --lh-primary-foreground:oklch(.98 .01 85); --lh-muted-foreground:oklch(.48 .015 160);
 --lh-border:oklch(.9 .01 85); --lh-gold:oklch(.8 .12 75);
 --lh-gold-soft:oklch(.94 .045 80); --lh-mint:oklch(.93 .04 165);
 --lh-caution:oklch(.5 .085 75);
 --lh-shadow-input:0 4px 20px -8px oklch(.2 .015 160 / .1);
 --lh-shadow-result:0 16px 40px -20px oklch(.25 .04 165 / .16),0 2px 5px oklch(.25 .04 165 / .025);
 margin:0;min-height:100vh;background:var(--lh-background);color:var(--lh-foreground);
 font-family:"IBM Plex Sans Arabic",sans-serif;font-size:16px;line-height:1.5;
 -webkit-font-smoothing:antialiased;overflow-x:clip;
}
.lh-page,.lh-page *,.lh-page *::before,.lh-page *::after{box-sizing:border-box}
.lh-page button,.lh-page textarea{font:inherit}
.lh-page button{cursor:pointer}
.lh-page a{color:inherit;text-decoration:none}
.lh-page svg{display:block;flex-shrink:0}
.lh-page p,.lh-page h1,.lh-page h3{margin:0}
.lh-page ul{list-style:none;margin:0;padding:0}
.lh-page button:focus-visible,.lh-page a:focus-visible,.lh-page textarea:focus-visible{outline:2px solid var(--lh-primary);outline-offset:3px}
.lh-skip{position:absolute;z-index:5;top:-100px;inset-inline-start:1rem;padding:.65rem 1rem;background:var(--lh-card);border:1px solid var(--lh-border)}
.lh-skip:focus{top:.5rem}
.lh-header{max-width:42rem;margin:auto;padding:1.5rem 1.5rem 0;display:flex;align-items:center;justify-content:space-between}
.lh-brand{display:inline-flex;align-items:center;gap:.75rem}
.lh-brand-symbol{height:38px;width:38px;display:grid;place-items:center;border-radius:50%;background:var(--lh-primary)}
.lh-brand-word{font-family:"Readex Pro",sans-serif;font-size:1.5rem;font-weight:700;line-height:2rem;white-space:nowrap}
.lh-gold-text{color:var(--lh-gold)}
.lh-guide{height:32px;display:inline-flex;align-items:center;gap:.375rem;padding:0;font-size:.75rem;color:var(--lh-muted-foreground)!important;white-space:nowrap}
.lh-guide:hover{color:var(--lh-foreground)!important}
.lh-icon{height:14px;width:14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.lh-icon-gold{color:var(--lh-gold)}
.lh-main{max-width:36rem;margin:0 auto;padding:0 1.5rem}
.lh-hero{text-align:center;padding-top:3rem}
.lh-hero h1{font-family:"Readex Pro",sans-serif;font-size:38px;line-height:1.5;font-weight:600}
.lh-hero .lh-primary-text{color:var(--lh-primary)}
.lh-word-highlight{position:relative;isolation:isolate}
.lh-word-highlight::after{content:"";position:absolute;inset-inline:0;bottom:.1em;height:.15em;background:var(--lh-gold);opacity:.65;z-index:-1;border-radius:2px}
.lh-hero p{margin-top:1rem;font-size:.875rem;line-height:1.75rem;color:var(--lh-muted-foreground)}
.lh-task-input{margin-top:2rem;background:var(--lh-card);border:1px solid var(--lh-border);border-radius:.75rem;padding:1rem;box-shadow:var(--lh-shadow-input);transition:border-color .2s,box-shadow .2s}
.lh-task-input:focus-within{border-color:var(--lh-primary)}
.lh-task-input textarea{display:block;min-height:6rem;width:100%;padding:.25rem .25rem 0;resize:none;background:transparent;color:var(--lh-foreground);border:0;outline:0;font-size:1rem;line-height:2rem}
.lh-task-input textarea::placeholder{color:color-mix(in oklab,var(--lh-muted-foreground) 75%,transparent)}
.lh-task-input textarea:focus-visible{outline:none}
.lh-primary-button{display:flex;align-items:center;justify-content:space-between;gap:1rem;width:100%;height:3rem;margin-top:.5rem;padding:0 1.25rem;color:var(--lh-primary-foreground);background:var(--lh-primary);border:1px solid transparent;border-radius:.5rem;font-family:"Readex Pro",sans-serif!important;font-size:1rem!important;font-weight:500!important;transition:background .18s}
.lh-primary-button:hover{background:color-mix(in oklab,var(--lh-primary) 90%,transparent)}
.lh-primary-button:disabled{opacity:.55;cursor:wait}
.lh-arrow{height:20px;width:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.lh-chips{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem;margin-top:.75rem}
.lh-chip{display:inline-flex;align-items:center;justify-content:center;gap:.375rem;min-width:0;height:2.25rem;padding:0 .5rem;border-radius:.5rem;border:1px solid color-mix(in oklab,var(--lh-border) 80%,transparent);background:transparent;box-shadow:none;font-size:.75rem!important;font-weight:400!important;color:var(--lh-muted-foreground);white-space:nowrap}
.lh-chip:hover{background:var(--lh-mint);color:var(--lh-primary)}
.lh-chip svg{width:14px;height:14px;fill:none;stroke:color-mix(in oklab,var(--lh-primary) 75%,transparent);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.lh-showcase{margin-top:2.5rem;padding-bottom:3rem}
.lh-showcase-heading{display:flex;align-items:center;justify-content:center;gap:.75rem;margin-bottom:1.25rem!important;font-size:.75rem;color:var(--lh-muted-foreground)}
.lh-showcase-heading span{height:1px;width:1.5rem;background:var(--lh-border)}
.lh-result-card{position:relative;overflow:hidden;border:1px solid var(--lh-border);border-top:2px solid var(--lh-gold);border-radius:1rem;background:var(--lh-card);box-shadow:var(--lh-shadow-result);animation:lh-rise .7s cubic-bezier(.2,.7,.2,1) both}
.lh-card-header{display:flex;justify-content:space-between;align-items:center;gap:.75rem;padding:.875rem 1.25rem;border-bottom:1px solid color-mix(in oklab,var(--lh-border) 70%,transparent)}
.lh-card-label{display:flex;align-items:center;gap:.5rem;font-size:.75rem;font-weight:500;color:var(--lh-primary)}
.lh-card-label i{display:block;width:6px;height:6px;background:var(--lh-primary);border-radius:50%}
.lh-demo-label{font-size:.75rem;color:var(--lh-muted-foreground)}
.lh-card-content{padding:1.25rem 1.25rem 1.5rem}
.lh-question{display:flex;align-items:flex-start;gap:.75rem}
.lh-question svg{width:16px;height:16px;margin-top:.25rem;stroke:var(--lh-gold);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.lh-question p{font-size:.875rem;line-height:1.75rem;color:var(--lh-muted-foreground)}
.lh-tool{display:flex;align-items:center;gap:.875rem;margin-top:1.5rem}
.lh-tool-logo{width:56px;height:56px;display:grid;place-items:center;flex-shrink:0;background:var(--lh-mint);border:1px solid color-mix(in oklab,var(--lh-primary) 10%,transparent);color:var(--lh-primary);border-radius:.75rem}
.lh-tool-logo--claude{background:#fff1e8;border-color:#f0d6c6}
.lh-tool-logo--claude img{display:block;width:36px;height:36px;object-fit:contain}
.lh-tool-name{min-width:0;flex:1;text-align:right}
.lh-tool-name h3{text-align:right;font-family:"Readex Pro",sans-serif;font-size:1.5rem;line-height:2rem;font-weight:600}
.lh-tool-name p{margin-top:.375rem;font-size:.75rem;color:var(--lh-muted-foreground)}
.lh-best{display:flex;align-items:center;flex-direction:column;gap:.375rem;color:var(--lh-primary);font-size:11px;font-weight:600;flex-shrink:0}
.lh-best-seal{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--lh-gold-soft);border:1px solid color-mix(in oklab,var(--lh-gold) 55%,transparent);outline:1px solid color-mix(in oklab,var(--lh-gold) 25%,transparent);outline-offset:3px}
.lh-best-seal svg{height:16px;width:16px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.lh-explanation{margin-top:1.5rem;font-size:15px;line-height:2rem;color:color-mix(in oklab,var(--lh-foreground) 90%,transparent)}
.lh-ornament{display:flex;align-items:center;gap:.75rem;margin:1.5rem 0}
.lh-ornament span{height:1px;background:var(--lh-border);flex:1}
.lh-ornament i{width:6px;height:6px;background:var(--lh-gold);transform:rotate(45deg)}
.lh-notes{display:grid;gap:1.25rem;font-size:.875rem}
.lh-notes li{display:flex;align-items:flex-start;gap:.75rem}
.lh-notes li>div{min-width:0}
.lh-note-icon{width:32px;height:32px;flex-shrink:0;display:grid;place-items:center;border-radius:.5rem}
.lh-note-icon svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.lh-note-mint{background:var(--lh-mint);color:var(--lh-primary)}
.lh-note-gold{background:var(--lh-gold-soft);color:var(--lh-caution)}
.lh-note-title{font-weight:500}
.lh-note-title b{font-family:"Readex Pro",sans-serif;font-weight:700;color:var(--lh-primary)}
.lh-note-divider{margin:0 .25rem;color:var(--lh-border)}
.lh-note-subtitle{margin-top:.25rem!important;line-height:1.5rem;color:var(--lh-muted-foreground)}
.lh-source{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-top:1.5rem;padding-top:1rem;border-top:1px solid color-mix(in oklab,var(--lh-border) 70%,transparent);font-size:.75rem;color:var(--lh-muted-foreground)}
.lh-source>span:last-child{display:flex;align-items:center;gap:.375rem;white-space:nowrap}
.lh-source svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.lh-preview-link{display:flex;justify-content:center;margin-top:1.25rem}
.lh-preview-link a{display:inline-flex;align-items:center;gap:.5rem;height:36px;padding:0 1rem;font-size:.75rem;color:var(--lh-primary)}
.lh-preview-link a:hover{background:var(--lh-mint);border-radius:.375rem}
.lh-preview-link svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.lh-footer{padding:1.75rem 1.5rem;text-align:center;border-top:1px solid color-mix(in oklab,var(--lh-border) 70%,transparent)}
.lh-footer-motto{display:flex;align-items:center;justify-content:center;gap:.625rem;color:var(--lh-muted-foreground);font-size:.875rem}
.lh-footer-compass{height:26px;width:26px;flex-shrink:0;display:grid;place-items:center;border-radius:50%;background:var(--lh-primary)}
.lh-footer nav{display:flex;flex-wrap:wrap;justify-content:center;column-gap:1.25rem;row-gap:.5rem;max-width:24rem;margin:1rem auto 0}
.lh-footer nav a{font-size:.75rem;color:var(--lh-muted-foreground)}
.lh-footer nav a:hover{color:var(--lh-primary)}
@keyframes lh-rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@media(min-width:640px){
.lh-header{padding-top:2.25rem}
.lh-hero{padding-top:4rem}
.lh-hero h1{font-size:3rem;line-height:1.45}
.lh-hero p{font-size:1rem}
.lh-task-input{margin-top:2.25rem;padding:1.25rem}
.lh-primary-button{height:3.25rem}
.lh-chips{grid-template-columns:repeat(4,minmax(0,1fr))}
.lh-showcase{margin-top:3rem;padding-bottom:4rem}
.lh-card-header{padding-inline:1.75rem}
.lh-card-content{padding:1.5rem 1.75rem 1.75rem}
.lh-tool{gap:1rem}
.lh-tool-logo{width:64px;height:64px}
.lh-explanation{font-size:1rem}
}
@media(max-width:350px){
.lh-main,.lh-header{padding-inline:1rem}
.lh-brand-word{font-size:1.3rem}
.lh-chip{padding-inline:.25rem;font-size:11px!important;gap:.25rem}
.lh-chip svg{width:12px;height:12px}
}
@media(prefers-reduced-motion:reduce){.lh-page *,.lh-page *::before,.lh-page *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Approved menu substitution: homepage scope only */
.lh-header{position:relative}
.lh-menu{position:relative;z-index:20;display:flex;align-items:center}
.lh-menu-toggle{display:grid;place-items:center;width:38px;height:38px;padding:0;border:0;border-radius:8px;background:transparent;color:var(--lh-foreground);transition:background .18s,color .18s}
.lh-menu-toggle:hover,.lh-menu-toggle[aria-expanded="true"]{background:var(--lh-mint);color:var(--lh-primary)}
.lh-menu-panel{position:absolute;inset-inline-end:0;top:calc(100% + 8px);z-index:50;min-width:190px;padding:6px;border:1px solid var(--lh-border);border-radius:12px;background:var(--lh-card);box-shadow:var(--lh-shadow-result);text-align:start}
.lh-menu-panel[hidden]{display:none!important}
.lh-menu-panel a{display:block;padding:10px 12px;border-radius:8px;color:var(--lh-foreground);font-size:13px;line-height:22px}
.lh-menu-panel a:hover{background:var(--lh-mint);color:var(--lh-primary)}

/* AIAI_HOME_RTL_IDLE_V2: intentional Arabic writing direction and quiet readiness feedback. */
.lh-page .lh-task-input textarea{direction:rtl;text-align:right}
.lh-page .lh-task-input textarea::placeholder{direction:rtl;text-align:right}
.lh-page .lh-primary-button{transition:background-color .25s ease,color .25s ease,border-color .25s ease,box-shadow .25s ease}
.lh-page .lh-primary-button[data-state="idle"]{opacity:1;background:#EDF3F0;color:#738A7E;border-color:#E0EAE4;cursor:default;box-shadow:none}
.lh-page .lh-primary-button[data-state="idle"]:hover{background:#EDF3F0;color:#738A7E}
.lh-page .lh-primary-button[data-state="ready"]{opacity:1;background:var(--lh-primary);color:var(--lh-primary-foreground);cursor:pointer}
.lh-page .lh-primary-button[data-state="ready"] .lh-arrow{transform:translateX(-2px)}
.lh-page .lh-primary-button[data-state="submitting"]{opacity:.8;background:var(--lh-primary);color:var(--lh-primary-foreground);cursor:progress}
.lh-page .lh-arrow{transition:transform .25s ease}
.lh-page .lh-footer-symbol{height:26px;width:26px;flex:0 0 26px;display:grid;place-items:center}
.lh-page .lh-footer-symbol img{width:25px;height:25px;display:block;object-fit:contain}
@media(prefers-reduced-motion:reduce){.lh-page .lh-primary-button,.lh-page .lh-arrow{transition:none!important}}
