/*
 * Anchored product site.
 *
 * Everything this site needs lives under /anchored/ and every path is
 * relative, so the folder can be lifted into its own repository and served
 * at anchored.higginsandrew.com without edits. It does not use the personal
 * site's Tailwind build.
 */

@font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-weight: 500 700;
    font-display: swap;
    src: url('fonts/fraunces-latin.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('fonts/inter-latin.woff2') format('woff2');
}

:root {
    --ink: #13203a;
    --ink-2: #33415c;
    --muted: #5f687a;
    --paper: #fbf7f0;
    --paper-2: #f3ece0;
    --card: #ffffff;
    --line: #e4dacb;
    --accent: #d9643a;
    --accent-ink: #a9461f;
    --accent-soft: #fbe3d6;
    --ok: #2c7a57;
    --ok-soft: #dcefe5;

    --room-bedroom: #dfe5f3;
    --room-bathroom: #d8eeeb;
    --room-kitchen: #f7e5c9;
    --room-dining: #f3dbd0;
    --room-office: #e2e8d4;
    --room-living: #ebe0f0;

    --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --radius: 18px;
    --shadow: 0 1px 2px rgba(19, 32, 58, .06), 0 8px 24px rgba(19, 32, 58, .08);
    --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.3rem; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(251, 247, 240, .9);
    backdrop-filter: saturate(1.4) blur(10px);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.brand svg { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: 22px; font-size: .95rem; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--accent-ink); }
.nav .nav-link { display: none; }
.nav a.btn-primary, .nav a.btn-primary:hover, .nav a.btn-ghost:hover { color: var(--paper); }
@media (min-width: 820px) { .nav .nav-link { display: inline; } }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 0 22px; border-radius: 999px;
    font: 600 .95rem/1 var(--sans); text-decoration: none; cursor: pointer;
    border: 1.5px solid transparent; transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-small { min-height: 38px; padding: 0 16px; font-size: .88rem; }
.btn:disabled { opacity: .55; cursor: default; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
section.tight { padding: 64px 0; }
.alt { background: var(--paper-2); }
.dark { background: var(--ink); color: var(--paper); }
.dark .lede, .dark p { color: #c9d0dd; }
.dark .board p, .dark .form p { color: var(--muted); }
.dark .form .form-status.ok { color: var(--ok); }
.dark .form .form-status.err { color: var(--accent-ink); }
.eyebrow {
    display: inline-block; margin-bottom: 14px;
    font: 600 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink);
}
.dark .eyebrow { color: #f2a07e; }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 640px; }
.section-head { margin-bottom: 44px; }
.section-head h2 { margin-bottom: 14px; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 88px; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }
.hero h1 { margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--accent-ink); }
.hero .lede { font-size: 1.2rem; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.status-pill {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
    padding: 6px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink);
    font-size: .85rem; font-weight: 600;
}
.status-pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.fineprint { font-size: .88rem; color: var(--muted); }

.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; filter: drop-shadow(0 18px 30px rgba(19, 32, 58, .12)); }

/* ---------- Cards / grids ---------- */
.grid-2 { display: grid; gap: 24px; }
.grid-3 { display: grid; gap: 24px; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card .icon {
    width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
    background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 16px;
}
.card .icon svg { width: 24px; height: 24px; }
.dark .card { background: #1c2b49; border-color: #2c3c5e; box-shadow: none; }
.dark .card h3 { color: var(--paper); }

.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split.flip > :first-child { order: 2; } }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 34px; }
.checklist li::before {
    content: ''; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
    background: var(--ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c7a57' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.checklist strong { color: var(--ink); }
.dark .checklist strong { color: var(--paper); }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.steps li::before {
    content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
    background: var(--ink); color: var(--paper); font: 600 1rem/1 var(--serif); margin-bottom: 14px;
}
.steps h3 { margin-bottom: 8px; }
.steps p { margin: 0; color: var(--ink-2); }

/* ---------- Interactive demo ---------- */
.demo { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .demo { grid-template-columns: 1.35fr .9fr; } }
.demo-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.demo-controls .label { font-size: .9rem; color: var(--muted); }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.seg button {
    border: 0; background: transparent; color: var(--ink-2); font: 600 .85rem/1 var(--sans);
    padding: 9px 14px; border-radius: 999px; cursor: pointer; min-height: 36px;
}
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.floorplan {
    display: grid; gap: 8px; padding: 10px; border-radius: 22px;
    background: var(--ink); box-shadow: var(--shadow);
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas:
        "bedroom bathroom office"
        "hall hall hall"
        "living kitchen dining";
}
.room {
    position: relative; text-align: left; cursor: pointer;
    border: 0; border-radius: 14px; padding: 14px; min-height: 118px;
    font: inherit; color: var(--ink);
    display: flex; flex-direction: column; justify-content: space-between; gap: 8px;
    transition: transform .15s, box-shadow .15s, outline-color .15s;
    outline: 3px solid transparent; outline-offset: -3px;
}
.room:hover { transform: translateY(-1px); }
.room[aria-pressed="true"] { outline-color: var(--accent); box-shadow: inset 0 0 0 999px rgba(255, 255, 255, .25); }
.room .room-name { font: 600 1rem/1.15 var(--serif); }
.room .room-rule { font-size: .78rem; line-height: 1.35; color: var(--ink-2); }
.room .beacon { position: absolute; top: 12px; right: 12px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.room .beacon::after {
    content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0;
}
.room[aria-pressed="true"] .beacon::after { animation: ping 1.6s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(2.2); opacity: 0; } }
.room.hall {
    grid-area: hall; min-height: 56px; flex-direction: row; align-items: center;
    background: #2a3956; color: #dfe5ef;
}
.room.hall .room-rule { color: #b8c2d4; }
.room.hall .room-name { font-size: .95rem; }
.r-bedroom { grid-area: bedroom; background: var(--room-bedroom); }
.r-bathroom { grid-area: bathroom; background: var(--room-bathroom); }
.r-office { grid-area: office; background: var(--room-office); }
.r-living { grid-area: living; background: var(--room-living); }
.r-kitchen { grid-area: kitchen; background: var(--room-kitchen); }
.r-dining { grid-area: dining; background: var(--room-dining); }
@media (max-width: 560px) {
    .room { min-height: 96px; padding: 10px; }
    .room .room-rule { display: none; }
    .room .room-name { font-size: .9rem; }
    .room { min-height: 72px; }
    .room.hall { min-height: 44px; }
    .phone { max-width: 300px; border-radius: 36px; padding: 9px; }
    .phone-screen { min-height: 0; border-radius: 28px; padding: 12px 12px 14px; }
    .phone-notch { margin-bottom: 8px; }
    .phone-sub { margin-bottom: 10px; }
    .apps { gap: 10px 6px; }
    .app-icon { width: 44px; height: 44px; border-radius: 12px; }
    .app-icon svg { width: 22px; height: 22px; }
    .phone-foot { padding-top: 12px; }
}

.phone {
    width: 100%; max-width: 330px; margin: 0 auto;
    background: #0d1628; border-radius: 44px; padding: 12px; box-shadow: 0 24px 50px rgba(19, 32, 58, .28);
}
.phone-screen {
    background: linear-gradient(180deg, #f6f1e8, #efe6d7); border-radius: 34px; padding: 18px 16px 20px; min-height: 520px;
    display: flex; flex-direction: column;
}
.phone-notch { width: 96px; height: 24px; margin: -6px auto 12px; background: #0d1628; border-radius: 0 0 14px 14px; }
.phone-status { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.phone-room { font: 600 1.25rem/1.1 var(--serif); }
.phone-time { font-size: .8rem; color: var(--muted); }
.phone-sub { font-size: .8rem; color: var(--muted); margin-bottom: 16px; min-height: 2.6em; }
.apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 10px; }
.app { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: .68rem; color: var(--ink-2); text-align: center; }
.app-icon {
    position: relative; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
    color: #fff; transition: filter .2s, opacity .2s;
}
.app-icon svg { width: 26px; height: 26px; }
.app.blocked .app-icon { filter: grayscale(1); opacity: .35; }
.app .lock {
    position: absolute; right: -5px; bottom: -5px; width: 22px; height: 22px; border-radius: 50%;
    background: var(--ink); color: #fff; display: grid; place-items: center; opacity: 0; transform: scale(.6);
    transition: opacity .2s, transform .2s;
}
.app .lock svg { width: 12px; height: 12px; }
.app.blocked .lock { opacity: 1; transform: scale(1); }
.app.essential .app-icon::after {
    content: ''; position: absolute; inset: -3px; border-radius: 16px; border: 2px solid var(--ok); opacity: .55;
}
.phone-foot { margin-top: auto; padding-top: 18px; }
.phone-legend { display: flex; gap: 14px; justify-content: center; font-size: .7rem; color: var(--muted); margin-bottom: 12px; }
.phone-legend span { display: inline-flex; align-items: center; gap: 5px; }
.phone-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.request-btn {
    width: 100%; border: 0; border-radius: 14px; padding: 12px; cursor: pointer;
    background: var(--ink); color: var(--paper); font: 600 .9rem/1.2 var(--sans);
}
.request-note { font-size: .78rem; color: var(--ink-2); text-align: center; margin: 10px 0 0; min-height: 2.4em; }
.demo-caption { font-size: .9rem; color: var(--muted); margin-top: 14px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 600 .78rem/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--paper-2); }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; }
tr.us td { background: var(--accent-soft); }
.table-wrap.scroll table { min-width: 640px; }

/* ---------- Approvals ---------- */
.circle { display: grid; gap: 14px; }
.circle-row {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
    background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px;
}
.circle-row .who { font-weight: 600; }
.circle-row .arrow { color: var(--accent); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; text-align: center; }
.circle-row .by { text-align: right; color: var(--ink-2); }
.circle-row.never { background: var(--accent-soft); border-color: #f1c7b3; }
.circle-row.never .by { color: var(--accent-ink); font-weight: 600; }
@media (max-width: 520px) { .circle-row { grid-template-columns: 1fr; text-align: left; } .circle-row .by, .circle-row .arrow { text-align: left; } }

/* ---------- Usage board ---------- */
.board { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.board h3 { font-size: 1.05rem; margin-bottom: 4px; }
.board .fineprint { margin-bottom: 18px; }
.bar-row { display: grid; grid-template-columns: 76px 1fr 64px; gap: 12px; align-items: center; margin-bottom: 12px; font-size: .92rem; }
.bar { height: 12px; background: var(--paper-2); border-radius: 999px; overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 999px; background: var(--ink-2); }
.bar-row .t { white-space: nowrap; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.feed { margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); list-style: none; display: grid; gap: 10px; font-size: .88rem; color: var(--ink-2); }
.feed li { display: flex; gap: 10px; align-items: baseline; }
.feed .tag { flex: none; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; }
.tag.req { background: #e6ebf5; color: var(--ink-2); }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.alert { background: var(--accent-soft); color: var(--accent-ink); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; }
.faq summary {
    cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 500 1.4rem/1 var(--sans); color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding-bottom: 6px; }

/* ---------- Waitlist ---------- */
.waitlist { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .waitlist { grid-template-columns: 1fr 1fr; } }
.form { background: var(--card); color: var(--ink); border-radius: var(--radius); padding: 28px; display: grid; gap: 18px; }
.form label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
.form input[type="email"], .form select {
    width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line);
    font: 400 1rem var(--sans); color: var(--ink); background: #fff;
}
.form input:focus, .form select:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(217, 100, 58, .25); }
.form fieldset { border: 0; margin: 0; padding: 0; }
.form legend { font-size: .88rem; font-weight: 600; margin-bottom: 8px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choices label {
    margin: 0; font-weight: 500; display: flex; align-items: center; gap: 8px; cursor: pointer;
    padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; font-size: .92rem;
}
.choices input { accent-color: var(--accent); }
.choices label:has(input:checked) { border-color: var(--ink); background: var(--paper); }
.form .btn { width: 100%; }
.form-status { font-size: .9rem; margin: 0; min-height: 1.4em; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--accent-ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Investor page bits ---------- */
.stat-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.stat b { display: block; font: 600 2.2rem/1 var(--serif); color: var(--accent-ink); margin-bottom: 8px; }
.stat span { font-size: .9rem; color: var(--ink-2); display: block; }
.stat cite { display: block; margin-top: 8px; font-style: normal; font-size: .75rem; color: var(--muted); }
.rules { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: rule; }
@media (min-width: 760px) { .rules { grid-template-columns: 1fr 1fr; } }
.rules li { counter-increment: rule; display: grid; grid-template-columns: 34px 1fr; gap: 12px; background: #1c2b49; border: 1px solid #2c3c5e; border-radius: 14px; padding: 16px; color: #c9d0dd; font-size: .95rem; }
.rules li::before { content: counter(rule, decimal-leading-zero); font: 600 .95rem/1.5 var(--serif); color: #f2a07e; }
.rules strong { color: var(--paper); }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); display: grid; gap: 26px; }
.timeline li { position: relative; padding-left: 26px; }
.timeline li::before { content: ''; position: absolute; left: -8px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 3px solid var(--accent); }
.timeline .when { font: 600 .78rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.timeline h3 { margin: 6px 0 6px; font-size: 1.15rem; }
.timeline p { margin: 0; color: var(--ink-2); }
.arch { display: grid; gap: 16px; }
@media (min-width: 900px) { .arch { grid-template-columns: repeat(3, 1fr); } }
.arch .card h3 { font-size: 1.1rem; }
.arch ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: .95rem; }
.arch li { margin-bottom: 6px; }
.note { font-size: .85rem; color: var(--muted); margin-top: 16px; }

/* ---------- Footer ---------- */
.site-footer { padding: 48px 0; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--accent-ink); }
