/* To Do List & Daily Planner — legal and marketing pages.
   One stylesheet for index, privacy policy and terms so the three read as one site. */

:root {
    --bg: #f7f8f7;
    --surface: #ffffff;
    --border: #e3e7e4;
    --text: #16201d;
    --text-muted: #5a6b66;
    --accent: #0e6b5d;
    --accent-soft: #e6f2ef;
    --radius: 14px;
    --measure: 46rem;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0f1413;
        --surface: #161d1b;
        --border: #263330;
        --text: #e8efec;
        --text-muted: #9aaba6;
        --accent: #4fc0aa;
        --accent-soft: #15302b;
    }
}

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

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

body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 17px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.wrap {
    max-width: var(--measure);
    margin: 0 auto;
    padding: 0 20px;
}

/* ---- header ---- */

header.site {
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

header.site .wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 24px;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    padding-bottom: 18px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    font-weight: 650;
    font-size: 1.02rem;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.brand .mark {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: block;
    border-radius: 8px;
}

nav.site a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.94rem;
    margin-left: 20px;
}

nav.site a:first-child { margin-left: 0; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--accent); }

/* ---- page body ---- */

main { padding: 44px 0 72px; }

h1 {
    font-size: clamp(1.9rem, 5vw, 2.5rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 10px;
}

h2 {
    font-size: 1.28rem;
    letter-spacing: -0.01em;
    margin: 2.4em 0 0.6em;
    padding-top: 0.3em;
}

h3 {
    font-size: 1.05rem;
    margin: 1.8em 0 0.4em;
}

p, ul, ol { margin: 0 0 1.05em; }

ul, ol { padding-left: 1.3em; }

li { margin-bottom: 0.45em; }

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

/* The Drive scope is one long unbreakable token; without this it forces the
   whole page to scroll sideways on a phone. */
code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9em;
    background: var(--accent-soft);
    border-radius: 5px;
    padding: 2px 6px;
    overflow-wrap: anywhere;
}

.lede {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.6em;
}

.updated {
    display: inline-block;
    font-size: 0.86rem;
    color: var(--text-muted);
    background: var(--accent-soft);
    border-radius: 999px;
    padding: 5px 13px;
    margin-bottom: 1.8em;
}

/* ---- callouts ---- */

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 22px;
    margin: 0 0 1.4em;
}

.card > :last-child { margin-bottom: 0; }

.card.accent {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.card h3:first-child { margin-top: 0; }

/* ---- tables ---- */

.table-scroll { overflow-x: auto; margin: 0 0 1.4em; }

table {
    border-collapse: collapse;
    width: 100%;
    min-width: 32rem;
    font-size: 0.95rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

th, td {
    text-align: left;
    vertical-align: top;
    padding: 11px 14px;
    border-bottom: 1px solid var(--border);
}

th { font-weight: 650; background: var(--accent-soft); }

tr:last-child td { border-bottom: 0; }

/* ---- home page extras ---- */

.hero { text-align: center; padding: 20px 0 8px; }

.hero .mark-lg {
    width: 96px;
    height: 96px;
    display: block;
    margin: 0 auto 22px;
    border-radius: 22px;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 14px;
    margin: 0 0 1.6em;
    padding: 0;
    list-style: none;
}

.features li {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 17px 19px;
    margin: 0;
}

.features b { display: block; margin-bottom: 3px; }

.features span { color: var(--text-muted); font-size: 0.94rem; }

/* A jump target reached from the Play listing must not land under the sticky
   header, and an anchored section should announce itself when it does. */
:target {
    scroll-margin-top: 90px;
    animation: flash 1.6s ease-out 1;
}

@keyframes flash {
    from { background: var(--accent-soft); }
    to { background: transparent; }
}

/* ---- footer ---- */

footer.site {
    border-top: 1px solid var(--border);
    background: var(--surface);
    padding: 26px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

footer.site .wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    justify-content: space-between;
}

footer.site a { color: var(--text-muted); }
footer.site a:hover { color: var(--accent); }
