/* Terrace landing page, powered by ClarityIQ (Ryan, "Clarity IQ - Landing Page Design", 2026-11-04).
   Shared by Home (v1, two columns of tiles) and v2/ (six tiles in a row). Always dark: it sits on a photo. */
:root{--navy:#003A5D;--deep:#002A44;--green:#00AF43;--font:"Roboto","Segoe UI",system-ui,-apple-system,sans-serif;color-scheme:dark}
*{box-sizing:border-box}
html,body{margin:0}
html:has(body.home){background:#002A44}
body.home{min-height:100vh;display:flex;flex-direction:column;background:var(--deep);color:#FFFFFF;font-family:var(--font)}

/* Home's own top bar: the Terrace logo in place of ClarityIQ, and a Home link underlined in green when current. */
body.home header.top{position:relative;z-index:20}
body.home header.top .brand img{height:40px}
body.home header.top .prod a[aria-current="page"]{background:none;border-radius:0;box-shadow:inset 0 -3px 0 var(--green);font-weight:700}
@media (max-width:560px){body.home header.top .brand img{height:32px}}

/* The photos: stacked, one showing at a time, cross-fading. A navy wash keeps the logo and tiles readable. */
.hero{position:relative;flex:1;display:flex;flex-direction:column;align-items:center;overflow:hidden;isolation:isolate;padding:clamp(28px,6vh,72px) 16px clamp(72px,11vh,120px)}
.hero .bg{position:absolute;inset:0;z-index:-2}
.hero .bg img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity 1.6s ease}
.hero .bg img.on{opacity:1}
.hero::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:radial-gradient(ellipse 40% 30% at 50% 24%,rgba(0,42,68,.72),rgba(0,42,68,0) 100%),
             linear-gradient(180deg,rgba(0,42,68,.18) 0%,rgba(0,42,68,0) 35%,rgba(0,42,68,.12) 100%)}

.hero h1{margin:0;line-height:0}
.hero h1 img{width:clamp(240px,40vw,560px);height:auto;filter:drop-shadow(0 4px 18px rgba(0,0,0,.45))}

/* Tiles: deep navy glass, white type, the green rule. Tiles that open something are links; the rest say Coming soon. */
.tiles{list-style:none;margin:0;padding:0;width:100%}
.tile{position:relative;display:flex;align-items:center;height:100%;color:#FFFFFF;text-decoration:none;background:rgba(0,42,68,.86);
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);border:1px solid rgba(255,255,255,.22);border-radius:16px;
  box-shadow:0 10px 30px rgba(0,0,0,.35);transition:background .15s,transform .15s}
a.tile:hover{background:rgba(0,58,93,.95);transform:translateY(-2px)}
a.tile:focus-visible{outline:3px solid var(--green);outline-offset:3px}
.tile svg.ic{flex:none;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.tile b{display:block;font-weight:500;line-height:1.15}
.tile small{display:block;font-weight:400;line-height:1.2}
.tile .soon{display:block;margin-top:6px;font-size:.74rem;font-weight:500;letter-spacing:.1em;text-transform:uppercase;color:rgba(255,255,255,.85)}
.tile .go{flex:none;width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}

/* Footer: a navy band with a curved green edge, and Powered by ClarityIQ, on every page of the landing. */
.powered{position:relative;z-index:5;margin-top:-56px;color:#FFFFFF}
.powered svg.curve{display:block;width:100%;height:56px}
.powered .band{background:var(--deep);display:flex;align-items:center;justify-content:center;gap:clamp(14px,2.4vw,24px);padding:4px 16px calc(22px + env(safe-area-inset-bottom,0px))}
.powered .by{font-size:clamp(.8rem,1.6vw,1rem);font-weight:500;letter-spacing:.32em}
.powered .pipe{width:1px;height:30px;background:rgba(255,255,255,.55)}
.powered img{height:clamp(28px,4vw,40px);width:auto;display:block}

@media (prefers-reduced-motion:reduce){.hero .bg img{transition:none}a.tile:hover{transform:none}}
