/*
Theme Name: OIKALIA — Editorial Landing v3.2
Theme URI: https://oikalia.com/
Author: OIKALIA Team
Description: Refined editorial OIKALIA landing with clearer positioning, cleaner footer, and richer explanatory content.
Version: 3.2
Text Domain: oikalia
*/

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
    --oik-bg: #eefdff;
    --oik-bg-deep: #e4f7fb;
    --oik-surface: rgba(255, 255, 255, 0.94);
    --oik-white: #ffffff;
    --oik-ink: #1939cc;
    --oik-ink-deep: #1230ba;
    --oik-ink-soft: #4961d8;
    --oik-muted: #596bbd;
    --oik-line: rgba(35, 69, 213, 0.13);
    --oik-line-strong: rgba(35, 69, 213, 0.22);
    --oik-peach: #fff0d2;
    --oik-cream: #fffaf2;
    --oik-shadow: 0 22px 70px rgba(30, 69, 194, 0.11);
    --oik-shadow-soft: 0 12px 36px rgba(30, 69, 194, 0.08);
    --oik-radius-xl: 34px;
    --oik-radius-lg: 26px;
    --oik-radius-md: 20px;
    --oik-radius-sm: 15px;
    --oik-shell: 1380px;
    --oik-serif: "Fraunces", Georgia, "Times New Roman", serif;
    --oik-sans: "Manrope", Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   2. Reset + base
   -------------------------------------------------------------------------- */

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

html {
    scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
    margin: 0;
}

ul,
ol {
    padding: 0;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 8% 8%, rgba(255, 255, 255, 0.95) 0, rgba(255, 255, 255, 0) 28%),
        radial-gradient(circle at 92% 18%, rgba(255, 241, 213, 0.72) 0, rgba(255, 241, 213, 0) 20%),
        radial-gradient(circle at 50% 100%, rgba(215, 241, 255, 0.82) 0, rgba(215, 241, 255, 0) 38%),
        var(--oik-bg);
    color: var(--oik-ink);
    font-family: var(--oik-sans);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

.shell {
    width: min(calc(100% - 64px), var(--oik-shell));
    margin-inline: auto;
}

/* --------------------------------------------------------------------------
   3. Header
   -------------------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 20px;
    z-index: 50;
    padding-top: 24px;
}

.header-shell {
    min-height: 92px;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto minmax(190px, 1fr);
    align-items: center;
    gap: 24px;
    padding: 15px 28px;
    border: 1px solid rgba(255, 255, 255, 0.86);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 18px 48px rgba(32, 68, 188, 0.12);
    backdrop-filter: blur(18px);
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-self: start;
    white-space: nowrap;
}

.brand-word {
    font-family: var(--oik-serif);
    font-size: clamp(2rem, 2.7vw, 2.85rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--oik-ink);
}

.brand-sprig {
    position: relative;
    top: -8px;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--oik-ink-soft);
    transform: rotate(-10deg);
}

.main-navigation {
    justify-self: center;
}

.oikalia-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    list-style: none;
}

.oikalia-menu > li {
    list-style: none;
}

.oikalia-menu a,
.menu-pill {
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--oik-ink-deep);
    font-size: 0.93rem;
    font-weight: 800;
    white-space: nowrap;
    transition:
        transform 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.oikalia-menu a:hover,
.menu-pill:hover,
.oikalia-menu .current-menu-item > a {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.92);
    border-color: var(--oik-line);
    box-shadow: 0 14px 26px rgba(30, 69, 194, 0.08);
}

.oikalia-menu li:first-child > a,
.menu-pill.is-active {
    position: relative;
    background: linear-gradient(180deg, rgba(230, 243, 255, 0.96), rgba(255, 255, 255, 0.96));
    border-color: rgba(35, 69, 213, 0.1);
}

.oikalia-menu li:first-child > a::after,
.menu-pill.is-active::after {
    content: "";
    position: absolute;
    right: 18px;
    bottom: 9px;
    left: 18px;
    height: 3px;
    border-radius: 999px;
    background: var(--oik-ink);
}

.menu-icon {
    width: 25px;
    height: 25px;
    display: inline-grid;
    place-items: center;
    color: var(--oik-ink);
    font-size: 1.28rem;
    line-height: 1;
}

.header-actions {
    display: inline-flex;
    align-items: center;
    justify-self: end;
    gap: 18px;
}

.sign-in-link {
    font-weight: 800;
    color: var(--oik-ink-deep);
}

.account-orb {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border: 1px solid var(--oik-line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--oik-ink);
    font-size: 1.55rem;
    box-shadow: var(--oik-shadow-soft);
}

/* --------------------------------------------------------------------------
   4. Reusable elements
   -------------------------------------------------------------------------- */

.landing-page {
    padding: 56px 0 54px;
}

.eyebrow-pill {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 13px 20px;
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--oik-ink-deep);
    font-size: 0.95rem;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(30, 69, 194, 0.06);
}

.eyebrow-pill span:first-child {
    font-size: 1.2rem;
}

.button {
    min-height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 0 28px;
    border: 1px solid transparent;
    border-radius: 18px;
    font-size: 1rem;
    font-weight: 900;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        background-color 180ms ease,
        color 180ms ease,
        border-color 180ms ease;
    cursor: pointer;
}

.button:hover {
    transform: translateY(-3px);
}

.button-primary {
    background: linear-gradient(135deg, #234cf2, #173bd4);
    color: var(--oik-white);
    box-shadow: 0 18px 34px rgba(28, 70, 222, 0.2);
}

.button-primary:hover {
    box-shadow: 0 22px 40px rgba(28, 70, 222, 0.25);
}

.button-secondary {
    border-color: var(--oik-ink);
    background: rgba(255, 255, 255, 0.78);
    color: var(--oik-ink);
}

.button-secondary:hover {
    background: var(--oik-white);
    box-shadow: 0 18px 34px rgba(28, 70, 222, 0.09);
}

.play-dot {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: var(--oik-ink);
    color: var(--oik-white);
    font-size: 0.75rem;
    padding-left: 2px;
}

.ui-card,
.testimonial-card,
.feature-strip,
.process-section,
.manifesto-band,
.form-panel,
.profile-envelope,
.chat-aside,
.chat-panel,
.empty-state-card,
.post-card {
    border: 1px solid rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--oik-shadow-soft);
}

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */

.hero-grid {
    display: grid;
    grid-template-columns: minmax(540px, 1.08fr) minmax(560px, 0.92fr);
    align-items: start;
    gap: clamp(46px, 5vw, 84px);
}

.hero-copy {
    padding-top: 22px;
}

.hero-copy h1 {
    max-width: 780px;
    margin-top: 30px;
    color: var(--oik-ink);
    font-family: var(--oik-serif);
    font-size: clamp(4.1rem, 6vw, 6rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.hero-copy h1 span {
    position: relative;
    display: block;
    width: fit-content;
    margin-top: 4px;
}

.hero-copy h1 span::after {
    content: "";
    position: absolute;
    right: -12px;
    bottom: 4px;
    left: 16%;
    z-index: -1;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 210, 129, 0.78);
    transform: rotate(-1.5deg);
}

.hero-lead {
    max-width: 720px;
    margin-top: 28px;
    color: var(--oik-ink-deep);
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 34px;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    margin-top: 28px;
    color: var(--oik-ink);
    font-weight: 800;
}

.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-size: 0.95rem;
}

.trust-item span:first-child {
    width: 29px;
    height: 29px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--oik-line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    font-size: 1.08rem;
}

.hero-explainer {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 18px;
    margin-top: 42px;
}

.hero-explainer-copy,
.hero-explainer-points article {
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--oik-shadow-soft);
}

.hero-explainer-copy {
    padding: 24px 24px 22px;
    background: linear-gradient(135deg, rgba(255, 241, 213, 0.72), rgba(255, 255, 255, 0.94));
}

.hero-explainer-copy h2 {
    color: var(--oik-ink);
    font-family: var(--oik-serif);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}

.hero-explainer-copy p {
    margin-top: 12px;
    color: var(--oik-ink-deep);
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.55;
}

.hero-explainer-points {
    display: grid;
    gap: 14px;
}

.hero-explainer-points article {
    padding: 18px 18px 16px;
}

.hero-explainer-points h3 {
    color: var(--oik-ink);
    font-size: 0.98rem;
    font-weight: 900;
}

.hero-explainer-points p {
    margin-top: 22px;
    color: var(--oik-muted);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.45;
}

/* --------------------------------------------------------------------------
   6. Hero stage collage
   -------------------------------------------------------------------------- */

.hero-stage {
    position: relative;
    min-height: 760px;
    isolation: isolate;
}

.hero-stage::before {
    content: "";
    position: absolute;
    right: 30px;
    bottom: 98px;
    left: 18px;
    z-index: -3;
    height: 430px;
    border-radius: 54px;
    background: rgba(255, 255, 255, 0.36);
    filter: blur(0.2px);
}

.hero-stage::after {
    content: "···→";
    position: absolute;
    top: 392px;
    left: -120px;
    z-index: -1;
    color: var(--oik-ink-soft);
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    transform: rotate(-17deg);
    opacity: 0.8;
}

.stage-whisper {
    position: absolute;
    top: 0;
    right: 25px;
    z-index: 8;
    width: 150px;
    min-height: 150px;
    display: grid;
    place-items: center;
    padding: 18px;
    border-radius: 50%;
    background: var(--oik-peach);
    color: var(--oik-ink);
    font-family: var(--oik-serif);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    box-shadow: 0 18px 38px rgba(183, 137, 47, 0.12);
    transform: rotate(5deg);
}

.phone-ghost {
    position: absolute;
    top: 316px;
    left: 58px;
    z-index: -2;
    width: 410px;
    height: 426px;
    border: 10px solid rgba(255, 255, 255, 0.95);
    border-radius: 45px;
    background:
        linear-gradient(160deg, rgba(25, 57, 204, 0.98), rgba(90, 156, 255, 0.3) 32%, rgba(255, 255, 255, 0.95) 32%);
    box-shadow: var(--oik-shadow);
}

.ui-card {
    position: absolute;
    border-radius: 22px;
    padding: 22px;
    color: var(--oik-ink-deep);
    backdrop-filter: blur(14px);
}

.ui-card h2 {
    margin-top: 7px;
    color: var(--oik-ink);
    font-family: var(--oik-serif);
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.ui-card p,
.ui-card small {
    color: var(--oik-muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.step-kicker {
    color: var(--oik-muted);
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.finder-card {
    top: 24px;
    left: 32px;
    z-index: 4;
    width: 230px;
    transform: rotate(-1.7deg);
}

.choice-list,
.faith-list {
    display: grid;
    gap: 11px;
    margin-top: 14px;
    list-style: none;
}

.choice-list li,
.faith-list li {
    min-height: 39px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    border: 1px solid var(--oik-line);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.88);
    font-size: 0.82rem;
    font-weight: 800;
}

.choice-list .selected,
.faith-list .selected {
    border-color: rgba(35, 69, 213, 0.36);
    color: var(--oik-ink);
    box-shadow: inset 0 0 0 1px rgba(35, 69, 213, 0.08);
}

.values-card {
    top: 0;
    left: 255px;
    z-index: 5;
    width: 255px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 14px;
}

.tag-cloud span {
    min-height: 31px;
    display: inline-flex;
    align-items: center;
    padding: 0 13px;
    border: 1px solid var(--oik-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--oik-ink-deep);
    font-size: 0.78rem;
    font-weight: 900;
}

.tag-cloud span.active {
    border-color: var(--oik-ink);
    background: var(--oik-ink);
    color: var(--oik-white);
}

.values-card small {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.values-card small b {
    width: 26px;
    height: 26px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(230, 243, 255, 0.9);
    color: var(--oik-ink);
}

.faith-card {
    top: 68px;
    right: 0;
    z-index: 4;
    width: 245px;
    transform: rotate(1.8deg);
}

.gradual-card {
    top: 280px;
    right: 160px;
    z-index: 8;
    width: 500px;
    min-height: 168px;
    padding: 23px 28px;
}

.reveal-flow {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.reveal-flow div {
    display: grid;
    justify-items: center;
    gap: 9px;
}

.reveal-flow b {
    width: 48px;
    height: 48px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--oik-line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: var(--oik-ink);
    font-size: 1.3rem;
}

.reveal-flow span {
    color: var(--oik-muted);
    font-size: 0.76rem;
    font-weight: 900;
    white-space: nowrap;
}

.reveal-flow i {
    color: var(--oik-ink-soft);
    font-size: 1.2rem;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0.2em;
}

.rhythm-card {
    top: 462px;
    left: 92px;
    z-index: 6;
    width: 540px;
    min-height: 205px;
}

.rhythm-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 13px;
    margin-top: 16px;
}

.rhythm-grid > div {
    min-height: 118px;
    display: grid;
    align-content: start;
    gap: 7px;
    padding: 15px;
    border: 1px solid var(--oik-line);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.88);
}

.rhythm-grid strong {
    color: var(--oik-ink-soft);
    font-size: 0.67rem;
    font-weight: 900;
    text-transform: uppercase;
}

.rhythm-grid b {
    color: var(--oik-ink);
    font-size: 0.83rem;
    line-height: 1.25;
}

.rhythm-grid span {
    color: var(--oik-muted);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.35;
}

.photo-card {
    position: absolute;
    top: 380px;
    right: 0;
    z-index: 4;
    width: 290px;
    overflow: hidden;
    border: 8px solid rgba(255, 255, 255, 0.92);
    border-radius: 28px;
    background: var(--oik-white);
    box-shadow: var(--oik-shadow);
    transform: rotate(2deg);
}

.photo-card img {
    width: 100%;
    height: 275px;
    object-fit: cover;
}

.photo-card figcaption {
    position: absolute;
    right: 18px;
    bottom: 18px;
    color: var(--oik-white);
    font-family: var(--oik-serif);
    font-size: 1.7rem;
    font-style: italic;
    font-weight: 800;
    line-height: 0.98;
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.45);
}



/* --------------------------------------------------------------------------
   7. Feature strip + process band
   -------------------------------------------------------------------------- */

.feature-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    margin-top: 8px;
    overflow: hidden;
    border-radius: 28px;
}

.feature-strip article {
    position: relative;
    min-height: 132px;
    display: grid;
    grid-template-columns: 58px 1fr;
    grid-template-rows: auto auto;
    align-content: center;
    column-gap: 18px;
    padding: 24px 24px;
}

.feature-strip article + article::before {
    content: "";
    position: absolute;
    top: 28px;
    bottom: 28px;
    left: 0;
    width: 1px;
    background: var(--oik-line);
}

.feature-strip b {
    grid-row: 1 / span 2;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border: 1px solid var(--oik-line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    color: var(--oik-ink);
    font-size: 1.8rem;
}

.feature-strip h3 {
    align-self: end;
    color: var(--oik-ink);
    font-size: 0.98rem;
    font-weight: 900;
}

.feature-strip p {
    max-width: 170px;
    color: var(--oik-muted);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.4;
}

.process-section {
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 24px;
    margin-top: 18px;
    padding: 18px;
    border-radius: 28px;
}

.process-intro {
    position: relative;
    min-height: 148px;
    display: grid;
    align-content: center;
    gap: 7px;
    padding: 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
}

.sun-doodle {
    position: absolute;
    top: 12px;
    left: 12px;
    color: rgba(243, 185, 80, 0.9);
    font-size: 1.8rem;
}

.process-intro h2 {
    padding-left: 34px;
    color: var(--oik-ink);
    font-family: var(--oik-serif);
    font-size: 1.55rem;
    font-weight: 800;
}

.process-intro p {
    padding-left: 34px;
    color: var(--oik-ink-deep);
    font-weight: 800;
}

.process-intro a {
    padding-left: 34px;
    color: var(--oik-ink);
    font-weight: 900;
}

.process-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    gap: 0;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.7);
}

.process-track article {
    position: relative;
    min-height: 148px;
    display: grid;
    grid-template-columns: 36px 52px 1fr;
    grid-template-rows: auto auto;
    align-content: center;
    column-gap: 13px;
    padding: 18px 24px;
}

.process-track article:not(:last-child)::after {
    content: "···→";
    position: absolute;
    top: 50%;
    right: -15px;
    z-index: 2;
    color: var(--oik-ink-soft);
    font-weight: 900;
    letter-spacing: 0.18em;
    transform: translateY(-50%);
}

.process-track span {
    grid-row: 1 / span 2;
    align-self: center;
    color: var(--oik-ink);
    font-size: 0.92rem;
    font-weight: 900;
}

.process-track b {
    grid-row: 1 / span 2;
    align-self: center;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 1px solid var(--oik-line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    color: var(--oik-ink);
    font-size: 1.45rem;
}

.process-track h3 {
    color: var(--oik-ink);
    font-size: 0.86rem;
    font-weight: 900;
    line-height: 1.2;
}

.process-track p {
    color: var(--oik-muted);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.35;
}

.manifesto-band {
    margin-top: 22px;
    padding: 18px 28px;
    border-radius: 999px;
    color: var(--oik-ink-soft);
    text-align: center;
    font-family: var(--oik-serif);
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

/* --------------------------------------------------------------------------
   8. Footer
   -------------------------------------------------------------------------- */

.site-footer {
    padding: 44px 0 58px;
}

.footer-shell {
    display: grid;
    grid-template-columns: minmax(250px, 1fr) auto minmax(260px, 1fr);
    align-items: end;
    gap: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--oik-line);
}

.footer-brand p,
.footer-meta,
.footer-socials {
    color: var(--oik-muted);
    font-size: 0.92rem;
    font-weight: 800;
}

.footer-socials {
    display: grid;
    justify-items: center;
    gap: 10px;
}

.footer-heading {
    color: var(--oik-ink);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.social-links a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid var(--oik-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--oik-ink);
    font-size: 0.86rem;
    font-weight: 800;
}

.footer-meta {
    display: grid;
    gap: 4px;
    text-align: right;
}

.footer-meta {
    display: grid;
    gap: 4px;
    text-align: right;
}

/* --------------------------------------------------------------------------
   9. Onboarding page
   -------------------------------------------------------------------------- */

.onboarding-page {
    padding: 74px 0 80px;
}

.form-hero {
    max-width: 860px;
    margin: 0 auto 42px;
    text-align: center;
}

.form-hero .eyebrow-pill {
    margin-inline: auto;
}

.form-hero h1,
.dashboard-hero h1,
.chat-aside h1,
.archive-header h1,
.empty-state-card h1 {
    margin-top: 22px;
    color: var(--oik-ink);
    font-family: var(--oik-serif);
    font-size: clamp(3rem, 5vw, 4.8rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
}

.form-hero p,
.dashboard-hero p,
.archive-header p,
.empty-state-card p {
    max-width: 760px;
    margin: 18px auto 0;
    color: var(--oik-ink-deep);
    font-size: 1.08rem;
    font-weight: 800;
}

.onboarding-form {
    width: min(100%, 920px);
    display: grid;
    gap: 22px;
    margin-inline: auto;
}

.form-panel {
    position: relative;
    padding: 34px;
    border-radius: var(--oik-radius-lg);
}

.form-step {
    width: fit-content;
    margin-bottom: 12px;
    padding: 7px 13px;
    border-radius: 999px;
    background: var(--oik-peach);
    color: var(--oik-ink);
    font-size: 0.82rem;
    font-weight: 900;
}

.form-panel h2 {
    color: var(--oik-ink);
    font-family: var(--oik-serif);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.promise-card {
    margin-top: 18px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 240, 210, 0.96), rgba(255, 255, 255, 0.98));
    color: var(--oik-ink-deep);
    font-family: var(--oik-serif);
    font-size: 1.15rem;
    font-weight: 650;
    line-height: 1.5;
}

.checkbox-line {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-top: 20px;
    color: var(--oik-ink);
    font-weight: 800;
    cursor: pointer;
}

.checkbox-line input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--oik-ink);
}

.field-block {
    display: grid;
    gap: 11px;
    margin-top: 22px;
}

.field-block > span {
    color: var(--oik-ink);
    font-weight: 900;
    font-size: 1.02rem;
}

.field-block textarea {
    min-height: 150px;
    width: 100%;
    resize: vertical;
    padding: 18px 20px;
    border: 1px solid var(--oik-line-strong);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--oik-ink-deep);
    outline: none;
}

.field-block textarea:focus {
    border-color: var(--oik-ink);
    box-shadow: 0 0 0 4px rgba(35, 69, 213, 0.09);
}

.chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.chip-grid label {
    cursor: pointer;
}

.chip-grid input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.chip-grid span {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    padding: 0 18px;
    border: 1px solid var(--oik-line-strong);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--oik-ink-deep);
    font-weight: 900;
}

.chip-grid input:checked + span {
    border-color: var(--oik-ink);
    background: var(--oik-ink);
    color: var(--oik-white);
}

.form-submit-wrap {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

/* --------------------------------------------------------------------------
   10. Dashboard
   -------------------------------------------------------------------------- */

.dashboard-page {
    padding: 74px 0 88px;
}

.dashboard-hero {
    max-width: 900px;
    margin-bottom: 42px;
}

.envelopes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.profile-envelope {
    position: relative;
    min-height: 440px;
    display: grid;
    align-content: start;
    gap: 18px;
    padding: 34px;
    border-radius: var(--oik-radius-lg);
    background:
        radial-gradient(circle at 85% 10%, rgba(255, 240, 210, 0.95) 0, rgba(255, 240, 210, 0) 28%),
        rgba(255, 255, 255, 0.92);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.profile-envelope:hover {
    transform: translateY(-6px);
    box-shadow: var(--oik-shadow);
}

.envelope-seal {
    position: absolute;
    top: -18px;
    right: 34px;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--oik-ink);
    color: var(--oik-white);
    font-weight: 900;
    box-shadow: 0 14px 28px rgba(30, 69, 194, 0.2);
}

.match-label {
    width: fit-content;
    padding: 8px 13px;
    border-radius: 999px;
    background: var(--oik-peach);
    color: var(--oik-ink);
    font-size: 0.78rem;
    font-weight: 900;
}

.profile-envelope h2 {
    color: var(--oik-ink);
    font-family: var(--oik-serif);
    font-size: 2rem;
    font-weight: 800;
}

.profile-envelope ul {
    display: grid;
    gap: 10px;
    list-style: none;
    color: var(--oik-ink-deep);
    font-weight: 900;
}

.profile-envelope li::before {
    content: "♡";
    margin-right: 10px;
    color: var(--oik-ink-soft);
}

.profile-envelope blockquote {
    padding: 18px;
    border-radius: 20px;
    background: rgba(238, 248, 255, 0.86);
    color: var(--oik-muted);
    font-family: var(--oik-serif);
    font-size: 1.05rem;
    font-weight: 650;
    line-height: 1.5;
}

.profile-envelope .button {
    margin-top: auto;
    min-height: 58px;
    text-align: center;
}

/* --------------------------------------------------------------------------
   11. Chat
   -------------------------------------------------------------------------- */

.chat-page {
    min-height: calc(100vh - 220px);
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 24px;
    padding: 74px 0 88px;
}

.chat-aside,
.chat-panel {
    border-radius: var(--oik-radius-lg);
}

.chat-aside {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    padding: 30px;
}

.chat-aside h1 {
    font-size: 3rem;
}

.chat-aside p {
    margin-top: 10px;
    color: var(--oik-muted);
    font-weight: 900;
}

.guided-question {
    display: grid;
    gap: 10px;
    margin-top: 26px;
    padding: 20px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 240, 210, 0.96), rgba(255, 255, 255, 0.98));
}

.guided-question strong {
    color: var(--oik-ink);
}

.guided-question span {
    color: var(--oik-ink-deep);
    font-family: var(--oik-serif);
    font-size: 1.08rem;
    font-weight: 650;
}

.timer-box {
    display: grid;
    justify-items: start;
    gap: 4px;
    padding-top: 20px;
    border-top: 1px solid var(--oik-line);
}

.timer-box strong {
    color: var(--oik-ink);
    font-family: var(--oik-serif);
    font-size: 2.5rem;
    line-height: 1;
}

.timer-box span {
    color: var(--oik-muted);
    font-weight: 900;
}

.chat-panel {
    display: grid;
    grid-template-rows: 1fr auto;
    min-height: 660px;
    padding: 28px;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow-y: auto;
    padding: 12px 4px 28px;
}

.message {
    max-width: min(72%, 560px);
    padding: 18px 20px;
    border-radius: 22px;
    font-weight: 800;
    line-height: 1.5;
}

.message.incoming {
    align-self: flex-start;
    border: 1px solid var(--oik-line);
    border-bottom-left-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--oik-ink-deep);
}

.message.outgoing {
    align-self: flex-end;
    border-bottom-right-radius: 8px;
    background: var(--oik-ink);
    color: var(--oik-white);
}

.chat-input-wrap {
    display: flex;
    gap: 14px;
    padding-top: 22px;
    border-top: 1px solid var(--oik-line);
}

.chat-input-wrap input {
    flex: 1;
    min-height: 64px;
    padding: 0 22px;
    border: 1px solid var(--oik-line-strong);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--oik-ink-deep);
    outline: none;
}

.chat-input-wrap input:focus {
    border-color: var(--oik-ink);
    box-shadow: 0 0 0 4px rgba(35, 69, 213, 0.09);
}

.chat-input-wrap button {
    width: 64px;
    min-width: 64px;
    border: 0;
    border-radius: 50%;
    background: var(--oik-ink);
    color: var(--oik-white);
    font-size: 1.8rem;
    font-weight: 900;
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   12. Blog/index fallback
   -------------------------------------------------------------------------- */

.editorial-index {
    padding: 74px 0 88px;
}

.archive-header {
    max-width: 900px;
    margin-bottom: 36px;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.post-card,
.empty-state-card {
    padding: 30px;
    border-radius: var(--oik-radius-lg);
}

.post-card h2 {
    color: var(--oik-ink);
    font-family: var(--oik-serif);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
}

.post-card p {
    margin-top: 14px;
    color: var(--oik-muted);
    font-weight: 800;
}

.read-more {
    display: inline-block;
    margin-top: 18px;
    color: var(--oik-ink);
    font-weight: 900;
}

.pagination-wrap {
    margin-top: 30px;
}

/* --------------------------------------------------------------------------
   13. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1240px) {
    .header-shell {
        grid-template-columns: 1fr auto;
    }

    .main-navigation {
        grid-column: 1 / -1;
        order: 3;
        justify-self: stretch;
    }

    .oikalia-menu {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-stage {
        width: min(100%, 850px);
        margin-inline: auto;
    }

    .feature-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-strip article:nth-child(3)::before,
    .feature-strip article:nth-child(5)::before {
        display: none;
    }

    .process-section {
        grid-template-columns: 1fr;
    }

    .process-track {
        grid-template-columns: repeat(2, 1fr);
    }

    .envelopes-grid,
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .shell {
        width: min(calc(100% - 32px), var(--oik-shell));
    }

    .site-header {
        top: 10px;
        padding-top: 12px;
    }

    .header-shell {
        min-height: 0;
        grid-template-columns: 1fr auto;
        padding: 18px;
        border-radius: 28px;
    }

    .brand-word {
        font-size: 2.1rem;
    }

    .header-actions {
        gap: 10px;
    }

    .sign-in-link {
        display: none;
    }

    .account-orb {
        width: 48px;
        height: 48px;
    }

    .oikalia-menu {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 3px;
    }

    .oikalia-menu a,
    .menu-pill {
        min-height: 48px;
        padding: 0 16px;
    }

    .landing-page {
        padding-top: 38px;
    }

    .hero-copy h1 {
        font-size: clamp(3.2rem, 11vw, 4.6rem);
    }

    .hero-lead {
        font-size: 1rem;
    }

    .hero-explainer {
        grid-template-columns: 1fr;
    }

    .hero-stage {
        min-height: 1010px;
        transform: scale(0.95);
        transform-origin: top center;
        margin-bottom: -40px;
    }

    .finder-card {
        left: 0;
    }

    .values-card {
        top: 8px;
        left: 244px;
    }

    .faith-card {
        top: 220px;
        left: 0;
        right: auto;
    }

    .gradual-card {
        top: 450px;
        left: 0;
        right: auto;
        width: min(100%, 560px);
    }

    .rhythm-card {
        top: 650px;
        left: 0;
        width: min(100%, 620px);
    }

    .photo-card {
        top: 210px;
        right: 0;
    }


    .phone-ghost {
        top: 496px;
        left: 100px;
    }

    .stage-whisper {
        right: 0;
    }

    .feature-strip {
        grid-template-columns: 1fr;
    }

    .feature-strip article + article::before {
        top: 0;
        right: 24px;
        bottom: auto;
        left: 24px;
        width: auto;
        height: 1px;
    }

    .process-track,
    .envelopes-grid,
    .post-grid,
    .chat-page {
        grid-template-columns: 1fr;
    }

    .process-track article:not(:last-child)::after {
        display: none;
    }

    .footer-shell {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .footer-socials {
        justify-items: start;
    }

    .social-links {
        justify-content: flex-start;
    }

    .footer-meta {
        text-align: left;
    }
}

@media (max-width: 720px) {
    .hero-actions,
    .button {
        width: 100%;
    }

    .button {
        justify-content: center;
    }

    .trust-row {
        display: grid;
        gap: 14px;
    }

    .hero-stage {
        min-height: 1260px;
        transform: none;
        margin-bottom: 0;
    }

    .finder-card,
    .values-card,
    .faith-card,
    .gradual-card,
    .rhythm-card,
    .photo-card {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        width: 100%;
        margin-top: 16px;
        transform: none;
    }
    .stage-whisper,
    .phone-ghost {
        display: none;
    }

    .hero-stage::after {
        display: none;
    }

    .reveal-flow {
        grid-template-columns: repeat(2, 1fr);
        justify-items: center;
    }

    .reveal-flow i {
        display: none;
    }

    .rhythm-grid {
        grid-template-columns: 1fr;
    }

    .feature-strip article,
    .process-track article {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .feature-strip b,
    .process-track b,
    .process-track span {
        grid-row: auto;
    }

    .form-panel,
    .profile-envelope,
    .chat-aside,
    .chat-panel,
    .post-card,
    .empty-state-card {
        padding: 24px;
    }

    .chat-panel {
        min-height: 540px;
    }

    .message {
        max-width: 90%;
    }
}
