
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: ui-sans-serif, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.site {
    width: 90vw;
    max-width: 1400px;
    margin: 0 auto;
    border-left: 1px solid var(--fg-12);
    border-right: 1px solid var(--fg-12);
    min-height: 100vh;
}

/* ----------- NAV ----------- */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 26px 20px 26px;
    border-bottom: 1px solid var(--fg-16);
    position: sticky;
    top: 0;
    background: var(--bg);
    z-index: 10;
    transition: background-color 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--fg);
    height: 20px;
    overflow: hidden;
    transform: translateY(-5px);
}

.logo span{
    transform: translateY(-4px);
}

.logo-name {
    font-family: "Anonymous Pro", monospace;
    font-size: 46px;
    line-height: 1;
    color: var(--accent);
    display: inline-block;
    font-weight: 300;
    letter-spacing: -5px;
}

.logo .logo-dee {
    display: inline-block;
    color: var(--fg);
    font-size: 20pt;
    transform: translateY(-2.5px);
    font-weight: 600;
    letter-spacing: normal;
    margin-right: -2px;
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
    transform: translateY(4px);
}

.nav-links a {
    font: 500 9px/1 ui-monospace, monospace;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--fg-80);
    text-decoration: none;
    transition: color .15s, text-decoration .25s;
    font-size: 0.7rem;
    position: relative;
    display: inline-block;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  width: 110%;
  height: 2px;
  background-color: var(--fg-80);
  transform: translateX(-50%) scaleX(0);
  transition: transform 0.3s ease-in-out;
  transform-origin: center;
}

.nav-links a:hover { color: var(--fg)}

.nav-links a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-links a.theme-btn::after { display: none; }

.nav-links a.btn-primary { color: #fff; }

.nav-links a.btn-primary:hover { color: #fff; }

/* ----------- SECTION RAIL LAYOUT ----------- */
.section {
    padding: 28px 20px 28px 16px;
    display: flex;
    gap: 16px;
    position: relative;
}

.section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: var(--fg-14);
}

.section:last-child::after { display: none; }

.rail-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font: 500 10px/1 ui-monospace, monospace;
    font-size: 0.75rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--accent);
    flex-shrink: 0;
    align-self: flex-start;
}

.section-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
    font-size: 1.125rem;
    padding: 0px 40px 0px 20px;
}

/* ----------- IN DEVELOPMENT ----------- */
.indev-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 13px;
    text-align: center;
    width: 100%;
}

.overline {
    font: 500 10px/1 ui-monospace, monospace;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent);
    font-size: 0.75rem;;
}

.indev-title {
    font-family: Caveat, cursive;
    font-size: 3rem;
    line-height: 1.1;
    margin: 5px 0px 10px 0px;
    transform: rotate(-5deg);
}

.indev-caption {
    font-family: "Anonymous Pro", monospace;
    font-size: 1.25rem;
    line-height: 1;
    margin: 0;
}

.indev-description {
    max-width: 55%;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--fg-60);
    margin: 0;
}

.hero-image {
    width: 100%;
    transform: translateY(20px);
}

.vis-product {
    width: 80%;
    height: 50vh;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font: 500 10px/1.4 ui-monospace, monospace;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--vis-label);
    margin-bottom: 10px;
    overflow: hidden;
}

.mentalhealth {
    height: 100%;
}

.btn-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-primary {
    padding: 9px 18px;
    border-radius: 24px;
    background: var(--accent);
    color: #fff;
    font: 500 10px/1 ui-monospace, monospace;
    letter-spacing: .06em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: opacity .15s;
}

.btn-primary:hover { opacity: .85; }

.btn-ghost {
    padding: 9px 18px;
    border: 1px solid var(--btn-ghost-border);
    border-radius: 24px;
    font: 500 10px/1 ui-monospace, monospace;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--btn-ghost-color);
    background: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: border-color .15s, color .15s, background-color .15s, box-shadow .15s, border .15s;
    box-shadow: 4px 4px 6px rgba(0, 0, 0, 0.05);
    position: relative;
}

.btn-ghost:hover {
    background-color: var(--fg-12);
    color: var(--fg-45);
    box-shadow: 4px 4px 6px rgba(0, 0, 0, 0.15);
    border: 1px solid transparent;
   /*  scale: 1.02; */
}

/* Speech bubble tooltip */
.btn-ghost::after {
    content: "Coming soon!";
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--fg, #2b2a28);
    color: var(--bg, #eceae4);
    font: 500 9px/1 ui-monospace, monospace;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
    padding: 6px 10px;
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s;
    z-index: 10;
}

/* Speech bubble tail */
.btn-ghost::before {
    content: "";
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--fg, #2b2a28);
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s;
    z-index: 10;
}

.btn-ghost:hover::after,
.btn-ghost:hover::before {
    opacity: 1;
}

/* ----------- PRODUCTS ----------- */

.products-scroll {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.products-scroll::-webkit-scrollbar { display: none; }

.product-card {
    flex: none;
    width: 30%;
    height: 50vh;
    scroll-snap-align: start;
    border: 1px solid var(--fg-12);
    border-radius: 12px;
    padding: 11px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--card-bg);
    box-shadow: 4px 4px 6px rgba(0, 0, 0, 0.05);
    transition: background .15s, box-shadow .15s;
    margin-bottom: 15px;
}

.product-card:hover {
    background: var(--card-bg-hover);
    box-shadow: 6px 6px 8px rgba(0, 0, 0, 0.15);
}

.vis-card {
    width: 100%;
    height: 70%;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font: 500 8px/1.4 ui-monospace, monospace;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--vis-label);
    overflow: hidden;
}

.card-name {
    font-family: Caveat, cursive;
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 3px;
    margin-top: 10px;
}

.card-tag {
    font: 500 8px/1.4 ui-monospace, monospace;
    font-size: 0.75rem;
    margin-left: 3px;
    color: var(--fg-45);
    text-transform: uppercase;
}

.card-status {
    align-self: flex-start;
    font: 500 8px/1 ui-monospace, monospace;
    text-transform: uppercase;
    color: var(--fg-50);
    font-size: 0.625rem;
    padding: 3px 7px 4px 7px;
    border-radius: 20px;
    border: 1px solid var(--fg-45);
}

.product-future {
    flex: none;
    width: 30%;
    scroll-snap-align: start;
    border: 1.5px dashed var(--fg-18);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 50vh;
}

.future-plus {
    font-family: Caveat, cursive;
    font-size: 22px;
    color: var(--fg-45);
}

.future-label {
    font: 500 8px/1.3 ui-monospace, monospace;
    text-transform: uppercase;
    color: var(--fg-45);
}

.pagination-dots {
    display: flex;
    gap: 8px;
    margin-top: 0px;
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--dot-off);
    transition: background .2s;
}

.dot.active { background: var(--accent); }

/* ----------- DOCS / CHANGELOG ----------- */

.changelog-title {
    font-family: "Anonymous Pro", monospace;
    font-size: 1.75rem;
    line-height: 1;
    margin: 0;
}

.changelog-list { display: flex; flex-direction: column; }

.changelog-entry {
    border-top: 1px dashed var(--fg-14);
    font-size: 1.25rem;
}

.changelog-header {
    display: flex;
    gap: 20px;
    align-items: baseline;
    padding: 10px 20px;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    font-size: inherit;
    text-align: left;
}

.changelog-version {
    flex: none;
    width: 2%;
    font: 600 11px/1 ui-monospace, monospace;
    color: var(--accent);
    font-size: 0.7rem;
}

.changelog-label {
    flex: 1;
    font-family: 600 11px/1 ui-monospace;
    color: var(--fg-60);
    font-size: 1rem;
}

.daysay-font {
    font-family: Caveat, cursive;
    font-size: 1.2rem;
}

.changelog-date {
    font: 500 8px/1 ui-monospace, monospace;
    color: var(--fg-45);
    font-size: 0.7rem;
}

.changelog-chevron {
    flex: none;
    width: 10px;
    height: 10px;
    border-right: 1.5px solid var(--fg-45);
    border-bottom: 1.5px solid var(--fg-45);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    margin-bottom: 2px;
    align-self: center;
}

.changelog-entry.open .changelog-chevron {
    transform: rotate(-135deg);
}

.changelog-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    font-family: "Anonymous Pro", monospace;
    font-size: 0.9rem;
    margin-left: 20px;
}

.changelog-entry.open .changelog-body {
    max-height: 200px;
}

.changelog-body p {
    font: 400 13px/1.5 inherit;
    color: var(--fg-45);
    padding: 2px 0 12px 44px;
    margin: 0;
    padding-bottom: 10px;
}

.link-more {
    font: 500 9px/1 ui-monospace, monospace;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--accent);
    text-decoration: none;
    margin-top: 2px;
    display: inline-block;
}

.theme-switcher {
    height: 0;
    width: 0;
    visibility: hidden;
    z-index: -1;
    position: absolute;
}

.theme-btn {
    padding: 9px 9px;
    border-radius: 24px;
    font-size: 12pt;
    display: inline-block;
    border: 1px solid transparent;
    transform: translateY(-8px);
    font: 500 10px/1 ui-monospace, monospace;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--btn-ghost-color);
    background: none;
    cursor: pointer;
    text-decoration: none;
    transition: border-color .15s, color .15s, background-color .15s, box-shadow .15s, border .15s;
    box-shadow: 4px 4px 6px rgba(0, 0, 0, 0.05);
    position: relative;
}

.theme-btn:hover{
    background-color: rgba(255,255,255,0.05);
}

/* ----------- FOOTER ----------- */
.footer {
    width: 100%;
    margin-top: 25px;
    color: var(--fg-45)
}

.footer-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
}

.footer-row-bottom nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.footer-row-bottom nav p {
    margin: 0;
    color: var(--fg-30);
    font-size: 0.65rem;
}

.footer-row-bottom nav a {
    list-style: none;
    padding: 0;
    color: var(--fg-30);
    text-decoration: none;
    font-family: ui-monospace, monospace;
    font-size: 0.65rem;
    text-transform: uppercase;
}

.footer-left {
    width: 50%;
}

.footer-left nav {
    border-bottom: none;
    justify-content: space-evenly;
}

.footer-left nav a svg {
    fill: var(--fg-30)
}

.footer-middle {
    width: 30%
}

.footer-right {
    width: 20%;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 9pt;
    color: var(--fg-18);
}