/* Psyweek public site (landing + info pages). Standalone: not part of the Vite build. */

:root {
    --brand: #27b9c4;
    --brand-dark: #1c8b9a;
    --brand-deep: #16717d;
    --brand-light: #7fd6dd;
    --brand-soft: #d9f1f4;
    --ink: #1f2f3d;
    --ink-2: #47596a;
    --ink-3: #6e8190;
    --mist: #eaf4f7;
    --white: #fff;
    --coral: #ff8f7a;
    --amber: #f4b942;
    --radius: 24px;
    --radius-sm: 16px;
    --shadow: 0 14px 36px rgba(28, 139, 154, .13);
    --shadow-sm: 0 4px 14px rgba(28, 139, 154, .10);
    --max: 1120px;
    --ease: cubic-bezier(.22, 1, .36, 1);
}

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

body {
    margin: 0;
    font-family: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--brand-deep); }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 4.6vw + .6rem, 3.6rem); }
h2 { font-size: clamp(1.7rem, 2.6vw + .6rem, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0; }

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

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid rgba(39, 185, 196, .6); outline-offset: 3px; border-radius: 8px; }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 10px 20px; border-radius: 999px;
    font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s, color .18s;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: linear-gradient(135deg, var(--brand-deep), var(--brand-dark) 55%, #23a7b3); color: #fff; box-shadow: 0 8px 22px rgba(28, 139, 154, .28); }
.btn--primary:hover { box-shadow: 0 12px 28px rgba(28, 139, 154, .36); transform: translateY(-1px); }
.btn--ghost { background: rgba(39, 185, 196, .10); color: var(--brand-deep); }
.btn--ghost:hover { background: rgba(39, 185, 196, .18); }
.btn--light { background: #fff; color: var(--brand-deep); box-shadow: 0 8px 22px rgba(0, 0, 0, .12); }
.btn--light:hover { transform: translateY(-1px); }
.btn--lg { min-height: 54px; padding: 14px 28px; font-size: 1.08rem; }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(28, 139, 154, .08); }
.hdr__in { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.hdr__logo img { height: 32px; width: auto; }
.hdr__nav { display: none; gap: 4px; margin-left: 12px; }
.hdr__nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; padding: 10px 12px; border-radius: 10px; min-height: 44px; display: inline-flex; align-items: center; }
.hdr__nav a:hover { color: var(--brand-deep); background: rgba(39, 185, 196, .08); }
.hdr__cta { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.hdr__cta .btn--ghost { display: none; }
@media (min-width: 480px) { .hdr__cta .btn--ghost { display: inline-flex; } }
@media (min-width: 940px) { .hdr__nav { display: flex; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 96px); background: linear-gradient(180deg, #d7eef3 0%, var(--mist) 45%, #fff 100%); }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.blob--1 { width: 420px; height: 420px; left: -140px; top: -120px; background: #9fe3e9; }
.blob--2 { width: 360px; height: 360px; right: -120px; top: 40px; background: #cbe9f0; }
.blob--3 { width: 300px; height: 300px; right: 30%; bottom: -160px; background: #ffe6de; }
.hero__in { position: relative; display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero__in { grid-template-columns: 1.1fr .9fr; gap: 24px; } }

.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: .9rem; font-weight: 700; background: #fff; color: var(--brand-deep); box-shadow: var(--shadow-sm); }
.pill--free svg { color: var(--coral); }
.hero h1 { margin: 20px 0 18px; max-width: 19ch; }
.lead { font-size: clamp(1.05rem, .5vw + .95rem, 1.25rem); color: var(--ink-2); max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__facts { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink-2); font-weight: 600; font-size: .95rem; }
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts svg { color: var(--brand-dark); }

.hero__visual { position: relative; display: flex; justify-content: flex-start; min-height: 580px; width: 100%; max-width: 500px; margin: 0 auto; }
.phone {
    width: 280px; height: 570px; border-radius: 44px; padding: 12px; background: #1b2530;
    box-shadow: 0 30px 60px rgba(31, 47, 61, .28), inset 0 0 0 2px #2b3946;
    position: relative; z-index: 2;
}
.phone::before { content: ""; position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 96px; height: 24px; background: #1b2530; border-radius: 0 0 16px 16px; z-index: 3; }
.phone__screen { height: 100%; border-radius: 34px; overflow: hidden; background: linear-gradient(180deg, #d7eef3 0%, var(--mist) 38%, #fff 100%); display: flex; flex-direction: column; padding: 34px 12px 0; font-size: 13px; }
.ph-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 4px 10px; }
.ph-title { font-weight: 800; color: var(--brand-deep); font-size: 14px; }
.ph-avatar { width: 30px; height: auto; }
.ph-card { background: #fff; border-radius: 16px; box-shadow: var(--shadow-sm); padding: 10px 12px; margin-bottom: 12px; }
.ph-row { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 6px; }
.ph-row b { color: var(--brand-deep); }
.ph-bar { height: 8px; border-radius: 999px; background: rgba(39, 185, 196, .12); overflow: hidden; }
.ph-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-light), var(--brand)); border-radius: 999px; animation: fill 1.6s var(--ease) both; }
@keyframes fill { from { width: 0 !important; } }
.ph-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ph-list li { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 14px; padding: 9px 10px; box-shadow: var(--shadow-sm); font-weight: 600; }
.ph-list li b { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--brand-deep); background: rgba(39, 185, 196, .12); padding: 4px 9px; border-radius: 999px; }
.ph-list li.done { background: rgba(39, 185, 196, .16); }
.ph-list li.done b { background: var(--brand); color: #fff; }
.ph-ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: var(--brand-dark); background: rgba(39, 185, 196, .12); }
.ph-bonus { margin-top: 12px; border-radius: 14px; padding: 10px 12px; background: linear-gradient(135deg, #d946ef, #f59e0b); color: #fff; }
.ph-bonus span { display: block; font-weight: 800; }
.ph-bonus small { opacity: .85; }
.ph-nav { margin-top: auto; display: flex; justify-content: space-between; padding: 10px 6px 12px; background: #fff; border-radius: 18px 18px 0 0; font-size: 10px; color: var(--ink-3); font-weight: 600; }
.ph-nav .on { color: var(--brand-deep); }

.hero__mascot { position: absolute; right: 0; bottom: 10px; width: 200px; height: auto; z-index: 3; filter: drop-shadow(0 16px 24px rgba(31, 47, 61, .18)); animation: float 6s ease-in-out infinite; }
.bubble { position: absolute; right: 0; bottom: 232px; z-index: 3; max-width: 190px; background: #fff; color: var(--ink); font-weight: 600; font-size: .9rem; line-height: 1.35; padding: 10px 14px; border-radius: 18px 18px 4px 18px; box-shadow: var(--shadow); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 899px) {
    .hero__visual { min-height: 0; padding-bottom: 8px; max-width: 460px; }
    .hero__mascot { width: 150px; right: 0; bottom: 0; }
    .bubble { right: 0; bottom: 160px; max-width: 150px; font-size: .82rem; }
}
@media (max-width: 520px) {
    .hero__visual { max-width: 100%; justify-content: center; }
    .hero__mascot { display: none; } .bubble { display: none; }
    .phone { width: 260px; height: 530px; }
}
@media (prefers-reduced-motion: reduce) { .hero__mascot, .bubble, .ph-bar i { animation: none; } }

/* ---------- stats ---------- */
.stats { padding: 8px 0 0; }
.stats__list { list-style: none; margin: -28px 0 0; padding: 20px 8px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); position: relative; z-index: 2; }
.stats__list li { text-align: center; padding: 8px 4px; }
.stats__list strong { display: block; font-size: 1.9rem; font-weight: 800; color: var(--brand-deep); letter-spacing: -.02em; line-height: 1.1; }
.stats__list span { color: var(--ink-2); font-weight: 600; font-size: .92rem; }
@media (min-width: 720px) { .stats__list { grid-template-columns: repeat(5, 1fr); } }

/* ---------- sections ---------- */
.sec { padding: clamp(56px, 8vw, 110px) 0; }
.sec--soft { background: linear-gradient(180deg, #fff 0%, var(--mist) 50%, #fff 100%); }
.sec--tight { padding-top: 0; }
.sec__head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.sec__head p { margin-top: 14px; color: var(--ink-2); font-size: 1.08rem; }
.eyebrow { display: inline-block; margin-bottom: 14px; font-size: .85rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-dark); }
.sec__cta { text-align: center; margin-top: 40px; }

.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card { background: #fff; border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow-sm); border: 1px solid rgba(28, 139, 154, .08); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card--tint { background: linear-gradient(180deg, #fff, #f3fafb); }
.card__icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: var(--brand-deep); background: var(--brand-soft); margin-bottom: 18px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: 1rem; }

.chips { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chips li { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px; background: var(--mist); color: var(--ink); font-weight: 600; font-size: .95rem; }
.chips svg { color: var(--brand-dark); }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; counter-reset: step; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; background: #fff; border-radius: var(--radius); padding: 30px 26px 28px; box-shadow: var(--shadow-sm); }
.step__num { position: absolute; top: 18px; right: 22px; font-size: 3rem; font-weight: 800; color: rgba(39, 185, 196, .16); line-height: 1; }
.step__icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--brand-dark), var(--brand)); margin-bottom: 18px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-2); }

/* ---------- mascot ---------- */
.mascot { background: linear-gradient(135deg, #e3f5f7 0%, #f7fbfc 60%, #fff5f1 100%); }
.mascot__in { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .mascot__in { grid-template-columns: 1fr 1fr; gap: 48px; } }
.mascot__copy p { color: var(--ink-2); margin-top: 14px; font-size: 1.05rem; }
.mood-demo { display: flex; align-items: center; gap: 18px; margin-top: 28px; padding: 18px 22px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); width: fit-content; max-width: 100%; }
.mood-demo figure { margin: 0; text-align: center; }
.mood-demo img { width: 96px; height: auto; margin: 0 auto 8px; }
.mood-demo figcaption { font-size: .85rem; font-weight: 700; color: var(--ink-2); }
.mood-demo__arrow { color: var(--brand); }
.animals { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (min-width: 560px) { .animals { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 900px) { .animals { grid-template-columns: repeat(2, 1fr); gap: 18px; } .animals li:nth-child(5) { grid-column: 1 / -1; max-width: 50%; margin: 0 auto; width: 100%; } }
.animals li { background: #fff; border-radius: var(--radius); padding: 18px 12px 14px; text-align: center; font-weight: 700; color: var(--ink); box-shadow: var(--shadow-sm); transition: transform .25s var(--ease); }
.animals li:hover { transform: translateY(-6px) rotate(-1.5deg); }
.animals img { width: 100%; max-width: 120px; height: auto; margin: 0 auto 10px; }

/* ---------- note / free ---------- */
.note { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 28px; color: var(--ink-3); font-size: .95rem; text-align: center; }
.note svg { flex: none; color: var(--brand-dark); }

.free { display: grid; gap: 28px; align-items: center; background: #fff; border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow); }
@media (min-width: 800px) { .free { grid-template-columns: auto 1fr; gap: 48px; } }
.free__price { text-align: center; padding: 22px 30px; border-radius: var(--radius); background: linear-gradient(135deg, var(--brand-deep), var(--brand)); color: #fff; }
.free__price span { display: block; font-size: clamp(3rem, 6vw, 4.4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.free__price small { display: block; margin-top: 8px; font-weight: 600; opacity: .9; }
.free__copy p { margin-top: 12px; color: var(--ink-2); font-size: 1.05rem; }
.checklist { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 640px) { .checklist { grid-template-columns: 1fr 1fr; } }
.checklist li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.checklist svg { flex: none; color: #fff; background: var(--brand); border-radius: 50%; padding: 3px; width: 22px; height: 22px; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 12px; }
.faq__item { background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); border: 1px solid rgba(28, 139, 154, .08); padding: 0 22px; }
.faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 700; font-size: 1.05rem; min-height: 44px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary svg { flex: none; color: var(--brand-dark); transition: transform .25s var(--ease); }
.faq__item[open] summary svg { transform: rotate(180deg); }
.faq__item p { padding: 0 0 20px; color: var(--ink-2); }

/* ---------- final cta ---------- */
.cta { display: grid; gap: 22px; align-items: center; justify-items: center; text-align: center; padding: clamp(32px, 5vw, 56px); border-radius: var(--radius); background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand-dark) 45%, #2aa9b6 100%); color: #fff; box-shadow: 0 22px 50px rgba(28, 139, 154, .32); position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: rgba(255, 255, 255, .08); right: -120px; top: -160px; }
.cta > * { position: relative; }
.cta h2 { color: #fff; }
.cta p { margin-top: 8px; opacity: .92; font-size: 1.05rem; }
.cta__mascot { width: 120px; height: auto; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .18)); }
@media (min-width: 800px) { .cta { grid-template-columns: auto 1fr auto; text-align: left; justify-items: start; } .cta__mascot { width: 150px; } }

/* ---------- footer ---------- */
.ftr { border-top: 1px solid rgba(28, 139, 154, .1); background: #f6fbfc; padding: 40px 0 32px; color: var(--ink-2); font-size: .95rem; }
.ftr__in { display: grid; gap: 28px; }
@media (min-width: 800px) { .ftr__in { grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; } }
.ftr__brand p { margin-top: 12px; max-width: 34ch; }
.ftr__links { display: grid; gap: 6px; align-content: start; }
.ftr__links a, .ftr__contact a { color: var(--ink-2); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; }
.ftr__links a:hover, .ftr__contact a:hover { color: var(--brand-deep); }
.ftr__contact p { margin-top: 10px; color: var(--ink-3); }

/* ---------- info pages ---------- */
.page { padding: clamp(32px, 5vw, 64px) 0 clamp(56px, 8vw, 100px); }
.page__in { max-width: 800px; }
.page__back { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; margin-bottom: 20px; min-height: 44px; }
.page h1 { font-size: clamp(1.8rem, 3vw + .6rem, 2.7rem); }
.page__meta { margin: 12px 0 0; color: var(--ink-3); font-size: .92rem; }
.prose { margin-top: 28px; font-size: 1.05rem; color: var(--ink-2); }
.prose h2, .prose h3, .prose h4 { color: var(--ink); margin: 1.6em 0 .6em; line-height: 1.25; }
.prose h2 { font-size: 1.6rem; }
.prose h3 { font-size: 1.25rem; }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1em; }
.prose li { margin: .35em 0; }
.prose a { color: var(--brand-deep); font-weight: 600; }
.prose img { border-radius: var(--radius-sm); margin: 1em 0; }
.prose blockquote { margin: 1.2em 0; padding: 12px 20px; border-left: 4px solid var(--brand); background: var(--mist); border-radius: 0 12px 12px 0; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0; }
.prose td, .prose th { border: 1px solid rgba(28, 139, 154, .18); padding: 8px 10px; text-align: left; }

/* ---------- reveal (only when JS is running; see layout.blade.php) ---------- */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0ms); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; transition: none; } }
