:root {
    /* --- Theme ------------------------------------------------------------
       Portus palette. Icon uses plum (#6e3563 → #5c2b52 gradient) on cream
       (#fbfbf8) shapes; landing background is a very dark plum that reads as
       nearly-black, with a brighter plum for CTAs and glows. */
    --bg: #12071a;
    --bg-elev: #1e0d2a;
    --accent: #b8579f;
    --accent-hover: #cf74b7;
    --glow-primary: rgba(184, 87, 159, 0.28);
    --glow-secondary: rgba(184, 87, 159, 0.14);
    /* ---------------------------------------------------------------------- */
    --text: #fbfbf8;
    --text-dim: rgba(251, 251, 248, 0.72);
    --text-fine: rgba(251, 251, 248, 0.45);
    --border: rgba(251, 251, 248, 0.12);
    --max-width: 720px;
    --radius: 8px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    /* Diffuse accent-colored light bleeding into the dark background from
       top-right and lower-left. Keep the alphas low; this should read as
       atmosphere, not decoration. */
    background:
        radial-gradient(ellipse 60vw 50vh at 85% 0%, var(--glow-primary), transparent 70%),
        radial-gradient(ellipse 55vw 45vh at 10% 55%, var(--glow-secondary), transparent 70%),
        var(--bg);
    background-repeat: no-repeat;
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.wrap {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
}

.wordmark {
    /* Wordmark SVG is ~3:1 aspect (2172×724 viewBox) and includes the icon on
       the left, so no separate logo `<img>` is needed. `viewBox`-only source
       + explicit height here lets the browser derive width proportionally
       instead of falling back to the SVG's intrinsic pixel dimensions. */
    height: 96px;
    width: auto;
    display: block;
}

main {
    flex: 1;
    padding: 48px 0;
}

.hero,
.features,
.roadmap,
.values,
.spotlight,
.details,
.beta {
    margin-bottom: 72px;
}

.hero h1 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

@media (min-width: 640px) {
    .hero h1 {
        font-size: 40px;
    }
}

.lede {
    font-size: 18px;
    color: var(--text-dim);
    margin-bottom: 32px;
}

.cta {
    display: inline-block;
    padding: 12px 22px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    transition: background 0.15s;
}

.cta:hover {
    background: var(--accent-hover);
}

.cta-disabled {
    opacity: 0.65;
    cursor: not-allowed;
    pointer-events: none;
}

.cta-secondary {
    margin-top: 14px;
    font-size: 14px;
    color: var(--text-dim);
}

.cta-secondary a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cta-secondary a:hover {
    color: var(--accent-hover);
}

.hero-shot,
.spotlight-shot {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}

.mockup-wrap {
    position: relative;
    display: block;
    isolation: isolate;
}

.mockup {
    position: relative;
    z-index: 1;
    /* drop-shadow (not box-shadow) so the shadow follows the device silhouette;
       framed device PNGs are RGBA with transparent corners around the rounded
       phone body. box-shadow would trace the image's rectangular bounding box
       instead and look boxy against the page. */
    filter: drop-shadow(0 14px 34px rgba(0, 0, 0, 0.48));
}

/* Optional halo effect on the hero mockup only. Stacked drop-shadows in the
   accent color give an even halo around the device silhouette (following the
   rounded-rect alpha), which a radial-gradient can't do. */
.hero-mockup .mockup {
    filter:
        drop-shadow(0 14px 34px rgba(0, 0, 0, 0.48))
        drop-shadow(0 0 50px var(--glow-primary))
        drop-shadow(0 0 110px var(--glow-secondary));
}

/* Elevate text adjacent to any mockup so the blurred backdrop's halo (which
   bleeds outside the wrapper's box) can't paint over it. */
.hero h1,
.hero .lede,
.hero .cta,
.hero .cta-secondary,
.hero .cta-primary,
.details h2,
.detail figcaption,
.spotlight h2,
.spotlight p,
.features h2,
.features ul {
    position: relative;
    z-index: 2;
}

.hero-mockup {
    margin-top: 40px;
}

.spotlight p {
    color: var(--text-dim);
    font-size: 16px;
    margin-bottom: 20px;
}

.spotlight-shot {
    margin-top: 0;
}

.details-grid {
    display: grid;
    gap: 32px;
    grid-template-columns: 1fr;
    justify-items: center;
}

@media (min-width: 640px) {
    .details-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}

.detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 320px;
}

.detail img {
    width: 100%;
    height: auto;
    display: block;
}

.detail figcaption {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-dim);
    text-align: center;
}

h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--accent);
    letter-spacing: -0.005em;
}

.features ul,
.values-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

@media (min-width: 640px) {
    .features ul {
        grid-template-columns: 1fr 1fr;
    }
}

.features li {
    padding-left: 24px;
    position: relative;
    color: var(--text-dim);
}

.features li::before {
    content: "›";
    color: var(--accent);
    position: absolute;
    left: 0;
    font-weight: 600;
}

.values-list li {
    color: var(--text-dim);
}

.values-list li strong {
    color: var(--text);
    font-weight: 600;
}

.tiers {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .tiers {
        grid-template-columns: 1fr 1fr;
    }
}

.tier {
    padding: 22px;
    background: var(--bg-elev);
    border-radius: var(--radius);
}

.tier p {
    color: var(--text-dim);
    font-size: 15px;
}

.tier ul {
    list-style: none;
    padding: 0;
    margin-top: 10px;
    display: grid;
    gap: 8px;
}

.tier li {
    padding-left: 22px;
    position: relative;
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.4;
}

.tier li::before {
    content: "›";
    color: var(--accent);
    position: absolute;
    left: 0;
    font-weight: 600;
}

.beyond {
    margin-top: 24px;
    color: var(--text-fine);
    font-size: 14px;
    text-align: center;
    font-style: italic;
}

.beta-card {
    padding: 22px;
    background: var(--bg-elev);
    border-radius: var(--radius);
}

.beta-card p {
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 14px;
}

.beta-card p:last-child {
    margin-bottom: 0;
}

.beta-card a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.beta-card a:hover {
    color: var(--accent-hover);
}

.notice {
    padding: 12px 16px;
    margin-bottom: 28px;
    background: var(--bg-elev);
    border-left: 3px solid var(--accent);
    border-radius: 4px;
    font-size: 14px;
    color: var(--text-dim);
}

.notice a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.notice a:hover {
    color: var(--accent-hover);
}

code {
    padding: 2px 6px;
    background: var(--bg-elev);
    border-radius: 4px;
    font-family: "SF Mono", Consolas, Menlo, monospace;
    font-size: 0.88em;
}

footer {
    padding: 32px 0;
    border-top: 1px solid var(--border);
    color: var(--text-fine);
    font-size: 14px;
    text-align: center;
}

footer a {
    color: var(--text-dim);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(240, 240, 245, 0.25);
}

footer a:hover {
    color: var(--accent);
    text-decoration-color: var(--accent);
}

.fine-print {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-fine);
}

/* Prose (privacy page and similar long-form content) */
.prose {
    max-width: 640px;
}

.prose h1 {
    font-size: 32px;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.prose .lede {
    margin-bottom: 32px;
}

.prose h2 {
    margin-top: 36px;
    margin-bottom: 12px;
}

.prose ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.prose ul li {
    margin-bottom: 8px;
    color: var(--text-dim);
}

.prose p {
    margin-bottom: 16px;
    color: var(--text-dim);
}

.prose a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prose a:hover {
    color: var(--accent-hover);
}
