/* Seraya site styles. Palette and type follow the original Lovable design:
   warm ivory, deep forest, brass. Fraunces for display, Inter for text. */
:root{
  --ivory:#FAF7F2;--sand:#F0EBE1;--forest:#1F3D38;--forest-deep:#162D29;
  --brass:#A68850;--charcoal:#2A2A2A;--stone:#6B6B66;--mist:#D9D4C7;--card:#ffffff;
  --danger:#a23b32;--ok:#1f6f5c;--ok-soft:#e7f1ed;
  --serif:"Fraunces",Georgia,serif;
  --sans:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
html,body{margin:0;padding:0}
body{background:var(--ivory);color:var(--charcoal);font-family:var(--sans);font-size:16px;line-height:1.65;-webkit-font-smoothing:antialiased;font-feature-settings:"ss01","cv11"}
::selection{background:var(--brass);color:var(--ivory)}
a{color:inherit}
img{display:block;max-width:100%}
.container{max-width:1200px;margin:0 auto;padding:0 28px}
.container-narrow{max-width:720px;margin:0 auto;padding:0 28px}

/* Type */
.serif{font-family:var(--serif);font-optical-sizing:auto}
.eyebrow,.eyebrow-brass{font-family:var(--sans);font-size:.7rem;font-weight:500;letter-spacing:.18em;text-transform:uppercase;color:var(--stone);margin:0}
.eyebrow-brass{color:var(--brass)}
.rule{display:block;width:48px;height:1px;background:var(--brass);margin-top:20px}
.rule.center{margin-left:auto;margin-right:auto}
.display{font-family:var(--serif);font-weight:300;color:var(--forest);letter-spacing:-.02em;line-height:1.02;margin:32px 0 0}
.section-title{font-family:var(--serif);font-weight:300;color:var(--forest);letter-spacing:-.015em;line-height:1.1;font-size:clamp(34px,5vw,60px);margin:32px 0 0;max-width:18ch}
.lede{font-family:var(--serif);font-weight:300;color:var(--forest);line-height:1.45}
.body-copy{font-size:1.05rem;line-height:1.8;color:var(--charcoal);max-width:42rem}

/* Buttons */
.btn-forest,.btn-ghost{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:15px 30px;font-family:var(--sans);font-size:.75rem;font-weight:500;letter-spacing:.2em;text-transform:uppercase;text-decoration:none;border:1px solid var(--forest);cursor:pointer;transition:background .25s,color .25s,border-color .25s}
.btn-forest{background:var(--forest);color:var(--ivory)}
.btn-forest:hover{background:var(--brass);border-color:var(--brass)}
.btn-forest:disabled{opacity:.6;cursor:default}
.btn-ghost{background:transparent;color:var(--forest)}
.btn-ghost:hover{background:var(--forest);color:var(--ivory)}

/* Header */
.site-head{position:fixed;top:0;left:0;right:0;z-index:50;background:var(--ivory);border-bottom:1px solid var(--mist);transition:background .45s,border-color .45s}
.site-head .row{display:flex;align-items:center;justify-content:space-between;height:80px}
.wordmark{font-family:var(--serif);font-weight:300;font-size:1.25rem;letter-spacing:.25em;color:var(--forest);text-decoration:none}
.site-nav{display:flex;align-items:center;gap:40px}
.site-nav a{font-size:.72rem;letter-spacing:.18em;text-transform:uppercase;text-decoration:none;color:var(--charcoal);transition:color .2s}
.site-nav a:hover,.site-nav a[aria-current="page"]{color:var(--brass)}
.site-nav a.login{border:1px solid currentColor;padding:9px 16px}
.menu-btn{display:none;background:none;border:0;padding:8px;color:var(--forest);cursor:pointer}
.menu-btn span{display:block;width:24px;height:1px;background:currentColor;margin-bottom:6px}
.menu-btn span:last-child{width:16px;margin-left:auto;margin-bottom:0}
.mobile-nav{display:none;border-top:1px solid var(--mist);background:var(--ivory)}
.mobile-nav.open{display:block}
.mobile-nav nav{display:flex;flex-direction:column;gap:20px;padding:24px 28px}
.mobile-nav a{font-size:.85rem;letter-spacing:.18em;text-transform:uppercase;text-decoration:none;color:var(--charcoal)}
/* Transparent over the home hero until scrolled */
.site-head.over-hero{background:transparent;border-bottom-color:transparent}
.site-head.over-hero .wordmark,.site-head.over-hero .site-nav a,.site-head.over-hero .menu-btn{color:var(--ivory)}

/* Home hero */
.hero{position:relative;height:100vh;min-height:640px;overflow:hidden}
.hero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hero .shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(31,61,56,.35) 0%,rgba(31,61,56,.18) 35%,rgba(31,61,56,.6) 100%)}
.hero .content{position:relative;z-index:1;height:100%;display:flex;flex-direction:column;justify-content:flex-end;padding-bottom:120px}
.hero .eyebrow{color:rgba(250,247,242,.8);letter-spacing:.22em}
.hero h1{font-family:var(--serif);font-weight:300;color:var(--ivory);font-size:clamp(72px,14vw,192px);line-height:.9;letter-spacing:-.02em;margin:24px 0 0}
.hero .tagline{font-family:var(--serif);font-style:italic;font-weight:300;color:rgba(250,247,242,.92);font-size:clamp(22px,2.6vw,30px);margin:24px 0 0;max-width:40rem}
.hero .intro{color:rgba(250,247,242,.85);max-width:36rem;margin:28px 0 0;font-size:1.05rem}
.scroll-cue{position:absolute;left:50%;bottom:32px;transform:translateX(-50%);z-index:1;display:flex;flex-direction:column;align-items:center;gap:12px}
.scroll-cue .eyebrow{color:rgba(250,247,242,.7)}
.scroll-cue i{display:block;width:1px;height:40px;background:rgba(250,247,242,.5);animation:pulse 2s ease-in-out infinite}
@keyframes pulse{50%{opacity:.3}}

/* Sections */
.section{padding:clamp(96px,12vw,160px) 0}
.section.sand{background:var(--sand)}
.page-top{padding-top:clamp(160px,16vw,192px)}
.thesis{display:grid;grid-template-columns:repeat(3,1fr);gap:64px;margin-top:80px}
.thesis h3{font-family:var(--serif);font-weight:300;font-size:1.5rem;color:var(--forest);margin:16px 0 0}
.thesis p.copy{margin:24px 0 0;font-size:.95rem;line-height:1.75}
.stages{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--mist);margin-top:80px}
.stage{background:var(--sand);padding:40px;display:flex;flex-direction:column;gap:16px}
.stage .n{font-family:var(--serif);font-weight:300;font-size:1.9rem;color:var(--brass)}
.stage .eyebrow{color:var(--forest)}
.callout{text-align:center}
.callout .lede{font-size:clamp(22px,2.6vw,27px);margin:40px 0 0}
.callout .actions{margin-top:48px;display:flex;gap:12px;justify-content:center;flex-wrap:wrap}

/* About */
.partners{display:grid;grid-template-columns:repeat(2,1fr);gap:80px;margin-top:64px}
.partner .portrait{aspect-ratio:1/1;background:var(--mist);display:flex;align-items:center;justify-content:center;font-family:var(--serif);font-weight:300;font-size:clamp(48px,7vw,88px);color:var(--forest);letter-spacing:.04em}
.partner h3{font-family:var(--serif);font-weight:300;font-size:1.5rem;color:var(--forest);margin:32px 0 0}
.partner .eyebrow{margin-top:8px}
.partner p{margin:20px 0 0;font-size:.95rem;line-height:1.75}
.advisors{display:grid;grid-template-columns:repeat(2,1fr);gap:40px;margin-top:56px;max-width:48rem}
.advisor{border:1px solid var(--mist);padding:32px}
.advisor p.name{font-family:var(--serif);font-weight:300;font-size:1.25rem;color:var(--forest);margin:12px 0 0}

/* Forms */
.form{margin-top:56px;display:flex;flex-direction:column;gap:28px}
.label-field{display:block;font-size:.7rem;letter-spacing:.18em;text-transform:uppercase;color:var(--stone);margin-bottom:8px}
.input-field{width:100%;padding:14px 16px;border:1px solid var(--mist);background:transparent;color:var(--charcoal);font-family:var(--sans);font-size:1rem;border-radius:0}
.input-field:focus{outline:none;border-color:var(--brass)}
textarea.input-field{resize:vertical;min-height:140px}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.form-error{color:var(--danger);font-size:.9rem;margin:0}
.received{margin-top:56px;padding:40px;border:1px solid var(--mist);background:var(--sand)}
.received .lede{font-size:1.5rem;margin:20px 0 0}

/* Footer */
.site-foot{margin-top:0;border-top:1px solid var(--mist);background:var(--sand)}
.site-foot .grid{display:grid;grid-template-columns:repeat(3,1fr);gap:64px;padding:80px 0 0}
.site-foot .wordmark{font-size:1.1rem;letter-spacing:.22em}
.site-foot p,.site-foot li{font-size:.875rem;color:var(--stone);line-height:1.7}
.site-foot ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.site-foot a{text-decoration:none;color:var(--charcoal)}
.site-foot a:hover{color:var(--brass)}
.site-foot .legal{margin-top:64px;padding:32px 0 48px;border-top:1px solid var(--mist);font-size:.75rem;color:var(--stone);line-height:1.7}

/* Reveal on scroll */
.reveal{opacity:0;transform:translateY(18px);transition:opacity .9s ease,transform .9s ease}
.reveal.in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){.reveal{opacity:1;transform:none;transition:none}.scroll-cue i{animation:none}}

/* App shell: team hub and investor portal */
body.app{font-size:15px;background:var(--ivory)}
.app-head{border-bottom:1px solid var(--mist);background:var(--ivory)}
.app-head .row{display:flex;align-items:center;justify-content:space-between;gap:16px;height:68px}
.app-head .left{display:flex;align-items:baseline;gap:16px}
.app-head .area{font-size:.7rem;letter-spacing:.18em;text-transform:uppercase;color:var(--stone)}
.app-head .me{font-size:13px;color:var(--stone)}
.app-head .me b{color:var(--charcoal);font-weight:600}
.app-head .me a{margin-left:14px;color:var(--stone)}
.app-main{padding:44px 0 88px}
.app-main h1{font-family:var(--serif);font-weight:300;color:var(--forest);font-size:34px;margin:0 0 6px;letter-spacing:-.01em}
.app-main .sub{color:var(--stone);margin:0 0 32px}
.back{font-size:12.5px;color:var(--stone);text-decoration:none;display:inline-block;margin-bottom:10px}
.back:hover{color:var(--charcoal)}
.section-label{font-size:.7rem;letter-spacing:.16em;text-transform:uppercase;color:var(--stone);font-weight:600;margin:40px 0 14px}
.tools{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px}
.tool{display:flex;flex-direction:column;gap:8px;background:var(--card);border:1px solid var(--mist);border-radius:10px;padding:22px;text-decoration:none;color:var(--charcoal);min-height:156px;transition:border-color .15s,box-shadow .15s}
a.tool:hover{border-color:var(--forest);box-shadow:0 1px 2px rgba(31,61,56,.05),0 10px 26px rgba(31,61,56,.08)}
.tool h3{margin:0;font-size:16.5px;font-weight:600;color:var(--forest)}
.tool p{margin:0;color:var(--stone);font-size:14px;flex:1}
.tool .meta{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12.5px;color:var(--stone)}
.tool.soon{background:transparent;border-style:dashed}
.tool.soon h3{color:var(--stone)}
.tag{display:inline-block;white-space:nowrap;font-size:11.5px;font-weight:600;padding:3px 9px;border-radius:20px;background:#ece8de;color:var(--stone)}
.tag.live{background:var(--ok-soft);color:var(--ok)}
.tag.alert{background:#f7e7e4;color:var(--danger)}
.tag.brass{background:#f3ead8;color:#7d6434}
.empty-panel{background:var(--card);border:1px solid var(--mist);border-radius:10px;padding:56px 32px;text-align:center;color:var(--stone)}
.empty-panel h2{font-family:var(--serif);font-weight:300;color:var(--forest);margin:0 0 8px;font-size:26px}
.note-banner{background:#fff7e8;border:1px solid #ecdcae;color:#7a5d1d;font-size:13px;padding:9px 13px;border-radius:8px;margin-bottom:24px}
.note-banner.err{background:#f7e7e4;border-color:#e8c4be;color:var(--danger)}
.list{background:var(--card);border:1px solid var(--mist);border-radius:10px;overflow:hidden}
.list-item{padding:18px 22px;border-bottom:1px solid #eee9de;display:grid;grid-template-columns:1fr auto;gap:12px 24px;align-items:start}
.list-item:last-child{border-bottom:0}
.list-item h3{margin:0;font-size:15.5px;font-weight:600}
.list-item .meta{font-size:12.5px;color:var(--stone);margin-top:2px}
.list-item .reason{grid-column:1/-1;font-size:14px;white-space:pre-wrap;margin:0}
.list-item .actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.btn-sm{border:1px solid var(--mist);background:var(--card);color:var(--charcoal);border-radius:8px;padding:7px 12px;font-size:13px;font-weight:600;cursor:pointer;font-family:inherit;text-decoration:none}
.btn-sm:hover{border-color:var(--forest)}
.btn-sm.primary{background:var(--forest);border-color:var(--forest);color:#fff}
.btn-sm.primary:hover{background:var(--forest-deep)}
.btn-sm:disabled{opacity:.55;cursor:default}
.filters{display:flex;gap:2px;background:#ece8de;border-radius:8px;padding:3px;width:max-content;margin-bottom:16px}
.filters button{border:0;background:transparent;color:var(--stone);padding:7px 13px;border-radius:6px;cursor:pointer;font-size:13px;font-weight:500;font-family:inherit}
.filters button.active{background:var(--card);color:var(--charcoal);box-shadow:0 1px 2px rgba(0,0,0,.06)}

/* Error and notice pages */
body.plain{display:flex;min-height:100vh;align-items:center;justify-content:center}
.notice{max-width:480px;padding:40px 28px}
.notice h1{font-family:var(--serif);font-weight:300;color:var(--forest);font-size:32px;margin:28px 0 10px}
.notice p{color:var(--stone)}
.notice-links{display:flex;gap:20px;margin-top:24px}
.notice-links a{color:var(--brass);font-weight:500;font-size:14px}

@media (max-width:860px){
  .site-nav{display:none}
  .menu-btn{display:block}
  .thesis,.partners,.advisors,.site-foot .grid{grid-template-columns:1fr;gap:48px}
  .stages{grid-template-columns:repeat(2,1fr)}
  .stage{padding:28px}
  .hero .content{padding-bottom:88px}
  .scroll-cue{display:none}
  .list-item{grid-template-columns:1fr}
  .list-item .actions{justify-content:flex-start}
}
