/* ==========================================================================
   Side Notes — website styles
   Shared by index.html and the legal pages (privacypolicy.html,
   termsandconditions.html). Brand colors mirror the app theme.
   ========================================================================== */

:root {
    --bg: #F7F8FA;
    --surface: #FFFFFF;
    --border: #E3E6EB;
    --ink: #14171C;
    --ink-soft: #5B6472;
    --accent: #0AE98A;
    --accent-deep: #079C67;
    --accent-ink: #052E1D;
    --accent-soft: rgba(10, 233, 138, 0.14);

    --dark-bg: #171B22;
    --dark-surface: #1E242D;
    --dark-elevated: #252D38;
    --dark-border: #343D4A;
    --dark-text: #EDF1F6;
    --dark-text-soft: #98A2B3;

    --card-01: #B8F2D0;
    --card-02: #FFF1A8;
    --card-03: #FFD0B3;
    --card-04: #B9E7F2;
    --card-05: #F6C2CF;
    --card-ink: #182019;

    --radius: 18px;
    --radius-lg: 28px;
    --shadow: 0 12px 40px rgba(20, 23, 28, 0.10);
    --shadow-soft: 0 6px 24px rgba(20, 23, 28, 0.07);
    --container: 1120px;
}

/* ---------- Reset & base ---------- */

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--accent-deep); }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow { max-width: 780px; }

.eyebrow {
    display: inline-block;
    margin: 0 0 12px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-deep);
}

.eyebrow-on-dark { color: var(--accent); }

.lead, .section-lead {
    font-size: 1.15rem;
    color: var(--ink-soft);
}

.section-head {
    max-width: 640px;
    margin: 0 auto 56px;
    text-align: center;
}

.section {
    padding: 96px 0;
}

.section-tight { padding: 48px 0; }

.section-dark {
    background: var(--dark-bg);
    color: var(--dark-text);
}

.section-dark .section-lead,
.section-dark p { color: var(--dark-text-soft); }
.section-dark h2 { color: var(--dark-text); }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 26px;
    border: 1.5px solid transparent;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--accent);
    color: var(--accent-ink);
    box-shadow: 0 10px 26px rgba(10, 233, 138, 0.35);
}

.btn-primary:hover { background: var(--accent-deep); color: #FFFFFF; }

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--border);
}

.btn-ghost:hover { border-color: var(--ink-soft); }

.btn-on-dark {
    color: var(--dark-text);
    border-color: var(--dark-border);
}

.btn-on-dark:hover { border-color: var(--accent); color: var(--accent); }

.btn-small { padding: 10px 18px; font-size: 0.9rem; }

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(247, 248, 250, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
    border-color: var(--border);
    box-shadow: 0 4px 20px rgba(20, 23, 28, 0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 72px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--ink);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}

.brand-icon { border-radius: 10px; }

.site-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.site-nav a {
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.15s ease;
}

.site-nav a:hover { color: var(--ink); }
.site-nav .nav-cta { color: var(--accent-ink); }
.site-nav .nav-cta:hover { color: #FFFFFF; }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
    padding: 80px 0 96px;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}

.hero-copy h1 { margin-bottom: 20px; }

.hero-copy .lead {
    max-width: 34rem;
    margin-bottom: 32px;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
}

.hero-trust {
    margin: 0;
    font-size: 0.92rem;
    color: var(--ink-soft);
}

/* ---------- App mock: scene (map + drawer) ---------- */

.hero-visual { position: relative; }

.scene {
    position: relative;
    aspect-ratio: 10 / 11;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #E8F2EC;
}

.scene-small { aspect-ratio: 10 / 9; }

.scene-map {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 18%, rgba(185, 231, 242, 0.9), transparent 42%),
        radial-gradient(circle at 18% 82%, rgba(184, 242, 208, 0.8), transparent 46%),
        linear-gradient(160deg, #EAF4EE 0%, #DFF0E6 55%, #D6ECE2 100%);
}

.scene-map::before,
.scene-map::after {
    content: "";
    position: absolute;
    inset: -20%;
    background:
        repeating-linear-gradient(58deg, transparent 0 58px, rgba(255, 255, 255, 0.55) 58px 62px),
        repeating-linear-gradient(-32deg, transparent 0 92px, rgba(255, 255, 255, 0.4) 92px 95px);
}

.scene-map::after {
    background:
        repeating-linear-gradient(12deg, transparent 0 130px, rgba(120, 207, 160, 0.35) 130px 134px);
}

.handle-pill {
    position: absolute;
    left: 0;
    top: 34%;
    width: 7px;
    height: 96px;
    border-radius: 0 6px 6px 0;
    background: var(--accent);
    box-shadow: 0 0 18px rgba(10, 233, 138, 0.55);
}

.drawer {
    position: absolute;
    top: 6%;
    bottom: 6%;
    left: 6%;
    right: 14%;
    display: flex;
    flex-direction: column;
    background: var(--dark-bg);
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 24px 60px rgba(3, 9, 30, 0.45);
}

.drawer-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--dark-border);
}

.drawer-bar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.drawer-bar-icon {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: var(--dark-text-soft);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.drawer-bar-icon.is-active {
    stroke: var(--accent);
    fill: var(--accent);
}

.drawer-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
}

.note-card {
    border-radius: 14px;
    padding: 13px 15px;
    color: var(--card-ink);
    position: relative;
}

.note-card h3 {
    margin: 0 0 6px;
    font-size: 0.98rem;
    font-weight: 700;
}

.note-card p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.5;
    opacity: 0.85;
}

.note-date {
    display: block;
    margin-top: 8px;
    text-align: right;
    font-size: 0.72rem;
    opacity: 0.65;
}

.card-01 { background: var(--card-01); }
.card-02 { background: var(--card-02); }
.card-03 { background: var(--card-03); }
.card-04 { background: var(--card-04); }
.card-05 { background: var(--card-05); }

.drawer-fab {
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 1.7rem;
    font-weight: 600;
    line-height: 1;
    box-shadow: 0 10px 24px rgba(10, 233, 138, 0.4);
}

/* ---------- Steps ---------- */

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

.step {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow-soft);
}

.step p { margin: 0; color: var(--ink-soft); }

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent-deep);
    font-weight: 700;
    font-size: 1.05rem;
}

/* ---------- Showcase (floating note) ---------- */

.showcase-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.showcase-copy p { max-width: 32rem; }

.check-list {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.check-list li {
    position: relative;
    padding-left: 32px;
    color: var(--dark-text-soft);
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 20px;
    height: 20px;
    border-radius: 7px;
    background: var(--accent);
}

.check-list li::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 8px;
    width: 5px;
    height: 9px;
    border-right: 2px solid var(--accent-ink);
    border-bottom: 2px solid var(--accent-ink);
    transform: rotate(42deg);
}

.float-note {
    position: absolute;
    left: 12%;
    top: 18%;
    right: 12%;
    background: var(--card-01);
    color: var(--card-ink);
    border-radius: 16px;
    padding: 16px 18px 18px;
    box-shadow: 0 24px 50px rgba(3, 9, 30, 0.35);
}

.float-note-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.float-note-title { font-weight: 700; font-size: 1.05rem; }
.float-note-actions { opacity: 0.7; }

.float-note-tasks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
    font-size: 0.92rem;
}

.float-note-tasks li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.float-note-tasks .box {
    flex: none;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    border: 2px solid rgba(24, 32, 25, 0.55);
    border-radius: 5px;
}

.float-note-tasks .done { text-decoration: line-through; opacity: 0.65; }

.float-note-tasks .done .box {
    background: rgba(24, 32, 25, 0.8);
    border-color: rgba(24, 32, 25, 0.8);
}

.float-note-resize {
    position: absolute;
    right: 10px;
    bottom: 8px;
    width: 18px;
    height: 18px;
    border-right: 2px solid rgba(24, 32, 25, 0.4);
    border-bottom: 2px solid rgba(24, 32, 25, 0.4);
}

/* ---------- Features ---------- */

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

.feature {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.feature p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
    border-radius: 13px;
    background: var(--accent-soft);
    color: var(--accent-deep);
}

.feature-icon svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- Privacy ---------- */

.privacy-inner {
    max-width: 720px;
    text-align: center;
}

.privacy-copy { margin: 0 auto; }
.privacy-copy p { max-width: 38rem; margin-left: auto; margin-right: auto; }

.privacy .check-list {
    display: inline-grid;
    text-align: left;
    margin-bottom: 32px;
}

/* ---------- Premium ---------- */

.premium-inner {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 64px;
    align-items: center;
}

.premium-art img {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--surface);
}

.premium-list-title {
    margin: 32px 0 16px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.premium-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 18px;
}

.premium-list li {
    padding-left: 34px;
    position: relative;
}

.premium-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 20px;
    height: 20px;
    border-radius: 7px;
    background: var(--accent);
}

.premium-list li::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 8px;
    width: 5px;
    height: 9px;
    border-right: 2px solid var(--accent-ink);
    border-bottom: 2px solid var(--accent-ink);
    transform: rotate(42deg);
}

.premium-list strong { display: block; }

.premium-list span {
    color: var(--ink-soft);
    font-size: 0.96rem;
}

/* ---------- Community ---------- */

.community-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 44px;
    box-shadow: var(--shadow-soft);
}

.community-text h2 { font-size: 1.5rem; margin-bottom: 8px; }
.community-text p { margin: 0; color: var(--ink-soft); max-width: 36rem; }

/* ---------- FAQ ---------- */

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 20px 22px;
    background: none;
    border: none;
    font: inherit;
    font-weight: 600;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}

.faq-question:hover { color: var(--accent-deep); }

.faq-icon {
    position: relative;
    flex: none;
    width: 14px;
    height: 14px;
}

.faq-icon::before,
.faq-icon::after {
    content: "";
    position: absolute;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.faq-icon::before { left: 0; top: 6px; width: 14px; height: 2px; }
.faq-icon::after { left: 6px; top: 0; width: 2px; height: 14px; }

.faq-question[aria-expanded="true"] .faq-icon::after { transform: rotate(90deg); opacity: 0; }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease;
}

.faq-answer p {
    margin: 0;
    padding: 0 22px 22px;
    color: var(--ink-soft);
}

/* ---------- Final CTA ---------- */

.cta-final {
    padding-top: 40px;
    text-align: center;
}

.cta-final-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: var(--dark-bg);
    color: var(--dark-text);
    border-radius: var(--radius-lg);
    padding: 72px 32px;
}

.cta-final-inner h2 { color: var(--dark-text); margin-top: 16px; }
.cta-final-inner p { color: var(--dark-text-soft); margin-bottom: 20px; }
.cta-icon { border-radius: 18px; }

/* ---------- Footer ---------- */

.site-footer {
    margin-top: 96px;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    padding: 56px 24px 40px;
    flex-wrap: wrap;
}

.footer-brand p {
    margin: 12px 0 0;
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 64px;
    flex-wrap: wrap;
}

.footer-col { display: grid; gap: 10px; align-content: start; }

.footer-col h3 {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 4px;
}

.footer-col a {
    color: var(--ink);
    text-decoration: none;
    font-size: 0.95rem;
}

.footer-col a:hover { color: var(--accent-deep); }

.footer-bottom {
    padding: 20px 24px 32px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.88rem;
}

/* ---------- Legal pages ---------- */

.legal-content {
    padding: 64px 0 96px;
}

.legal-content .container {
    max-width: 780px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px 56px;
    box-shadow: var(--shadow-soft);
}

.legal-content h1 {
    font-size: clamp(2rem, 4vw, 2.6rem);
    margin-bottom: 8px;
}

.legal-content .last-updated {
    color: var(--ink-soft);
    font-size: 0.92rem;
    margin-bottom: 32px;
}

.legal-content h2 {
    font-size: 1.35rem;
    margin-top: 40px;
}

.legal-content p, .legal-content li { color: var(--ink); }
.legal-content ul { padding-left: 1.3em; }

.legal-content a {
    color: var(--accent-deep);
    font-weight: 500;
}

.legal-content hr.legal-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 40px 0;
}

.legal-content .legal-notice {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 22px;
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.footer {
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    padding: 40px 0 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.footer-bottom {
    padding: 20px 0 32px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.88rem;
}

/* ---------- Reveal animation ----------
   Only hidden when JS is available to reveal it again (the .js class is set by
   script.js), so a page without JS shows all content immediately. */

.js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .btn, .feature { transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
    .hero-inner,
    .showcase-inner,
    .premium-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-visual { max-width: 520px; margin: 0 auto; width: 100%; }
    .premium-art { max-width: 420px; margin: 0 auto; }
    .premium-art { order: -1; }

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

@media (max-width: 720px) {
    body { font-size: 16px; }
    .section { padding: 72px 0; }
    .hero { padding: 48px 0 64px; }

    .nav-toggle { display: flex; }

    .site-nav {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 24px 24px;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 20px 40px rgba(20, 23, 28, 0.08);
        display: none;
    }

    .site-nav.is-open { display: flex; }

    .site-nav a {
        padding: 12px 0;
        border-bottom: 1px solid var(--border);
    }

    .site-nav .nav-cta {
        margin-top: 16px;
        border-bottom: none;
        text-align: center;
    }

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

    .community-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 32px 28px;
    }

    .footer-inner { flex-direction: column; gap: 36px; }
    .footer-links { gap: 40px; }

    .legal-content .container {
        padding: 32px 24px;
        border-radius: var(--radius);
    }

    .cta-final-inner { padding: 56px 24px; }
}
