/* Rooted marketing site. Light sage pages, deep forest hero and CTA, one amber accent. */

:root {
    --sage: #f1f7f1;
    --white: #ffffff;
    --line: #d4e4d7;
    --mint: #e3f1e5;
    --ink: #1a1a1a;
    --ink-soft: #3f5a44;
    --ink-muted: #4a6a4f;
    --green: #2d7a3e;
    --done: #4caf50;
    --miss: #d93a2e;
    --forest: #173628;
    --forest-raised: #1f4434;
    --forest-line: #3e6a52;
    --on-forest: #f1f7f1;
    --on-forest-soft: #cfe3d2;
    --on-forest-muted: #a9cbb0;
    --amber: #ffb74d;
    --amber-soft: #fff1da;
    --amber-ink: #8a5a00;
    --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
    --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --max: 1120px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--sage);
    color: var(--ink);
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* height: auto keeps the aspect ratio when max-width shrinks an image */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

svg {
    flex: none;
}

a {
    color: var(--green);
}

:focus-visible {
    outline: 3px solid var(--amber);
    outline-offset: 3px;
    border-radius: 8px;
}

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

h1,
h2,
h3 {
    margin: 0;
    font-family: var(--display);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.08;
}

.accent {
    color: var(--green);
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--green);
}

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

.center {
    text-align: center;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(241, 247, 241, 0.9);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--line);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-family: var(--display);
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.brand img {
    width: 34px;
    height: 34px;
    border-radius: 9px;
}

/* The full name does not fit next to the links and the button on narrow screens */
@media (max-width: 900px) {
    .brand-sub {
        display: none;
    }
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 15px;
    font-weight: 500;
}

.nav a {
    color: var(--ink-muted);
    text-decoration: none;
}

.nav a:hover {
    color: var(--ink);
}

@media (max-width: 760px) {
    .nav .nav-link {
        display: none;
    }
}

/* ---------- Buttons & store badges ---------- */

.btn,
.nav .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 20px;
    border-radius: 999px;
    background: var(--forest);
    color: var(--on-forest);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.btn:hover,
.nav .btn:hover {
    background: var(--green);
    color: var(--white);
}

.store-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.center .store-badges,
.store-badges.center {
    justify-content: center;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 188px;
    min-height: 56px;
    padding: 10px 20px;
    border-radius: 14px;
    background: var(--amber);
    color: var(--forest);
    text-decoration: none;
    transition: transform 0.15s ease;
}

.store-badge:hover {
    transform: translateY(-2px);
}

.store-badge svg {
    width: 26px;
    height: 26px;
}

.store-badge span {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    text-align: left;
}

.store-badge small {
    font-size: 11px;
    font-weight: 600;
}

.store-badge strong {
    font-size: 18px;
    font-weight: 700;
}

.store-badge.outline {
    background: transparent;
    color: var(--on-forest);
    border: 1.5px solid var(--forest-line);
}

/* ---------- Sections ---------- */

.section {
    padding: 96px 0;
}

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

.section-head h2 {
    margin-top: 14px;
    font-size: clamp(34px, 4.6vw, 52px);
}

.section-head p {
    margin: 16px 0 0;
    color: var(--ink-soft);
    font-size: 19px;
}

.dark {
    background: var(--forest);
    color: var(--on-forest);
}

@media (max-width: 760px) {
    .section {
        padding: 72px 0;
    }
}

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

.hero {
    padding: 88px 0 96px;
    background:
        radial-gradient(60% 50% at 50% 0%, rgba(76, 175, 80, 0.18), transparent 70%),
        var(--forest);
}

.hero-copy {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    margin-top: 20px;
    font-size: clamp(40px, 5.8vw, 64px);
    line-height: 1.04;
}

.hero .lead {
    max-width: 600px;
    margin: 22px auto 0;
    color: var(--on-forest-soft);
    font-size: 20px;
    line-height: 1.5;
}

.hero .store-badges {
    margin-top: 32px;
}

.hero-note {
    margin: 14px 0 0;
    color: var(--on-forest-muted);
    font-size: 14px;
}

/* Three widgets in a row under the headline */
.showcase {
    display: grid;
    grid-template-columns: 1fr 1fr 1.25fr;
    align-items: center;
    gap: 20px;
    margin-top: 64px;
}

.showcase > * {
    min-width: 0;
}

@media (max-width: 960px) {
    .showcase {
        grid-template-columns: 1fr 1fr;
    }

    .showcase .week {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 56px 0 64px;
    }

    .showcase {
        grid-template-columns: 1fr;
        margin-top: 44px;
    }

    /* The week widget shows again in the features below */
    .showcase .week {
        display: none;
    }
}

/* ---------- Widget mockups (HTML, so they stay sharp) ---------- */

.widget {
    padding: 20px;
    border-radius: 26px;
    background: var(--sage);
    color: var(--ink);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.widget-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
}

.widget-head strong {
    font-size: 17px;
}

.widget-head span {
    color: var(--ink-muted);
    font-size: 14px;
    font-weight: 500;
}

.habit-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.habit-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    background: var(--white);
    font-size: 15px;
    font-weight: 500;
}

.habit-row.is-done > span:not(.check):not(.pill) {
    color: var(--ink-muted);
    text-decoration: line-through;
}

.check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--done);
    flex: none;
}

.check svg {
    width: 15px;
    height: 15px;
}

.check.miss {
    background: var(--miss);
}

.check.open {
    background: var(--white);
    border: 2.5px solid var(--line);
}

/* Focus timer widget */
.focus-widget {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px;
    border-radius: 26px;
    background: #101a15;
    color: var(--on-forest);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.ring {
    position: relative;
    width: 92px;
    height: 92px;
    flex: none;
}

.ring svg {
    width: 100%;
    height: 100%;
}

.ring .sprout {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 40px;
    height: 40px;
}

.focus-info {
    min-width: 0;
}

.focus-info .tag {
    color: var(--done);
    font-size: 13px;
    font-weight: 600;
}

.focus-info .time {
    font-family: var(--display);
    font-size: 38px;
    font-weight: 700;
    line-height: 1.05;
}

.focus-info .ends {
    color: var(--on-forest-muted);
    font-size: 13px;
}

.focus-info .pause {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 14px;
    border-radius: 999px;
    background: var(--done);
    color: #08210f;
    font-size: 13px;
    font-weight: 700;
}

/* Week widget */
.week-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) repeat(7, 26px);
    align-items: center;
    gap: 8px 4px;
}

.week-grid .day {
    color: var(--ink-muted);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.week-grid .day.today {
    color: var(--green);
    font-weight: 800;
}

.week-grid .name {
    overflow: hidden;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.week-grid .cell {
    display: flex;
    align-items: center;
    justify-content: center;
}

.week-grid .check {
    width: 22px;
    height: 22px;
}

.week-grid .check svg {
    width: 12px;
    height: 12px;
}

.week-grid .now {
    box-shadow: 0 0 0 4px var(--mint);
}

.week-grid .future {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--line);
}

/* ---------- 5 steps vs 1 tap ---------- */

.compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.way {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 32px;
    border: 1.5px solid var(--line);
    border-radius: 28px;
    background: var(--white);
}

.way .big {
    font-family: var(--display);
    font-size: 96px;
    font-weight: 700;
    line-height: 1;
    color: #9aae9d;
}

.way h3 {
    font-size: 24px;
}

.way p {
    margin: 6px 0 14px;
    color: var(--ink-soft);
    font-size: 16px;
}

.way.rooted {
    border-color: var(--green);
    background: var(--green);
    color: var(--white);
}

.way.rooted .big {
    color: var(--amber);
}

.way.rooted p {
    color: #d7ebda;
}

.way.rooted .habit-row {
    color: var(--ink);
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.chips li {
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--sage);
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 500;
}

@media (max-width: 860px) {
    .compare {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .way {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 24px;
    }

    .way .big {
        font-size: 72px;
    }
}

/* ---------- Feature grid ---------- */

.features {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.feature {
    display: flex;
    flex-direction: column;
    grid-column: span 3;
    min-width: 0;
    overflow: hidden;
    border: 1.5px solid var(--line);
    border-radius: 28px;
    background: var(--white);
}

.feature.third {
    grid-column: span 2;
}

.feature-text {
    padding: 28px 28px 0;
}

.feature h3 {
    font-size: 23px;
}

.feature p {
    margin: 8px 0 0;
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 1.55;
}

/* The visual sits on a soft panel at the bottom of each card */
.feature-visual {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    margin: 24px 16px 16px;
    padding: 28px 24px;
    border-radius: 20px;
    background: var(--mint);
}

.feature-visual > * {
    width: 100%;
    max-width: 380px;
}

.feature-visual .widget,
.feature-visual .focus-widget {
    box-shadow: 0 10px 24px rgba(23, 54, 40, 0.12);
}

/* One tap: before and after */
.tap-flow {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tap-flow .habit-row {
    border: 1.5px solid var(--line);
}

.tap-flow .habit-row.after {
    border-color: var(--done);
}

.tap-flow .habit-row .check.open {
    box-shadow: 0 0 0 6px rgba(255, 183, 77, 0.4);
}

.pill {
    margin-left: auto;
    padding: 3px 12px;
    border-radius: 999px;
    background: var(--amber-soft);
    color: var(--amber-ink);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.pill.ok {
    background: var(--mint);
    color: #1f5e2b;
}

.tap-flow .arrow {
    display: flex;
    justify-content: center;
    color: var(--green);
}

/* Focus timer: seed and tree */
.timers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.timer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 18px 12px;
    border-radius: 20px;
    background: var(--white);
    text-align: center;
}

.timer svg {
    width: 64px;
    height: 64px;
}

.timer .time {
    font-family: var(--display);
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
}

.timer .status {
    color: var(--ink-muted);
    font-size: 13px;
    font-weight: 500;
}

.timer.growing {
    background: var(--forest);
    color: var(--on-forest);
}

.timer.growing .status {
    color: var(--amber);
}

/* Small phone preview, cropped to the app screen under the store caption */
.feature-visual.shot {
    padding: 24px 24px 0;
    align-items: flex-end;
    background: var(--forest);
}

.feature-visual.shot .crop {
    max-width: 210px;
    aspect-ratio: 10 / 11;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
}

.feature-visual.shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
}

@media (max-width: 960px) {
    .feature,
    .feature.third {
        grid-column: span 3;
    }

    .feature.third:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .feature-text {
        padding: 24px 22px 0;
    }

    .feature-visual {
        margin: 20px 10px 10px;
        padding: 18px 12px;
    }

    .feature-visual .widget {
        padding: 16px;
    }

    .week-grid {
        grid-template-columns: minmax(0, 1fr) repeat(7, 22px);
        gap: 8px 2px;
    }

    .week-grid .check {
        width: 20px;
        height: 20px;
    }

    .week-grid .check svg {
        width: 11px;
        height: 11px;
    }

    .week-grid .name {
        font-size: 13px;
    }
}

@media (max-width: 680px) {
    .features {
        grid-template-columns: 1fr;
    }

    .feature,
    .feature.third,
    .feature.third:last-child {
        grid-column: auto;
    }
}

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

.faq {
    max-width: 760px;
    margin: 0 auto;
}

.faq details {
    margin-bottom: 10px;
    border: 1.5px solid var(--line);
    border-radius: 18px;
    background: var(--white);
}

.faq summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    color: var(--green);
    font-size: 26px;
    font-weight: 400;
    line-height: 1;
    transition: transform 0.2s ease;
}

.faq details[open] summary::after {
    transform: rotate(45deg);
}

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

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

.cta {
    text-align: center;
}

.cta h2 {
    max-width: 720px;
    margin: 0 auto;
    font-size: clamp(34px, 5vw, 56px);
}

.cta p {
    margin: 14px 0 32px;
    color: var(--on-forest-soft);
    font-size: 19px;
}

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

.site-footer {
    padding: 36px 0;
    border-top: 1px solid var(--forest-line);
    background: var(--forest);
    color: var(--on-forest-muted);
    font-size: 14px;
}

.site-footer .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.site-footer a {
    color: var(--on-forest-muted);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--on-forest);
}

/* ---------- Legal & support pages ---------- */

.doc {
    max-width: 760px;
    margin: 0 auto;
    padding: 64px 24px 96px;
}

.doc-head {
    margin-bottom: 40px;
    text-align: center;
}

.doc-head .app-name {
    margin: 0 0 18px;
    color: var(--ink-muted);
    font-weight: 600;
}

.doc h1 {
    margin: 0 0 10px;
    font-size: clamp(36px, 5vw, 48px);
}

.doc .updated {
    margin: 0;
    color: var(--ink-muted);
    font-size: 15px;
}

.doc h2 {
    margin: 36px 0 10px;
    font-size: 23px;
}

.doc p,
.doc li {
    color: var(--ink-soft);
}

.doc ul {
    padding-left: 22px;
}

.doc li {
    margin-bottom: 8px;
}

.doc strong {
    color: var(--ink);
}

.card {
    padding: 28px;
    border: 1.5px solid var(--line);
    border-radius: 24px;
    background: var(--white);
}

.doc .card h2 {
    margin-top: 0;
}

.tips {
    padding: 0;
    list-style: none;
}

.tips li {
    display: flex;
    gap: 12px;
}

/* ---------- 404 ---------- */

.not-found {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 24px;
    text-align: center;
}

.not-found h1 {
    margin: 20px 0 10px;
    font-size: clamp(36px, 5vw, 48px);
}

.not-found p {
    margin: 0 0 28px;
    color: var(--ink-soft);
}
