/* ============================================================
   HOʻOPONOPONO — concept 16
   Theme: Pacific indigo (#0B3B4A) · ocean teal (#1F6F7E) ·
   sunset coral (#E89B7F) · sand cream (#F4E6CC) · ink (#0E2128)
   Pattern: every input → tailored Hawaiian reading.
   ============================================================ */

.page-ho-oponopono {
    --hoo-sand:      #F4E6CC;
    --hoo-sand-2:    #E8D6B2;
    --hoo-indigo:    #0B3B4A;
    --hoo-indigo-d:  #062028;
    --hoo-teal:      #1F6F7E;
    --hoo-teal-d:    #155560;
    --hoo-coral:     #E89B7F;
    --hoo-coral-d:   #C97357;
    --hoo-gold:      #F3C58A;
    --hoo-gold-d:    #C99A5B;
    --hoo-ink:       #0E2128;
    --hoo-mute:      #5C6F75;

    --c-gold:    var(--hoo-coral);
    --c-bg:      var(--hoo-sand);
    --c-ink:     var(--hoo-ink);
    --c-mute:    var(--hoo-mute);
    --c-accent:  var(--hoo-indigo);

    background: var(--hoo-sand);
    color: var(--hoo-ink);
}

[data-theme="dark"] .page-ho-oponopono,
[data-theme="dark"].page-ho-oponopono {
    --hoo-sand:      #0A1418;
    --hoo-sand-2:    #111E24;
    --hoo-ink:       #E8D9BD;
    --hoo-mute:      #A8B3B8;
    --hoo-indigo:    #6FA3B5;
    --hoo-indigo-d:  #4F8395;
    --hoo-teal:      #4FA3B5;
    --hoo-teal-d:    #3A8395;
    --hoo-coral:     #F0B19A;
    --hoo-coral-d:   #D78F75;
    --hoo-gold:      #F3CC95;
    --hoo-gold-d:    #D9AF74;
    --c-bg:          #0A1418;
    --c-ink:         #E8D9BD;
    --c-mute:        #A8B3B8;
    background: #0A1418;
    color: #E8D9BD;
}

/* shared ---------------------------- */
.hoo-section { padding: var(--s-10, 4rem) 0; position: relative; }
.hoo-section-head { max-width: 820px; margin: 0 auto var(--s-7, 2.5rem); text-align: center; }
.hoo-eyebrow {
    font-family: var(--f-mono, monospace);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--hoo-coral-d);
    margin-bottom: var(--s-3, 0.75rem);
}
.hoo-h2 {
    font-family: var(--f-serif, serif);
    font-size: clamp(1.7rem, 3.2vw, 2.6rem);
    line-height: 1.2;
    color: var(--hoo-ink);
    margin-bottom: var(--s-4, 1rem);
    font-weight: 600;
}
.hoo-h2 em { font-style: italic; color: var(--hoo-coral-d); font-weight: 500; }
.hoo-sub {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--hoo-mute);
    max-width: 70ch;
    margin: 0 auto;
}
.hoo-sub em { color: var(--hoo-teal); font-style: italic; }
.hoo-sub b  { color: var(--hoo-ink); }

.hoo-field { display: block; margin-bottom: var(--s-3, 0.75rem); }
.hoo-field-label {
    display: block;
    font-size: 0.92rem;
    color: var(--hoo-ink);
    font-weight: 500;
    margin-bottom: 4px;
}
.hoo-hint-inline { font-weight: 400; color: var(--hoo-mute); font-size: 0.84em; font-style: italic; }
.hoo-input-text,
.hoo-textarea,
.hoo-field input[type=text],
.hoo-field select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid rgba(31, 111, 126, 0.3);
    border-radius: 4px;
    background: var(--hoo-sand-2);
    color: var(--hoo-ink);
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
}
.hoo-textarea { resize: vertical; line-height: 1.55; font-family: var(--f-serif, serif); font-size: 1.05rem; }
.hoo-input-text:focus,
.hoo-textarea:focus,
.hoo-field select:focus { outline: none; border-color: var(--hoo-teal); }
[data-theme="dark"] .hoo-input-text,
[data-theme="dark"] .hoo-textarea,
[data-theme="dark"] .hoo-field input,
[data-theme="dark"] .hoo-field select { background: #061015; color: #E8D9BD; }
.hoo-field select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M0 0l5 6 5-6z' fill='%231F6F7E'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    background-size: 10px 6px;
    padding-right: 2rem;
}
.hoo-q { font-weight: 600; color: var(--hoo-ink); margin: var(--s-4, 1rem) 0 var(--s-2, 0.5rem); font-size: 0.95rem; }

.hoo-form { max-width: 720px; margin: 0 auto; }
.hoo-form .calc-btn { margin-top: var(--s-3, 0.75rem); }

.hoo-result {
    max-width: 740px;
    margin: var(--s-6, 2rem) auto 0;
    padding: var(--s-5, 1.5rem) var(--s-6, 2rem);
    background: var(--hoo-sand-2);
    border-left: 3px solid var(--hoo-coral);
    border-radius: 4px;
}
[data-theme="dark"] .hoo-result { background: #0F1B22; }
.hoo-result-tag {
    font-family: var(--f-mono, monospace);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--hoo-coral-d);
    margin-bottom: var(--s-3, 0.75rem);
}
.hoo-result-body { font-family: var(--f-serif, serif); font-size: 1.05rem; line-height: 1.7; color: var(--hoo-ink); }
.hoo-result-body p { margin-bottom: var(--s-3, 0.75rem); }
.hoo-result-body p:last-child { margin-bottom: 0; }
.hoo-result-body b { color: var(--hoo-indigo); font-weight: 600; }
.hoo-result-body em { color: var(--hoo-teal); }
[data-theme="dark"] .hoo-result-body b { color: var(--hoo-gold); }
[data-theme="dark"] .hoo-result-body em { color: var(--hoo-coral); }

/* ====== 1. HERO ====== */
.hoo-hero {
    position: relative;
    overflow: hidden;
    color: var(--hoo-sand);
    padding: var(--s-12, 5rem) 0 var(--s-12, 5rem);
    isolation: isolate;
}
.hoo-hero-canvas { position: absolute; inset: 0; z-index: 0; }
.hoo-horizon { position: absolute; inset: 0; width: 100%; height: 100%; }
.hoo-palm {
    position: absolute;
    right: 4%; bottom: 0;
    width: 140px; height: 280px;
    opacity: 0.85;
}
.hoo-script {
    position: absolute;
    bottom: 6%; left: 4%;
    font-family: var(--f-serif, serif);
    font-style: italic;
    font-size: clamp(3rem, 9vw, 7rem);
    color: rgba(244, 230, 204, 0.15);
    font-weight: 500;
    letter-spacing: 0.02em;
    pointer-events: none;
}
.hoo-hero-content { position: relative; z-index: 1; max-width: 820px; }
.hoo-hero .hoo-eyebrow { color: var(--hoo-gold); }
.hoo-hero-title {
    font-family: var(--f-serif, serif);
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    line-height: 1.08;
    color: var(--hoo-sand);
    margin-bottom: var(--s-5, 1.5rem);
    font-weight: 600;
}
.hoo-hero-title .hoo-hero-line-1 { display: block; }
.hoo-hero-title em {
    display: block;
    font-style: italic;
    color: var(--hoo-coral);
    font-weight: 500;
}
.hoo-hero-title .hoo-hero-line-3 { display: block; color: var(--hoo-gold); font-style: italic; }
.hoo-hero-sub,
.hoo-hero-promise {
    font-size: 1.08rem;
    line-height: 1.75;
    color: rgba(244, 230, 204, 0.92);
    max-width: 68ch;
    margin-bottom: var(--s-4, 1rem);
}
.hoo-hero-sub em,
.hoo-hero-promise em { color: var(--hoo-gold); font-style: italic; }
.hoo-hero-sub b,
.hoo-hero-promise b { color: var(--hoo-sand); }
.hoo-hero-cta { display: flex; gap: var(--s-3, 0.75rem); flex-wrap: wrap; margin-top: var(--s-5, 1.5rem); }

/* ====== 2. RITUAL ====== */
.hoo-ritual-stage { max-width: 820px; margin: 0 auto; }
.hoo-target-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--s-2, 0.5rem);
    margin-bottom: var(--s-3, 0.75rem);
}
.hoo-target-opt {
    display: flex;
    gap: var(--s-3, 0.75rem);
    padding: var(--s-3, 0.75rem) var(--s-4, 1rem);
    border: 1px solid rgba(31, 111, 126, 0.3);
    border-radius: 6px;
    background: var(--hoo-sand-2);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
[data-theme="dark"] .hoo-target-opt { background: #0F1B22; }
.hoo-target-opt input { position: absolute; opacity: 0; }
.hoo-target-mark {
    width: 14px; height: 14px;
    border-radius: 50%;
    border: 1.5px solid var(--hoo-teal);
    flex: none;
    margin-top: 4px;
    position: relative;
}
.hoo-target-opt input:checked ~ .hoo-target-mark::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    background: var(--hoo-coral);
}
.hoo-target-opt:has(input:checked) {
    border-color: var(--hoo-coral);
    background: rgba(232, 155, 127, 0.12);
}
.hoo-target-body { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.hoo-target-name { font-weight: 600; color: var(--hoo-ink); font-size: 1.02rem; }
.hoo-target-meaning { font-size: 0.88rem; color: var(--hoo-mute); line-height: 1.4; }

.hoo-dur-row { display: flex; gap: var(--s-2, 0.5rem); flex-wrap: wrap; }
.hoo-dur-opt { position: relative; cursor: pointer; }
.hoo-dur-opt input { position: absolute; opacity: 0; }
.hoo-dur-opt span {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(31, 111, 126, 0.3);
    border-radius: 4px;
    background: var(--hoo-sand-2);
    font-size: 0.95rem;
    color: var(--hoo-ink);
}
[data-theme="dark"] .hoo-dur-opt span { background: #0F1B22; }
.hoo-dur-opt input:checked + span {
    border-color: var(--hoo-coral);
    background: rgba(232, 155, 127, 0.15);
    color: var(--hoo-coral-d);
    font-weight: 600;
}

.hoo-ritual-timer {
    max-width: 500px;
    margin: var(--s-7, 2.5rem) auto;
    padding: var(--s-7, 2.5rem) var(--s-6, 2rem);
    background: var(--hoo-indigo);
    color: var(--hoo-sand);
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 20px 60px -20px rgba(11, 59, 74, 0.4);
}
.hoo-timer-phrase {
    font-family: var(--f-serif, serif);
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 500;
    color: var(--hoo-coral);
    margin-bottom: var(--s-2, 0.5rem);
    transition: opacity 0.4s;
}
.hoo-timer-display {
    font-family: var(--f-mono, monospace);
    font-size: clamp(2.4rem, 6vw, 3.6rem);
    font-weight: 300;
    color: var(--hoo-gold);
    margin-bottom: var(--s-3, 0.75rem);
    letter-spacing: 0.04em;
}
.hoo-timer-cue {
    font-style: italic;
    color: rgba(244, 230, 204, 0.85);
    margin-bottom: var(--s-4, 1rem);
    font-size: 1rem;
}

.hoo-recent {
    max-width: 720px;
    margin: var(--s-7, 2.5rem) auto 0;
    padding: var(--s-4, 1rem) var(--s-5, 1.5rem);
    background: var(--hoo-sand-2);
    border-radius: 4px;
}
[data-theme="dark"] .hoo-recent { background: #0F1B22; }
.hoo-recent-h {
    font-family: var(--f-mono, monospace);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--hoo-coral-d);
    margin-bottom: var(--s-2, 0.5rem);
}
.hoo-recent-list { list-style: none; padding: 0; margin: 0; }
.hoo-recent-list li {
    padding: 0.4rem 0;
    border-bottom: 1px dotted rgba(11, 59, 74, 0.15);
    display: flex;
    gap: var(--s-2, 0.5rem);
    flex-wrap: wrap;
    align-items: baseline;
    font-size: 0.94rem;
}
.hoo-recent-list li:last-child { border-bottom: none; }
.hoo-recent-kind { font-weight: 600; color: var(--hoo-teal); }
.hoo-recent-label { flex: 1; color: var(--hoo-mute); font-style: italic; }
.hoo-recent-dur { font-family: var(--f-mono, monospace); color: var(--hoo-mute); font-size: 0.85rem; }
.hoo-recent-date { font-family: var(--f-mono, monospace); color: var(--hoo-coral-d); font-size: 0.85rem; min-width: 48px; }
.hoo-recent-what { color: var(--hoo-ink); flex: 1; }

/* ====== 3. DIAGNOSTIC / 4. RESPONSIBILITY / 8. GUILT-SHAME / 9. PONO ====== */
.hoo-diagnostic { background: linear-gradient(180deg, var(--hoo-sand) 0%, var(--hoo-sand-2) 100%); }
.hoo-resp { background: var(--hoo-sand); }
.hoo-gs { background: linear-gradient(180deg, var(--hoo-sand) 0%, var(--hoo-sand-2) 100%); }
.hoo-pono { background: var(--hoo-sand); }
[data-theme="dark"] .hoo-diagnostic,
[data-theme="dark"] .hoo-gs { background: linear-gradient(180deg, #0A1418 0%, #0F1B22 100%); }
[data-theme="dark"] .hoo-resp,
[data-theme="dark"] .hoo-pono { background: #0A1418; }

/* ====== 5. THREE SELVES ====== */
.hoo-selves { background: var(--hoo-sand-2); }
[data-theme="dark"] .hoo-selves { background: #0F1B22; }
.hoo-selves-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--s-4, 1rem);
    max-width: 980px;
    margin: 0 auto var(--s-7, 2.5rem);
}
.hoo-self-card {
    padding: var(--s-5, 1.5rem);
    background: var(--hoo-sand);
    border: 1px solid rgba(31, 111, 126, 0.18);
    border-radius: 6px;
}
[data-theme="dark"] .hoo-self-card { background: #0A1418; border-color: rgba(111, 163, 181, 0.18); }
.hoo-self-name {
    font-family: var(--f-serif, serif);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--hoo-indigo);
    margin-bottom: 4px;
}
[data-theme="dark"] .hoo-self-name { color: var(--hoo-gold); }
.hoo-self-tag {
    font-family: var(--f-mono, monospace);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--hoo-coral-d);
    margin-bottom: var(--s-3, 0.75rem);
}
.hoo-self-card p:last-child { font-size: 0.95rem; line-height: 1.6; color: var(--hoo-mute); }
.hoo-self-card p:last-child em { color: var(--hoo-teal); font-style: italic; }

/* ====== 6. CLEANING TOOLS ====== */
.hoo-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--s-4, 1rem);
    max-width: 1100px;
    margin: 0 auto;
}
.hoo-tool-card {
    padding: var(--s-5, 1.5rem);
    background: var(--hoo-sand-2);
    border-left: 3px solid var(--hoo-coral);
    border-radius: 4px;
}
[data-theme="dark"] .hoo-tool-card { background: #0F1B22; }
.hoo-tool-name {
    font-family: var(--f-serif, serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--hoo-indigo);
    margin-bottom: var(--s-2, 0.5rem);
}
[data-theme="dark"] .hoo-tool-name { color: var(--hoo-gold); }
.hoo-tool-card p:last-child { font-size: 0.96rem; line-height: 1.65; color: var(--hoo-mute); }
.hoo-tool-card p:last-child em { color: var(--hoo-teal); font-style: italic; }
.hoo-tool-card p:last-child b  { color: var(--hoo-ink); }
[data-theme="dark"] .hoo-tool-card p:last-child b { color: var(--hoo-sand); }

/* ====== 7. REPAIR LETTER ====== */
.hoo-letter { background: linear-gradient(180deg, var(--hoo-sand-2) 0%, var(--hoo-sand) 100%); }
[data-theme="dark"] .hoo-letter { background: linear-gradient(180deg, #0F1B22 0%, #0A1418 100%); }
.hoo-letter .hoo-letter,
.hoo-result .hoo-letter {
    background: var(--hoo-sand);
    padding: var(--s-6, 2rem);
    border: 1px solid var(--hoo-coral);
    border-radius: 6px;
    margin-bottom: var(--s-4, 1rem);
    font-family: var(--f-serif, serif);
    line-height: 1.8;
}
[data-theme="dark"] .hoo-result .hoo-letter { background: #061015; }
.hoo-result .hoo-letter p { margin-bottom: var(--s-3, 0.75rem); }
.hoo-result .hoo-letter b { color: var(--hoo-coral-d); font-weight: 600; }

/* ====== 8. INNER CHILD ====== */
.hoo-child { background: var(--hoo-sand-2); }
[data-theme="dark"] .hoo-child { background: #0F1B22; }
.hoo-uhane-reply {
    background: var(--hoo-sand);
    padding: var(--s-5, 1.5rem);
    border-left: 3px solid var(--hoo-teal);
    border-radius: 4px;
    margin-bottom: var(--s-4, 1rem);
}
[data-theme="dark"] .hoo-uhane-reply { background: #061015; }
.hoo-uhane-reply p:first-child {
    font-family: var(--f-mono, monospace);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--hoo-teal);
    margin-bottom: var(--s-3, 0.75rem);
}

/* ====== 10. ANCESTOR ====== */
.hoo-ancestor { background: linear-gradient(180deg, var(--hoo-sand) 0%, var(--hoo-sand-2) 100%); }
[data-theme="dark"] .hoo-ancestor { background: linear-gradient(180deg, #0A1418 0%, #0F1B22 100%); }
.hoo-ancestor-card {
    max-width: 760px;
    margin: 0 auto;
    padding: var(--s-6, 2rem);
    background: var(--hoo-sand);
    border: 1px solid rgba(31, 111, 126, 0.2);
    border-radius: 6px;
}
[data-theme="dark"] .hoo-ancestor-card { background: #061015; }
.hoo-ancestor-h {
    font-family: var(--f-mono, monospace);
    font-size: 0.85rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--hoo-coral-d);
    margin-bottom: var(--s-4, 1rem);
}
.hoo-ancestor-steps {
    padding-left: 1.2rem;
    line-height: 1.7;
    color: var(--hoo-ink);
    margin-bottom: var(--s-4, 1rem);
}
.hoo-ancestor-steps li { margin-bottom: var(--s-3, 0.75rem); }
.hoo-ancestor-steps b { color: var(--hoo-indigo); }
[data-theme="dark"] .hoo-ancestor-steps b { color: var(--hoo-gold); }
.hoo-ancestor-steps em { color: var(--hoo-teal); font-style: italic; }

/* ====== 11. ALOHA ====== */
.hoo-aloha { background: var(--hoo-sand); }
.hoo-aloha-card {
    max-width: 720px;
    margin: 0 auto;
    padding: var(--s-6, 2rem);
    background: linear-gradient(135deg, var(--hoo-coral) 0%, var(--hoo-gold) 100%);
    border-radius: 8px;
    color: var(--hoo-indigo-d);
    text-align: center;
}
.hoo-aloha-q {
    font-family: var(--f-serif, serif);
    font-size: 1.25rem;
    line-height: 1.5;
    margin-bottom: var(--s-4, 1rem);
}
.hoo-aloha-options {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--hoo-indigo-d);
}
.hoo-aloha-options em { font-style: italic; color: var(--hoo-indigo); }

/* ====== 12. STREAK ====== */
.hoo-streak { background: var(--hoo-sand-2); }
[data-theme="dark"] .hoo-streak { background: #0F1B22; }
.hoo-streak-stage {
    max-width: 760px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--s-6, 2rem);
    align-items: start;
}
@media (max-width: 600px) {
    .hoo-streak-stage { grid-template-columns: 1fr; text-align: center; }
}
.hoo-streak-stat {
    padding: var(--s-5, 1.5rem) var(--s-6, 2rem);
    background: var(--hoo-indigo);
    color: var(--hoo-sand);
    border-radius: 6px;
    text-align: center;
}
.hoo-streak-num {
    font-family: var(--f-serif, serif);
    font-size: 3rem;
    font-weight: 600;
    color: var(--hoo-coral);
    line-height: 1;
    margin-bottom: var(--s-2, 0.5rem);
}
.hoo-streak-label {
    font-family: var(--f-mono, monospace);
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--hoo-gold);
}
.hoo-streak-form { margin: 0; flex: 1; }
.hoo-recent-clean li { display: flex; gap: var(--s-3, 0.75rem); }

/* ====== 13. QUOTES ====== */
.hoo-quotes { background: var(--hoo-sand); }
.hoo-quote-card {
    max-width: 760px;
    margin: 0 auto;
    padding: var(--s-7, 2.5rem) var(--s-6, 2rem);
    background: var(--hoo-sand-2);
    border-radius: 6px;
    text-align: center;
}
[data-theme="dark"] .hoo-quote-card { background: #0F1B22; }
.hoo-quote-text {
    font-family: var(--f-serif, serif);
    font-style: italic;
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    line-height: 1.55;
    color: var(--hoo-ink);
    margin-bottom: var(--s-4, 1rem);
}
.hoo-quote-meta { color: var(--hoo-mute); font-size: 0.95rem; margin-bottom: var(--s-4, 1rem); }
.hoo-quote-author { font-weight: 600; color: var(--hoo-coral-d); }
.hoo-quote-source { font-style: italic; }
.hoo-quote-actions { display: flex; gap: var(--s-3, 0.75rem); justify-content: center; flex-wrap: wrap; }
.hoo-quote-actions button[aria-pressed="true"] { color: var(--hoo-coral); font-weight: 600; }

/* fade-in animations ---------------------------- */
.fade-up { opacity: 0; transform: translateY(12px); animation: hooFadeUp 0.6s 0.05s forwards; }
.fade-up.delay-1 { animation-delay: 0.15s; }
.fade-up.delay-2 { animation-delay: 0.3s; }
.fade-up.delay-3 { animation-delay: 0.45s; }
.fade-up.delay-4 { animation-delay: 0.6s; }
@keyframes hooFadeUp { to { opacity: 1; transform: translateY(0); } }
