/* HousePlanCraft — the design system for every page outside the editor and the 3D viewer.
   Warm drawing-paper light sections, deep blueprint-navy dark bands, one display face for
   headings, and the editor's teal and 3D-view yellow as the two accents. */
:root{
  --paper:#f7f6f2; --paper2:#efede6; --surface:#fff; --line:#e3dfd4; --line2:#d6d1c4;
  --ink:#0f1b24; --ink2:#22303a; --muted:#5f6a70; --faint:#8a9399;
  --accent:#1f6f63; --accent2:#2a8f80; --accent-ink:#fff; --accent-soft:#e6f2ef;
  --yel:#ffd45c; --yel2:#ffb86b; --warn:#a33;
  --navy:#0b1a27; --navy2:#10283a; --on-dark:#dbe7ef; --on-dark2:#9fb4c3; --on-dark3:#73899a;
  --r-sm:10px; --r:14px; --r-lg:20px; --radius:14px;
  --shadow-sm:0 1px 2px rgba(15,27,36,.06), 0 2px 6px rgba(15,27,36,.04);
  --shadow:0 1px 2px rgba(15,27,36,.06), 0 10px 30px -10px rgba(15,27,36,.14);
  --shadow-lg:0 2px 6px rgba(15,27,36,.06), 0 30px 60px -20px rgba(15,27,36,.28);
  --f-display:"Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-body:ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --f-mono:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease:cubic-bezier(.16,1,.3,1);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
html{-webkit-text-size-adjust:100%; scroll-padding-top:80px}
body{
  background:var(--paper); color:var(--ink); min-height:100vh;
  font:16px/1.6 var(--f-body); -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
  display:flex; flex-direction:column; text-rendering:optimizeLegibility;
}
a{color:var(--accent); text-underline-offset:3px}
img,video{max-width:100%}
h1,h2,h3{font-family:var(--f-display); line-height:1.12; margin:0 0 .45em; color:var(--ink); font-weight:750}
h1{font-size:clamp(34px,5vw,60px); letter-spacing:-.035em; font-weight:800}
h2{font-size:clamp(26px,3vw,38px); letter-spacing:-.028em}
h3{font-size:18px; letter-spacing:-.012em}
.wrap{width:min(1180px,92vw); margin:0 auto}
.muted{color:var(--muted)}
.mono{font-family:var(--f-mono)}
::selection{background:#ffe7a3; color:var(--ink)}
:focus-visible{outline:2px solid var(--accent); outline-offset:2px}

/* arrive on scroll (base.html marks <html class="js"> and adds .in as each block comes into view) */
.js [data-rv]{opacity:0; transform:translateY(18px); transition:opacity .9s var(--ease), transform .9s var(--ease); transition-delay:calc(var(--d,0) * 70ms)}
.js [data-rv].in{opacity:1; transform:none}
/* above the fold (page heroes): plain CSS entrances that start at once, never waiting on a script */
.rise, .js .page-hero [data-rv]{opacity:1; transform:none; animation:rise .9s var(--ease) both; animation-delay:calc(var(--d,0) * 80ms + 60ms)}
@keyframes rise{from{opacity:0; transform:translateY(16px)}to{opacity:1; transform:none}}

/* header — frosted, page links on the left of the bar, account actions on the right */
.site-head{position:sticky; top:0; z-index:30; background:rgba(247,246,242,.82); -webkit-backdrop-filter:saturate(1.6) blur(16px); backdrop-filter:saturate(1.6) blur(16px);
  border-bottom:1px solid transparent; transition:border-color .25s, box-shadow .25s, background .25s}
.site-head.scrolled{border-bottom-color:var(--line); box-shadow:0 8px 28px -18px rgba(15,27,36,.35); background:rgba(247,246,242,.9)}
.site-head .wrap{display:flex; align-items:center; gap:28px; height:66px}
.site-head nav{flex:1; display:flex; align-items:center; justify-content:space-between; gap:16px; min-width:0}
.nav-links, .nav-acts{display:flex; align-items:center; gap:2px}
.nav-acts{gap:6px}
.site-head nav a{position:relative; color:var(--muted); text-decoration:none; padding:8px 12px; border-radius:10px; font-weight:550; font-size:14.5px; white-space:nowrap; transition:color .15s, background .15s}
.site-head nav a:hover{color:var(--ink); background:rgba(15,27,36,.05)}
.nav-links a[aria-current="page"]{color:var(--ink); font-weight:650}
.nav-links a[aria-current="page"]::after{content:""; position:absolute; left:12px; right:12px; bottom:1px; height:2px; border-radius:2px; background:var(--accent)}
.nav-links .new-pill{margin-left:6px; font-size:9.5px; padding:0 6px; vertical-align:2px}
.site-head nav .nav-sep{width:1px; height:22px; background:var(--line2); margin:0 6px}
.site-head nav a.nav-signin{color:var(--ink); font-weight:650}
.site-head nav a.nav-cta{color:#fff; background:var(--ink); padding:9px 17px; border-radius:11px; font-weight:650; box-shadow:0 1px 2px rgba(15,27,36,.2), inset 0 1px 0 rgba(255,255,255,.12)}
.site-head nav a.nav-cta:hover{background:var(--ink2); color:#fff}
/* "Buy me a coffee": a bright yellow pill with its label, the cup giving a little wiggle now and then */
.site-head nav a.coffee-btn{display:inline-flex; align-items:center; gap:7px; height:38px; padding:0 14px 0 11px; border-radius:999px; background:#ffdd00; border:1px solid #f0cc00; color:#3a2e06; font-weight:700; font-size:14px;
  box-shadow:0 1px 0 rgba(255,255,255,.6) inset, 0 6px 16px -6px rgba(240,190,0,.7); transition:transform .15s, box-shadow .15s, background .15s}
.site-head nav a.coffee-btn:hover{background:#ffe63d; color:#3a2e06; transform:translateY(-1px); box-shadow:0 1px 0 rgba(255,255,255,.6) inset, 0 10px 22px -8px rgba(240,190,0,.85)}
.coffee-btn > span:first-child{display:inline-block; font-size:16px; transform-origin:50% 80%; animation:cup 6s ease-in-out infinite 2s}
@keyframes cup{0%,88%,100%{transform:rotate(0)}91%{transform:rotate(-14deg)}94%{transform:rotate(12deg)}97%{transform:rotate(-6deg)}}
.coffee-btn .coffee-label{white-space:nowrap}
.coffee-mini{display:none}
.site-head nav a.nav-avatar{display:inline-flex; align-items:center; gap:8px; padding:3px}
.nav-avatar span{width:34px; height:34px; border-radius:50%; background:var(--accent); color:#fff; font-weight:700; display:inline-flex; align-items:center; justify-content:center;
  box-shadow:0 0 0 2px var(--paper), 0 0 0 3px var(--line2)}
.nav-avatar em{display:none; font-style:normal}
.site-head .head-cta, .site-head .menu-toggle{display:none}
/* Signed in or not: pages cached at the edge carry both sets of actions; base.html picks one. */
html:not(.signed-in) .when-in, .signed-in .when-out{display:none !important}
@media (max-width:1040px){
  .site-head .wrap{gap:16px}
  .site-head nav a{padding:8px 9px; font-size:14px}
}
/* tablet widths: the pill keeps its colour but shows just the cup */
@media (min-width:861px) and (max-width:1120px){ .coffee-btn .coffee-label{display:none} .site-head nav a.coffee-btn{padding:0 11px} }
/* phones and small tablets: logo, cup, the account action and a Menu button on one row; the links open as a panel */
@media (max-width:860px){
  .site-head .wrap{height:60px; gap:8px}
  .site-head .head-cta{display:inline-flex; margin-left:auto; white-space:nowrap; border-radius:10px}
  .site-head .head-cta.primary{background:var(--ink); border-color:var(--ink)}
  .coffee-mini{display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; margin-left:auto; border-radius:999px;
    background:#ffdd00; border:1px solid #f0cc00; text-decoration:none; font-size:17px; flex:none; box-shadow:0 6px 14px -6px rgba(240,190,0,.8)}
  .coffee-mini + .head-cta, .coffee-mini + .head-cta + .head-cta{margin-left:0}
  .site-head .menu-toggle{display:inline-flex; align-items:center; gap:8px; background:#fff; border:1px solid var(--line); border-radius:10px; height:38px; padding:0 12px;
    font:inherit; font-size:13.5px; font-weight:650; color:var(--ink); cursor:pointer}
  .menu-toggle span, .menu-toggle span::before, .menu-toggle span::after{display:block; width:14px; height:2px; background:var(--ink); border-radius:2px; position:relative; transition:transform .25s, background .2s}
  .menu-toggle span::before, .menu-toggle span::after{content:""; position:absolute; left:0}
  .menu-toggle span::before{top:-5px}
  .menu-toggle span::after{top:5px}
  .menu-toggle[aria-expanded="true"] span{background:transparent}
  .menu-toggle[aria-expanded="true"] span::before{transform:translateY(5px) rotate(45deg)}
  .menu-toggle[aria-expanded="true"] span::after{transform:translateY(-5px) rotate(-45deg)}
  .site-head nav{display:none; position:absolute; top:100%; left:0; right:0; flex-direction:column; align-items:stretch; justify-content:flex-start; gap:10px;
    padding:10px 4vw 18px; background:var(--paper); border-bottom:1px solid var(--line); box-shadow:0 18px 30px -16px rgba(0,0,0,.18)}
  .site-head nav.open{display:flex; animation:nav-drop .22s ease-out}
  @keyframes nav-drop{from{opacity:0; transform:translateY(-6px)}to{opacity:1; transform:none}}
  .nav-links, .nav-acts{flex-direction:column; align-items:stretch; gap:2px}
  .nav-acts{padding-top:10px; border-top:1px solid var(--line)}
  .site-head nav a{padding:12px 10px; font-size:15.5px; border-radius:10px}
  .nav-links a[aria-current="page"]{background:rgba(15,27,36,.05)}
  .nav-links a[aria-current="page"]::after{left:0; right:auto; top:12px; bottom:12px; width:3px; height:auto}
  .site-head nav .nav-sep{display:none}
  .site-head nav a.coffee-btn{height:auto; padding:12px 10px; border-radius:10px; justify-content:center}
  .site-head nav a.nav-cta{text-align:center; padding:12px 16px}
  .site-head nav a.nav-avatar{padding:8px 10px}
  .nav-avatar em{display:inline}
}
@media (max-width:420px){
  .site-head .wrap{gap:6px}
  .site-head .logo{font-size:15px; gap:7px}
  .site-head .logo img{width:28px; height:28px}
  .site-head .head-cta{padding:7px 11px; font-size:13px}
  .coffee-mini{width:34px; height:34px; font-size:16px}
  .site-head .menu-toggle{font-size:0; gap:0; padding:0 10px; height:36px}
}
@media (max-width:370px){ .site-head .logo{font-size:14px} .site-head .head-cta{padding:7px 9px} }
@media (max-width:340px){ .site-head .logo{font-size:0; gap:0} }

/* announcement bar */
.announce{position:relative; display:flex; justify-content:center; background:linear-gradient(90deg,var(--navy),#173f5c 50%,var(--navy)); color:var(--on-dark); font-size:13.5px}
.announce a{display:inline-flex; align-items:center; gap:10px; color:inherit; text-decoration:none; padding:8px 44px}
.announce a b{background:var(--yel); color:#3a2e06; border-radius:999px; padding:1px 8px; font-size:10.5px; letter-spacing:.1em; text-transform:uppercase}
.announce a svg{transition:transform .2s}
.announce a:hover{color:#fff}
.announce a:hover svg{transform:translateX(3px)}
.announce-x{position:absolute; right:10px; top:50%; transform:translateY(-50%); width:28px; height:28px; border:0; border-radius:8px; background:transparent; color:var(--on-dark2); font-size:18px; line-height:1; cursor:pointer}
.announce-x:hover{background:rgba(255,255,255,.1); color:#fff}
@media (max-width:560px){ .announce{font-size:12.5px} .announce a{padding:7px 40px 7px 12px; gap:8px} }

.logo{display:flex; align-items:center; gap:10px; font-family:var(--f-display); font-weight:800; font-size:17px; text-decoration:none; color:var(--ink); letter-spacing:-.02em}
.logo img{display:block; flex:none}

/* buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px; border:1px solid var(--line2); background:var(--surface); color:var(--ink);
  padding:11px 18px; border-radius:12px; font:inherit; font-size:15px; font-weight:650; cursor:pointer; text-decoration:none; line-height:1.2;
  transition:background .15s, border-color .15s, transform .15s, box-shadow .15s; box-shadow:var(--shadow-sm);
}
.btn:hover{background:var(--paper2); border-color:var(--line2)}
.btn:active{transform:translateY(1px)}
.btn.primary{background:var(--ink); border-color:var(--ink); color:#fff; box-shadow:0 1px 2px rgba(15,27,36,.25), inset 0 1px 0 rgba(255,255,255,.12)}
.btn.primary:hover{background:var(--ink2); border-color:var(--ink2)}
.btn.accent{background:var(--accent); border-color:var(--accent); color:#fff}
.btn.accent:hover{background:var(--accent2); border-color:var(--accent2)}
.btn.yellow{background:var(--yel); border-color:var(--yel); color:#231c03; box-shadow:0 10px 30px -8px rgba(255,212,92,.55), inset 0 1px 0 rgba(255,255,255,.55)}
.btn.yellow:hover{background:#ffdc75; border-color:#ffdc75; transform:translateY(-1px)}
.btn.glass{background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.22); color:#fff; box-shadow:none}
.btn.glass:hover{background:rgba(255,255,255,.12); border-color:rgba(255,255,255,.32)}
.btn.lg{padding:14px 22px; font-size:16px; border-radius:14px}
.btn .arr{transition:transform .2s}
.btn:hover .arr{transform:translateX(3px)}
.btn.ghost{background:transparent; box-shadow:none}
.btn.danger{color:var(--warn); border-color:#e8cfcf; background:#fff}
.btn.danger:hover{background:#fbf1f1}
.btn.sm{padding:7px 12px; font-size:13.5px; border-radius:10px}
.btn.coffee{background:#ffdd00; border-color:#f0cc00; color:#3a2e06; font-weight:700}
.btn.coffee:hover{background:#ffe63d}

main{flex:1}
.section{padding:88px 0}
.section.tight{padding:56px 0}

/* section heads: eyebrow, heading, one line under it */
.eyebrow{display:inline-flex; align-items:center; gap:8px; font-size:12.5px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--accent)}
.eyebrow::before{content:""; width:18px; height:2px; border-radius:2px; background:currentColor}
.sec-head{max-width:680px; margin:0 0 44px}
.sec-head.center{margin-inline:auto; text-align:center}
.sec-head h2{margin:14px 0 14px}
.sec-head p{font-size:18px; color:var(--muted); margin:0}
.grad{background:linear-gradient(92deg,#ffe08a 0%,var(--yel2) 55%,#ff8f6b 100%); -webkit-background-clip:text; background-clip:text; color:transparent; padding-bottom:.08em; -webkit-box-decoration-break:clone; box-decoration-break:clone}

/* dark bands share one look */
.dark{position:relative; color:var(--on-dark); background:radial-gradient(900px 520px at 78% 12%,rgba(143,208,255,.14),transparent 60%), radial-gradient(700px 480px at 8% 95%,rgba(255,212,92,.09),transparent 60%), linear-gradient(180deg,#0c1f2e,var(--navy))}
.dark::before{content:""; position:absolute; inset:0; pointer-events:none; background-image:linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px);
  background-size:32px 32px; -webkit-mask-image:radial-gradient(ellipse 75% 65% at 55% 35%,#000 30%,transparent 78%); mask-image:radial-gradient(ellipse 75% 65% at 55% 35%,#000 30%,transparent 78%)}
.dark > *{position:relative}
.dark h1, .dark h2, .dark h3{color:#fff}
.dark .eyebrow{color:var(--yel)}
.dark .sec-head p, .dark .muted{color:var(--on-dark2)}
.dark a:not(.btn){color:#bfe3ff}

/* cards */
.features{display:grid; grid-template-columns:repeat(3,1fr); gap:16px}
.card{position:relative; background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:24px; box-shadow:var(--shadow-sm); transition:transform .3s var(--ease), box-shadow .3s, border-color .3s}
.card:hover{transform:translateY(-3px); box-shadow:var(--shadow); border-color:var(--line2)}
.card h3{margin:0 0 8px; font-size:17px}
.card p{margin:0; color:var(--muted); font-size:15px; line-height:1.55}
.card .ic{width:42px; height:42px; border-radius:12px; display:grid; place-items:center; background:var(--accent-soft); color:var(--accent); margin-bottom:16px}
.card .ic svg{width:21px; height:21px}
.steps{counter-reset:s; display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin:0; padding:0}
.steps li{list-style:none; position:relative; background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:26px 24px 24px; box-shadow:var(--shadow-sm)}
.steps li b{display:block; margin-bottom:6px; font-family:var(--f-display); font-size:17px; letter-spacing:-.01em}
.steps li .n{display:block; font-family:var(--f-display); font-weight:800; font-size:44px; line-height:1; letter-spacing:-.04em; color:transparent; -webkit-text-stroke:1.5px var(--line2); margin-bottom:14px}
.band{background:var(--paper2); border-block:1px solid var(--line)}

/* auth */
.auth-page{position:relative; padding:56px 0 80px; background:radial-gradient(700px 360px at 50% 0%,rgba(31,111,99,.08),transparent 70%)}
.auth{position:relative; max-width:440px; margin:56px auto; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); padding:34px; box-shadow:var(--shadow-lg)}
.auth h1{font-size:30px; margin-bottom:6px}
.auth .sub{color:var(--muted); margin:0 0 24px}
.field{margin-bottom:16px}
.field label{display:block; font-weight:650; font-size:13.5px; margin-bottom:6px}
.field input{width:100%; padding:12px 14px; border:1px solid var(--line2); border-radius:11px; font:inherit; background:var(--paper); transition:border-color .15s, box-shadow .15s, background .15s}
.field input:focus{outline:none; border-color:var(--accent); box-shadow:0 0 0 4px rgba(31,111,99,.14); background:#fff}
/* Password fields: the eye button (static/js/password-toggle.js) sits inside the input. */
.pw-wrap{position:relative}
.field .pw-wrap input{padding-right:46px}
.pw-eye{position:absolute; top:50%; right:4px; transform:translateY(-50%); width:38px; height:38px;
  display:inline-flex; align-items:center; justify-content:center; padding:0; border:0; border-radius:8px;
  background:transparent; color:var(--muted); cursor:pointer}
.pw-eye:hover{color:var(--ink); background:var(--paper2)}
.pw-eye:focus-visible{outline:2px solid var(--accent); outline-offset:0}
.pw-eye svg{width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round}
.pw-eye[aria-pressed="true"]{color:var(--accent)}
.field .help{font-size:12.5px; color:var(--muted); margin-top:6px}
.field .help ul{margin:4px 0 0; padding-left:16px}
.errors{background:#fbf1f1; border:1px solid #ebcfcf; color:#8a2b2b; border-radius:11px; padding:11px 13px; font-size:13.5px; margin-bottom:16px}
.errors ul{margin:0; padding-left:18px}
.auth .btn{width:100%; justify-content:center; padding:13px 18px}
.auth .alt{text-align:center; margin:20px 0 0; font-size:14.5px; color:var(--muted)}
/* "Continue with Google" (static/js/google-signin.js). Google draws the button in an iframe;
   the slot keeps its height so the form doesn't jump when it arrives. */
.google-auth{margin:0 0 4px}
.google-btn{min-height:44px; display:flex; justify-content:center}
.or-line{display:flex; align-items:center; gap:12px; margin:16px 0 20px; color:var(--faint); font-size:13px}
.or-line::before, .or-line::after{content:""; flex:1; height:1px; background:var(--line)}

/* dashboard */
.page-head{display:flex; align-items:flex-end; gap:16px; flex-wrap:wrap; margin-bottom:28px}
.page-head h1{font-size:clamp(30px,3.6vw,40px); margin:0}
.newform{display:flex; gap:8px; margin-left:auto}
.newform input{padding:11px 14px; border:1px solid var(--line2); border-radius:12px; font:inherit; min-width:280px; background:#fff}
.newform input:focus{outline:none; border-color:var(--accent); box-shadow:0 0 0 4px rgba(31,111,99,.14)}
.grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:18px}
.proj{background:var(--surface); border:1px solid var(--line); border-radius:var(--r); overflow:hidden; display:flex; flex-direction:column; box-shadow:var(--shadow-sm); transition:transform .3s var(--ease), box-shadow .3s}
.proj:hover{transform:translateY(-3px); box-shadow:var(--shadow)}
/* My projects: 2D plans | 3D models */
.dash-tabs{display:inline-flex; gap:4px; padding:4px; background:var(--paper2); border:1px solid var(--line); border-radius:13px; margin:0 0 24px}
.dash-tabs a{padding:9px 16px; border-radius:10px; color:var(--muted); font-weight:650; text-decoration:none; transition:background .15s, color .15s}
.dash-tabs a span{display:inline-block; min-width:20px; margin-left:6px; padding:0 7px; border-radius:999px; background:rgba(15,27,36,.07); color:var(--muted); font-size:12px; text-align:center}
.dash-tabs a:hover{color:var(--ink)}
.dash-tabs a[aria-current="page"]{color:var(--ink); background:#fff; box-shadow:var(--shadow-sm)}
.dash-tabs a[aria-current="page"] span{background:var(--accent); color:#fff}
.dash-sub{font-size:20px; margin:38px 0 14px}
.vis{display:inline-block; padding:1px 8px; border-radius:999px; font-size:11.5px; font-weight:650; background:var(--paper2); color:var(--muted)}
.vis-public{background:#e3f1ea; color:#2f6b4c}
.vis-people{background:#e4ecf5; color:#2b5b86}
.proj details.rename{display:inline-block}
.proj details.rename summary{list-style:none; cursor:pointer}
.proj details.rename summary::-webkit-details-marker{display:none}
.proj details.rename form{display:flex; gap:6px; margin-top:6px}
.proj details.rename input{flex:1; min-width:0; padding:6px 9px; border:1px solid var(--line2); border-radius:8px; font:inherit; font-size:13px}
/* every card gets the same frame whatever the shape of its drawing, so a row lines up */
.proj .thumb{position:relative; display:block; aspect-ratio:4/3; overflow:hidden; background:#fff; border-bottom:1px solid var(--line)}
.proj .thumb img{position:absolute; inset:10px; width:calc(100% - 20px); height:calc(100% - 20px); object-fit:contain; display:block; transition:transform .4s var(--ease)}
.proj:hover .thumb img{transform:scale(1.03)}
.proj .thumb .empty{position:absolute; inset:0; display:grid; place-items:center}
.proj .thumb .empty{color:var(--muted); font-size:13px; background:var(--paper2)}
.proj .body{padding:15px 16px; display:flex; flex-direction:column; gap:3px; flex:1}
.proj .body a.title{font-family:var(--f-display); font-weight:700; letter-spacing:-.01em; color:var(--ink); text-decoration:none}
.proj .body a.title:hover{color:var(--accent)}
.proj .meta{font-size:12.5px; color:var(--muted)}
.proj .actions{display:grid; grid-template-columns:1fr 1fr; gap:6px; padding:12px 14px; border-top:1px solid var(--line); background:var(--paper)}
.proj .actions .btn, .proj .actions form, .proj .actions form .btn{width:100%; justify-content:center; text-align:center}
.proj .actions form{display:block}
.empty-state{background:#fff; border:1px dashed var(--line2); border-radius:var(--r-lg); padding:56px 32px; text-align:center; color:var(--muted)}
.messages{list-style:none; padding:0; margin:0 0 18px}
.messages li{background:var(--accent-soft); border:1px solid #cfe3de; border-radius:11px; padding:10px 14px; font-size:14px}

/* ===========================================================================
   Content pages (plot sizes, Vastu, guides, privacy): a dark page hero with the
   breadcrumbs, heading and buttons, then the article on paper. These pages carry
   the search traffic, so they have to read well on a phone above all.
   =========================================================================== */
.skip{position:absolute; left:-9999px; top:0; background:var(--accent); color:#fff; padding:10px 14px; border-radius:0 0 8px 0; z-index:100}
.skip:focus{left:0}

.page-hero{padding:64px 0 60px; overflow:hidden}
.page-hero .wrap{max-width:900px; margin-inline:auto; width:min(1180px,92vw)}
.page-hero h1{font-size:clamp(32px,4.6vw,54px); margin:6px 0 16px}
.page-hero .lede{font-size:clamp(17px,1.6vw,19.5px); line-height:1.6; color:var(--on-dark2); max-width:62ch; margin:0}
.page-hero .cta{display:flex; gap:12px; flex-wrap:wrap; margin-top:28px}
.page-hero .crumbs{color:var(--on-dark3)}
.page-hero .crumbs a{color:var(--on-dark2)}
.page-hero .crumbs a:hover{color:#fff}
.page-hero .crumbs [aria-current]{color:var(--on-dark)}

.article{padding:48px 0 72px; max-width:780px}
.page-hero + .article{padding-top:52px}
.article > h1{margin-bottom:.35em}
.article h2{margin:52px 0 14px; font-size:clamp(23px,2.4vw,30px)}
.article section:first-child > h2, .article > h2:first-child{margin-top:0}
.article h3{font-size:18px}
.article p{margin:0 0 16px; font-size:16.5px; line-height:1.7; color:var(--ink2)}
.article p.lede{font-size:19px; color:var(--muted); margin-bottom:26px}
.article p.muted{color:var(--muted); font-size:15px}
.article > .cta{display:flex; gap:12px; flex-wrap:wrap; margin:0 0 30px}
.article a{text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:3px}
.article a:hover{text-decoration-thickness:2px}
.article .btn, .article .link-card, .article .plot-card, .crumbs a{text-decoration:none}

/* breadcrumbs */
.crumbs{font-size:13.5px; color:var(--muted); margin:0 0 18px; display:flex; gap:8px; flex-wrap:wrap; align-items:center}
.crumbs a{color:var(--muted); text-decoration:none}
.crumbs a:hover{color:var(--accent)}

/* fact strip */
.facts{display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:10px; margin:0 0 16px; padding:0}
.facts > div{background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:14px 16px; box-shadow:var(--shadow-sm)}
.facts dt{font-size:11.5px; color:var(--muted); text-transform:uppercase; letter-spacing:.08em; font-weight:650; margin-bottom:4px}
.facts dd{margin:0; font-family:var(--f-display); font-weight:750; font-size:17px; letter-spacing:-.01em}
.page-hero .facts{margin-top:30px}
.page-hero .facts > div{background:rgba(255,255,255,.05); border-color:rgba(255,255,255,.1); box-shadow:none}
.page-hero .facts dt{color:var(--on-dark3)}
.page-hero .facts dd{color:#fff}

/* tables */
.table-wrap{overflow-x:auto; border:1px solid var(--line); border-radius:var(--r); background:var(--surface); margin:0 0 16px; box-shadow:var(--shadow-sm)}
.table-wrap table{border-collapse:collapse; width:100%; font-size:15px; min-width:440px}
.table-wrap th, .table-wrap td{text-align:left; padding:13px 16px; border-bottom:1px solid var(--line); vertical-align:top}
.table-wrap thead th{background:var(--paper); font-size:11.5px; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); white-space:nowrap; font-weight:700}
.table-wrap tbody tr{transition:background .15s}
.table-wrap tbody tr:hover{background:#fbfaf7}
.table-wrap tbody tr:last-child th, .table-wrap tbody tr:last-child td{border-bottom:0}
.table-wrap tbody th{font-weight:650}
.rnote{display:block; font-weight:400; font-size:12.5px; color:var(--muted); margin-top:3px}

/* lists */
.article ul.tick{list-style:none; padding:0; margin:0 0 18px}
.article ul.tick li{position:relative; padding:0 0 10px 30px; font-size:16.5px; line-height:1.65; color:var(--ink2)}
.article ul.tick li::before{content:""; position:absolute; left:0; top:4px; width:18px; height:18px; border-radius:50%; background:var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f6f63' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/11px no-repeat}

/* card grids */
.plot-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(170px,1fr)); gap:12px}
.plot-card{position:relative; display:flex; flex-direction:column; gap:3px; background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:18px 18px 16px; color:var(--ink); text-decoration:none;
  box-shadow:var(--shadow-sm); transition:transform .3s var(--ease), box-shadow .3s, border-color .3s; overflow:hidden}
.plot-card::after{content:"→"; position:absolute; right:16px; top:16px; color:var(--faint); transition:transform .2s, color .2s}
.plot-card:hover{border-color:var(--accent); box-shadow:var(--shadow); transform:translateY(-3px)}
.plot-card:hover::after{transform:translateX(3px); color:var(--accent)}
.plot-card .dims{font-family:var(--f-display); font-weight:800; font-size:22px; letter-spacing:-.03em}
.plot-card .area{font-size:13px; color:var(--accent); font-weight:650}
.plot-card .bhk{font-size:12.5px; color:var(--muted)}

.link-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:12px}
.link-grid.wide{grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}
.link-card{position:relative; display:block; background:var(--surface); border:1px solid var(--line); border-radius:var(--r);
  padding:16px 44px 16px 18px; color:var(--ink); font-weight:650; font-size:15px; text-decoration:none; box-shadow:var(--shadow-sm); transition:transform .3s var(--ease), box-shadow .3s, border-color .3s}
.link-card::after{content:"→"; position:absolute; right:16px; top:16px; color:var(--faint); transition:transform .2s, color .2s}
.link-card:hover{border-color:var(--accent); box-shadow:var(--shadow); transform:translateY(-2px)}
.link-card:hover::after{transform:translateX(3px); color:var(--accent)}
.link-card.tall{display:flex; flex-direction:column; gap:6px; padding:20px 44px 20px 20px}
.link-card.tall b{font-family:var(--f-display); letter-spacing:-.01em}
.link-card.tall span{font-weight:400; font-size:14px; line-height:1.5}

/* call to action band: a dark card with a glow */
.cta-band{position:relative; overflow:hidden; color:var(--on-dark); border-radius:var(--r-lg); padding:36px 36px 34px; margin:56px 0;
  background:radial-gradient(500px 260px at 90% 0%,rgba(143,208,255,.22),transparent 65%), radial-gradient(420px 240px at 0% 100%,rgba(255,212,92,.14),transparent 65%), linear-gradient(160deg,#10283a,var(--navy));
  box-shadow:var(--shadow-lg)}
.cta-band h2{margin:0 0 10px; font-size:clamp(22px,2.4vw,28px); color:#fff}
.cta-band p{margin:0 0 22px; color:var(--on-dark2); max-width:60ch; font-size:16px}
.cta-band .cta{display:flex; gap:10px; flex-wrap:wrap}
.cta-band .btn.primary{background:var(--yel); border-color:var(--yel); color:#231c03}
.cta-band .btn.primary:hover{background:#ffdc75}
.cta-band .btn:not(.primary){background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.22); color:#fff; box-shadow:none}
.cta-band .btn:not(.primary):hover{background:rgba(255,255,255,.12)}

/* faq */
.faq{margin-top:56px}
.faq details{border:1px solid var(--line); border-radius:var(--r); background:var(--surface); margin-bottom:10px; box-shadow:var(--shadow-sm); transition:border-color .2s, box-shadow .2s}
.faq details[open]{border-color:var(--line2); box-shadow:var(--shadow)}
.faq summary{cursor:pointer; padding:18px 20px; list-style:none; display:flex; align-items:center; gap:12px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:""; flex:none; margin-left:auto; width:26px; height:26px; border-radius:50%; background:var(--paper2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f1b24' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/13px no-repeat; transition:transform .25s var(--ease), background-color .2s}
.faq details[open] summary::after{transform:rotate(45deg); background-color:var(--yel)}
.faq summary h3{margin:0; font-size:16.5px; font-weight:700}
.faq details p{margin:0; padding:0 20px 18px; color:var(--muted); font-size:15.5px; line-height:1.65}

.related{margin-top:56px}
.related .link-grid{margin-top:6px}

/* footer: dark, four columns, then the small print */
.site-foot{position:relative; background:var(--navy); color:var(--on-dark2); padding:72px 0 28px; font-size:14px; display:block}
.site-foot::before{content:""; position:absolute; left:0; right:0; top:0; height:1px; background:linear-gradient(90deg,transparent,rgba(255,212,92,.5),transparent)}
.site-foot .wrap{display:block}
.site-foot .foot-grid{display:grid; grid-template-columns:1.7fr 1fr 1fr 1fr; gap:36px; padding-bottom:40px; align-items:start}
.foot-grid > div > b:first-child{display:block; color:#fff; margin-bottom:12px; font-family:var(--f-display); font-size:14px; letter-spacing:-.005em}
.foot-grid .foot-brand{display:flex; align-items:center; gap:10px; color:#fff; font-family:var(--f-display); font-weight:800; font-size:18px; letter-spacing:-.02em; margin-bottom:14px; text-decoration:none}
.foot-grid a{display:block; color:var(--on-dark2); text-decoration:none; padding:4px 0; transition:color .15s}
.foot-grid a:hover{color:#fff}
.foot-grid p{margin:0; font-size:14px; line-height:1.6}
.foot-grid .muted{color:var(--on-dark3)}
.foot-grid p.foot-contact{margin-top:14px}
.foot-grid .foot-contact a{display:inline; color:var(--yel); padding:0}
.foot-social{display:flex; flex-wrap:wrap; gap:8px; margin-top:16px}
.foot-grid .foot-social a{display:inline-flex; flex:none; align-items:center; justify-content:center; width:36px; height:36px;
  padding:0; border:1px solid rgba(255,255,255,.14); border-radius:999px; color:var(--on-dark); background:rgba(255,255,255,.04); transition:all .2s}
.foot-grid .foot-social a:hover{color:#231c03; border-color:var(--yel); background:var(--yel)}
.foot-social svg{width:16px; height:16px; fill:currentColor}
.foot-base{border-top:1px solid rgba(255,255,255,.08); padding-top:22px; font-size:13px; color:var(--on-dark3); display:flex !important; flex-wrap:wrap; gap:8px 14px; align-items:center}
.foot-base span{margin-right:auto}
.foot-base a{color:var(--on-dark2); text-decoration:none}
.foot-base a:hover{color:#fff}

@media (max-width:860px){
  .section{padding:64px 0}
  .features,.steps{grid-template-columns:1fr}
  .newform{margin-left:0; width:100%}
  .newform input{flex:1; min-width:0}
  .page-hero{padding:44px 0 40px}
  .article{padding-top:30px}
  .article h2{margin-top:40px}
  .site-foot .foot-grid{grid-template-columns:1fr 1fr; gap:28px}
  .cta-band{padding:28px 24px}
  .sec-head{margin-bottom:32px}
}
@media (max-width:620px){
  .page-head h1{font-size:28px}
  .grid{grid-template-columns:1fr}
}
@media (max-width:520px){
  .site-foot .foot-grid{grid-template-columns:1fr}
  .plot-grid{grid-template-columns:1fr 1fr}
  .article p, .article ul.tick li{font-size:16px}
}

/* "New" pill */
.new-pill{display:inline-block; background:var(--yel); color:#3a2e06; border-radius:999px; padding:0 7px; font-size:10.5px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; vertical-align:1px; line-height:1.7}

/* Support page (/support/) */
.donate [hidden]{display:none !important}
.donate{display:grid; grid-template-columns:1.1fr 1fr; gap:48px; align-items:start; padding:64px 0 80px}
.donate-cup{font-size:48px; line-height:1}
.donate h1{font-size:clamp(32px,4vw,46px); margin:12px 0 14px}
.donate .lede{font-size:18px; color:var(--muted); margin:0 0 18px}
.donate-signedout{display:inline-block; background:#eef6f1; color:#2c5e3f; border:1px solid #cfe3d6; border-radius:10px; padding:8px 12px; font-size:14.5px; margin:0 0 16px}
.donate-points{margin:0; padding-left:20px; color:var(--ink)}
.donate-points li{margin:7px 0}
.donate-card{background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); padding:26px; box-shadow:var(--shadow-lg); display:flex; flex-direction:column; gap:14px}
.donate-picks{border:0; margin:0; padding:0; display:grid; grid-template-columns:repeat(4,1fr); gap:8px}
.donate-picks legend{font-weight:700; margin-bottom:10px; padding:0}
.pick{position:relative; cursor:pointer}
.pick input{position:absolute; opacity:0; inset:0; margin:0; cursor:pointer}
.pick span{display:flex; flex-direction:column; align-items:center; gap:2px; padding:13px 4px; border:1.5px solid var(--line); border-radius:12px; background:var(--paper); text-align:center; transition:all .15s}
.pick small{color:var(--muted); font-size:12.5px}
.pick input:checked + span{border-color:var(--accent); background:var(--accent-soft); box-shadow:0 0 0 3px rgba(31,111,99,.14)}
.pick input:focus-visible + span{outline:2px solid var(--accent); outline-offset:2px}
.donate-card .field{display:flex; flex-direction:column; gap:5px; margin:0; font-weight:650; font-size:14px}
.donate-card .field small{font-weight:400; color:var(--muted)}
.donate-card .field input, .donate-card .field textarea{font:inherit; font-weight:400; padding:11px 13px; border:1px solid var(--line2); border-radius:11px; background:#fff; color:var(--ink)}
.donate-card .field textarea{resize:vertical}
.donate-pay{justify-content:center; padding:13px; font-size:16px}
.donate-pay.is-busy{opacity:.7; cursor:progress}
.donate-error{margin:0; color:var(--warn); background:#fbf1f1; border:1px solid #ebcfcf; border-radius:10px; padding:9px 12px; font-size:14px}
.donate-safe{margin:0; font-size:12.5px; text-align:center}
.donate-thanks{text-align:center; align-items:center}
.donate-thanks h2{margin:0}
.donate-thanks:focus{outline:none}
@media (max-width:860px){
  .donate{grid-template-columns:1fr; gap:24px; padding:32px 0 48px}
}
@media (max-width:420px){ .donate-picks{grid-template-columns:repeat(2,1fr)} }

/* Sign-in, sign-up and donating: the cover shown while the server (and its sleeping database) answers. */
.auth, .donate-card{position:relative}
.wait-cover{position:absolute; inset:0; z-index:2; border-radius:inherit; background:rgba(255,255,255,.96);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; padding:30px; text-align:center}
.wait-cover[hidden]{display:none}
.wait-cover b{font-size:18px; color:var(--ink)}
.wait-cover p{margin:0; max-width:300px; min-height:3em; color:var(--muted); font-size:14px; line-height:1.5}
.wait-spin{width:34px; height:34px; border-radius:50%; border:3px solid var(--line); border-top-color:var(--accent); animation:wait-spin .8s linear infinite}
@keyframes wait-spin{to{transform:rotate(360deg)}}
/* Donating: Preparing checkout → Payment → Confirming */
.wait-steps{list-style:none; margin:4px 0 6px; padding:0; display:flex; gap:6px; flex-wrap:wrap; justify-content:center; font-size:12.5px}
.wait-steps li{padding:3px 10px; border-radius:999px; background:var(--paper2); color:var(--muted); border:1px solid var(--line)}
.wait-steps li.done{background:#e3f1ea; color:#2f6b4c; border-color:#cfe3de}
.wait-steps li.done::before{content:"✓ "}
.wait-steps li.now{background:var(--accent); color:#fff; border-color:var(--accent); font-weight:650}

/* Account page (/accounts/) */
.acct{max-width:700px; margin:48px auto 72px; display:flex; flex-direction:column; gap:16px}
.acct-card{background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); padding:22px 24px; box-shadow:var(--shadow-sm)}
.acct-card h2{font-size:18px; margin:0 0 12px}
.acct-head{display:flex; align-items:center; gap:18px}
.acct-head h1{font-size:28px; margin:0}
.acct-head p{margin:2px 0 0}
.acct-email{font-weight:650; word-break:break-all}
.acct-avatar{flex:none; width:64px; height:64px; border-radius:50%; background:linear-gradient(135deg,var(--accent2),var(--accent)); color:#fff;
  font-family:var(--f-display); font-size:28px; font-weight:800; display:flex; align-items:center; justify-content:center; box-shadow:0 10px 24px -10px rgba(31,111,99,.6)}
.acct-stats{display:grid; grid-template-columns:repeat(3,1fr); gap:12px}
.acct-stats a{display:flex; flex-direction:column; gap:2px; text-decoration:none; color:var(--muted); padding:18px 20px}
.acct-stats a:hover{border-color:var(--accent)}
.acct-stats b{font-family:var(--f-display); font-size:28px; letter-spacing:-.03em; color:var(--ink)}
.acct-actions{display:flex; gap:10px; flex-wrap:wrap}
.acct-actions form{margin:0}
.acct-list{list-style:none; margin:0; padding:0}
.acct-list li{display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; padding:11px 0; border-top:1px solid var(--paper2)}
.acct-list li:first-child{border-top:0; padding-top:0}
.acct-links a{font-weight:650; color:var(--accent)}
.acct-social{margin-top:14px}
.acct-coffee{display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap}
.acct-coffee p{margin:0}
/* Account → Sign-in: password (set / change) and Google (link). */
.acct-signin{position:relative; scroll-margin-top:84px}
.acct-sub{padding:12px 0}
.acct-sub + .acct-sub{border-top:1px solid var(--paper2)}
.acct-sub summary, .acct-sub-row{display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap}
.acct-sub summary{cursor:pointer; list-style:none}
.acct-sub summary::-webkit-details-marker{display:none}
.acct-sub summary > span:first-child, .acct-sub-row > span:first-child{display:flex; flex-direction:column; gap:2px; flex:1 1 260px}
.acct-sub .muted{font-size:14px}
.acct-sub-act{font-weight:650; color:var(--accent); white-space:nowrap}
.acct-sub[open] .acct-sub-act{color:var(--muted)}
.acct-sub-done{font-weight:650; color:var(--accent)}
.acct-sub form{margin-top:14px}
.acct-sub .google-auth{margin-top:12px}
.acct-sub .google-btn{justify-content:flex-start}
.ok-note{background:#eef7f2; border:1px solid #c9e3d3; color:#1f5e3d; border-radius:10px; padding:10px 12px; font-size:14px; margin-bottom:8px}
.acct-danger{border-color:#ebcfcf}
.acct-danger summary{cursor:pointer; list-style:none; display:flex; flex-direction:column; gap:2px}
.acct-danger summary::-webkit-details-marker{display:none}
.acct-danger summary h2{color:var(--warn); margin:0}
.acct-danger summary h2::after{content:" ▸"; font-size:13px}
.acct-danger[open] summary h2::after{content:" ▾"}
.acct-danger form{position:relative; margin-top:14px}
.acct-danger .btn.danger{width:100%; justify-content:center}
@media (max-width:520px){
  .acct{margin-top:24px}
  .acct-stats{grid-template-columns:1fr 1fr 1fr; gap:8px}
  .acct-stats a{padding:12px}
  .acct-stats b{font-size:22px}
  .acct-head{gap:14px}
  .acct-avatar{width:52px; height:52px; font-size:23px}
}

@media (prefers-reduced-motion:reduce){
  *, *::before, *::after{animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; scroll-behavior:auto !important}
  .js [data-rv]{opacity:1; transform:none}
  .wait-spin{animation-duration:2.4s !important; animation-iteration-count:infinite !important}
}
