/* TownLayers (townlayers.com): the Orange Drip palette, as in the app */
:root { --night: #051821; --deep: #1A4645; --teal: #266867; --orange: #F58800; --gold: #F8BC24;
  --bg: #eef3f2; --panel: #fff; --ink: #051821; --muted: #52706e; --line: #d3e0de;
  --shadow: 0 1px 2px rgba(5,24,33,.06), 0 6px 20px rgba(5,24,33,.08); }
* { box-sizing: border-box; }
[hidden] { display: none !important; }  /* even on .row and other display: flex boxes */
html, body { margin: 0; }
body { font: 16px/1.55 "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif; background: var(--bg); color: var(--ink); }
a { color: var(--teal); }
.nav { display: flex; align-items: center; gap: 22px; padding: 14px 28px; background: var(--night); color: #e6f0ef; position: sticky; top: 0; z-index: 10; }
.nav .logo { font-weight: 800; font-size: 21px; letter-spacing: -.01em; color: #fff; text-decoration: none; }
.nav .logo span { color: var(--gold); }
.nav .grow { flex: 1; }
.nav a { color: #c6dbd9; text-decoration: none; font-size: 15px; }
.nav a:hover { color: #fff; }
.nav .cta { background: var(--orange); color: var(--night); padding: 8px 16px; border-radius: 999px; font-weight: 700; }
.nav .cta:hover { background: var(--gold); color: var(--night); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 56px 24px; }
h1, h2 { line-height: 1.1; letter-spacing: -.01em; }
.btn { display: inline-block; border: 0; border-radius: 999px; padding: 14px 28px; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  background: var(--orange); color: var(--night); transition: background .15s, transform .15s; }
.btn:hover { background: var(--gold); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--deep); border: 1.5px solid var(--teal); }
.btn.ghost:hover { background: #e5f0ee; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 6px; }
.muted { color: var(--muted); }
.plan { display: flex; flex-direction: column; gap: 10px; }
.plan .price { font-size: 38px; font-weight: 800; }
.plan .price small { font-size: 15px; color: var(--muted); font-weight: 500; }
.plan ul { margin: 4px 0 12px; padding-left: 20px; flex: 1; }
.plan.best { border: 2px solid var(--orange); }
.tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: #fdeccb; color: var(--deep); padding: 3px 10px; border-radius: 999px; }
input, select { font: inherit; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 10px 0; }
.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 30px 20px 50px; }
@media (max-width: 640px) { .nav { gap: 14px; padding: 12px 16px; } .nav .hide-sm { display: none; } .wrap { padding: 36px 16px; } }
/* home: the laser-drawn city behind the headline (studio/app/splash.js) */
.splash { position: relative; min-height: max(520px, calc(100svh - 54px - 64px)); padding: 20px 0 76px; background: var(--night); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.splash canvas { position: absolute; inset: -4%; width: 108%; height: 108%; animation: drift 40s ease-in-out infinite alternate; }
@keyframes drift { to { transform: scale(1.06) translate(-1.5%, 1%); } }
.splash-shade { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(5,24,33,.82) 0%, rgba(5,24,33,.55) 38%, rgba(5,24,33,.15) 75%); }
.splash-inner { position: relative; text-align: center; color: #fff; padding: 24px; max-width: 1080px; }
.splash-inner > p { max-width: 560px; }
.splash-logo { letter-spacing: .4em; font-weight: 700; font-size: 13px; color: var(--gold); margin-bottom: 18px; }
.splash h1 { margin: 0; font-size: clamp(40px, 7vw, 78px); text-transform: uppercase; font-weight: 800; }
.splash p { margin: 18px auto 30px; max-width: 540px; color: #c6dbd9; font-size: 17px; }
.splash p a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.splash p a:hover { color: #fff; }
.splash .row { justify-content: center; }
.splash .row + .row { margin-top: 12px; }
.splash .btn.ghost { color: #e6f0ef; border-color: #4f9391; }
.splash .btn.ghost:hover { background: rgba(255,255,255,.08); }
.splash-search { display: flex; gap: 10px; max-width: 600px; margin: 0 auto; }
.splash-search input { flex: 1; min-width: 0; font: inherit; font-size: 17px; padding: 14px 18px; border-radius: 14px; border: 2px solid var(--orange); background: #fff; color: var(--night); }
.splash-search input:focus { outline: 3px solid rgba(248,188,36,.4); }
.splash-search .btn { border-radius: 14px; }
.splash-small { margin-top: 12px; font-size: 13px; color: #8fb1ae; }
.splash-small a { color: #fff; }
.kinds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 22px auto 0; text-align: left; }
.kind { display: flex; flex-direction: column; background: rgba(11,37,48,.92); border: 1px solid #1f3d49; border-radius: 16px; padding: 12px 12px 14px; color: #fff; text-decoration: none; transition: border-color .15s, transform .15s; }
.kind:hover { border-color: var(--gold); transform: translateY(-2px); }
.kind img { width: 100%; height: 160px; object-fit: contain; background: #e4ebe9; border-radius: 10px; padding: 4px; box-sizing: border-box; margin-bottom: 10px; }
.kind b { font-size: 16px; }
.kind em { font-style: normal; font-size: 10px; font-weight: 800; background: var(--gold); color: var(--night); border-radius: 999px; padding: 2px 7px; margin-left: 4px; vertical-align: 2px; }
.kind span { color: #a9bcc3; font-size: 13px; line-height: 1.45; margin-top: 4px; }
@media (max-width: 900px) { .kinds { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .kind img { height: 100px; } .splash-search input { font-size: 16px; } }
.splash-note { margin-top: 20px; font-size: 13px; color: #8fb1ae; }
.splash.leaving, .splash.hidden { opacity: 1; transform: none; display: flex !important; }
/* about: the demo video */
.about .lead { font-size: 18px; max-width: 720px; }
.about .demo { display: block; width: 100%; aspect-ratio: 16 / 9; margin: 28px 0 40px; border-radius: 18px; background: var(--night); box-shadow: var(--shadow); }
/* the menu bar on phones: one line, the studio button shortened, a long account email cut off */
.nav a { white-space: nowrap; flex-shrink: 0; }
#navAccount.email { flex-shrink: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.nav .show-xs { display: none; }
@media (max-width: 560px) { .nav { gap: 12px; padding: 12px 14px; } .nav .logo { font-size: 18px; } .nav a { font-size: 14px; }
  .nav .cta { padding: 6px 13px; } .nav .hide-xs { display: none; } .nav .show-xs { display: inline; } #navAccount.email { max-width: 84px; } }
/* terms, privacy, contact */
.legal { max-width: 780px; }
.legal h2 { margin-top: 34px; font-size: 22px; }
.legal h3 { margin: 22px 0 4px; font-size: 17px; }
.legal p, .legal li { color: #23413f; }
.legal ul { padding-left: 22px; }
.legal li { margin: 4px 0; }
.legal .updated { color: var(--muted); font-size: 14px; }
.legal table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 8px 0; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.legal th { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.draft { background: #fdeccb; border: 1.5px solid var(--orange); border-radius: 14px; padding: 14px 18px; margin: 0 0 26px; font-size: 15px; }
mark.todo { background: #fff2a8; color: var(--ink); padding: 0 3px; border-radius: 4px; }
.foot a { color: var(--muted); }
@media (max-width: 640px) { .legal table, .legal thead, .legal tbody, .legal tr, .legal th, .legal td { display: block; } .legal thead { display: none; } .legal td { border: 0; padding: 2px 0; } .legal tr { border-bottom: 1px solid var(--line); padding: 8px 0; } }
/* the Updates page: one folding card per update */
.updates { max-width: 820px; }
.updates .lead { font-size: 18px; }
.update { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); margin: 0 0 16px; }
.update summary { display: flex; align-items: baseline; gap: 16px; padding: 18px 24px; cursor: pointer; list-style: none; }
.update summary::-webkit-details-marker { display: none; }
.update .when { color: var(--muted); font-size: 14px; white-space: nowrap; min-width: 150px; }
.update .what { flex: 1; font-weight: 700; font-size: 18px; }
.update .chev { width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); align-self: center; transition: transform .15s; flex-shrink: 0; }
.update[open] .chev { transform: rotate(-135deg); }
.update summary:hover .what { color: var(--teal); }
.update .body { padding: 0 24px 20px; line-height: 1.6; }
.update .body p:first-child { margin-top: 0; }
.update .body img { display: block; width: 100%; height: auto; border-radius: 12px; margin: 0 0 18px; }
@media (max-width: 560px) { .update summary { flex-wrap: wrap; gap: 4px 12px; padding: 16px 18px; } .update .when { min-width: 0; width: 100%; order: -1; } .update .body { padding: 0 18px 18px; } }
/* the footer's social links (Instagram and TikTok are not open yet) */
.social { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 14px; font-size: 14px; }
.social a, .social span { display: inline-flex; align-items: center; gap: 6px; }
.social a { color: var(--ink); font-weight: 600; text-decoration: none; }
.social a:hover { color: var(--orange); }
.social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.social .soon { opacity: .6; cursor: default; }
.social .soon em { font-style: normal; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; background: var(--line); padding: 1px 7px; border-radius: 999px; }
/* home: the cue at the bottom of the splash that there's more below (the splash also stops 64px
   short of the screen's bottom, so the top of "How it works" shows) */
html { scroll-behavior: smooth; }
.splash-more { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; color: #8fb1ae; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.splash-more:hover { color: var(--gold); }
.splash-more svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; animation: nudge 2.2s ease-in-out infinite; }
@keyframes nudge { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .splash-more svg { animation: none; } }
@media (max-height: 640px) { .splash-more { display: none; } }
/* the front page's file of the week */
.weekly { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.weekly-art { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 24px; display: flex; align-items: center; justify-content: center; }
.weekly-art img { display: block; max-width: 100%; max-height: 420px; }
.weekly .kicker { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 800; color: var(--orange); }
.weekly h2 { font-size: 34px; margin: 8px 0 12px; }
.weekly .muted { margin: 0 0 22px; }
@media (max-width: 760px) { .weekly { grid-template-columns: 1fr; gap: 24px; } .weekly h2 { font-size: 28px; } }
/* the top bar's way in for real estate agents: a gold outline beside the orange studio button */
.nav .realtor { border: 1.5px solid var(--gold); color: var(--gold); padding: 6.5px 14px; border-radius: 999px; font-weight: 700; }
.nav .realtor:hover { background: var(--gold); color: var(--night); }
@media (max-width: 560px) { .nav .realtor { padding: 4.5px 11px; } }
/* the page for real estate agents (realtors.html) */
.rl-hero { background: var(--night); color: #e6f0ef; }
.rl-hero-in { max-width: 1100px; margin: 0 auto; padding: 56px 24px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.rl-kicker { color: var(--gold); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
.rl-hero h1 { font-size: clamp(34px, 5vw, 54px); margin: 10px 0 14px; color: #fff; }
.rl-hero p { font-size: 18px; color: #c6dbd9; max-width: 560px; }
.rl-hero .btn.ghost { color: #e6f0ef; border-color: #4f9391; }
.rl-hero .btn.ghost:hover { background: rgba(255,255,255,.08); }
.rl-small { margin-top: 8px; font-size: 14px; color: #8fb3b0; }
.rl-art img { width: 100%; max-width: 440px; display: block; margin: 0 auto; border-radius: 18px; background: #fff; padding: 18px; }
.rl-gifts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 22px; }
.rl-gifts figure { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.rl-gifts img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.rl-gifts figcaption { display: flex; flex-direction: column; gap: 3px; margin-top: 10px; font-size: 14px; }
.rl-gifts figcaption span { color: var(--muted); }
.rl-gifts figcaption em { font-style: normal; font-weight: 700; color: var(--deep); }
.rl-why { padding-top: 0; }
.rl-fine { text-align: center; font-size: 13px; }
@media (max-width: 900px) { .rl-hero-in { grid-template-columns: 1fr; padding: 36px 16px; } .rl-art { order: -1; } .rl-art img { max-width: 260px; }
  .rl-gifts { grid-template-columns: repeat(2, 1fr); } }
/* the narrowest phones: room for the Realtors button beside Pricing, Sign in and the studio */
@media (max-width: 400px) { .nav { gap: 9px; padding: 12px 10px; } .nav .logo { font-size: 16px; } .nav a { font-size: 13.5px; }
  .nav .realtor { padding: 4px 9px; } .nav .cta { padding: 6px 10px; } }
/* the account page: a name and logo for the back of gifts (js/brand.js) */
#brandCard .bf { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#brandCard .bf label { display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--muted); }
#brandCard .bf .w { grid-column: 1 / -1; }
#brandCard input:not([type=file]):not([type=range]):not([type=checkbox]) { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
#brandCard .bl { display: grid; grid-template-columns: 1fr 240px; gap: 18px; margin-top: 16px; align-items: start; }
#brandCard .small { font-size: 13px; margin: 4px 0 8px; }
#brandCard .bp { background: #e2c193; border-radius: 12px; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 18px; text-align: center; color: #3a200c; font-family: Georgia, serif; }
#brandCard .bp img { max-width: 75%; max-height: 45%; }
#brandCard .bp .t1 { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
#brandCard .bp .t2 { font-size: 19px; font-weight: 700; }
#brandCard .bp .t3 { font-size: 14px; }
#brandCard .bp .t4 { font-size: 11.5px; }
@media (max-width: 640px) { #brandCard .bf, #brandCard .bl { grid-template-columns: 1fr; } #brandCard .bp { max-width: 260px; } }
