/* Smart Bookmarks — the public site's styles, shared by every page on this host.

   Layout follows the sister sites (PS Trophies, Achievements): sticky top bar, hero with one
   device, alternating feature rows, a "more" grid, policies, footer. The look is this app's own.

   Palette: the app's dark scheme and the launcher icon. --ember is the brand orange (#E8601A,
   play-store-screenshots/config.js) raised one step so it reads on espresso; --amber is the top
   of the icon's bookmark gradient; --slate is the icon's tile. Type: Fraunces for display (an
   editorial serif, because this is a reading app), Plus Jakarta Sans for everything else — the
   font the app itself ships in res/font. */
:root {
    color-scheme: dark;

    --espresso: #140b07;
    --deep:     #1a0e09;
    --surface:  #22140d;
    --raised:   #2b1a12;
    --line:     #3d281e;
    --line-lo:  #2a1911;

    --ink:      #fbeee6;
    --dim:      #cdb2a3;
    --faint:    #94796b;

    --ember:    #f47a36;
    --ember-hi: #ff9457;
    --amber:    #ffc673;
    --slate:    #36404e;
    --sage:     #93d6a0;

    --shell: min(1160px, 100% - 2.5rem);
    --display: "Fraunces", Georgia, "Times New Roman", serif;
    --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: var(--ember-hi); }

/* height:auto matters: every screenshot carries width/height attributes, which would otherwise
   pin its height while CSS scales the width. */
img { display: block; max-width: 100%; height: auto; }

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

/* ── Type roles ──────────────────────────────────────────────────────── */
.display {
    font-family: var(--display);
    font-optical-sizing: auto;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.04;
    text-wrap: balance;
    margin: 0;
}
.display em {
    font-style: italic;
    font-weight: 500;
    color: var(--ember);
}

.eyebrow {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--faint);
    margin: 0 0 1rem;
}
.eyebrow b { color: var(--amber); font-weight: 700; }
.eyebrow .sep { color: var(--line); padding: 0 .4em; }

.lede { color: var(--dim); font-size: 1.07rem; margin: 1.15rem 0 0; }

/* ── Top bar ─────────────────────────────────────────────────────────── */
.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: color-mix(in srgb, var(--espresso) 84%, transparent);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-lo);
}
.topbar__in {
    width: var(--shell);
    margin: 0 auto;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 1.1rem;
}
.topbar__brand {
    display: flex;
    align-items: center;
    gap: .65rem;
    color: inherit;
    text-decoration: none;
}
.topbar__mark { width: 32px; height: 32px; }
.topbar__name {
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.12rem;
    letter-spacing: -.01em;
}
.topbar__spacer { flex: 1; }
.topbar__link {
    color: var(--dim);
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
}
.topbar__link:hover { color: var(--ink); }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.cta {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    padding: .82rem 1.4rem;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--ember-hi), #ea6420);
    color: #2a0e02;
    font-weight: 800;
    font-size: .95rem;
    text-decoration: none;
    border: 1px solid rgba(255, 210, 170, .25);
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.cta:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 12px 32px -12px rgba(244, 122, 54, .75);
}
.cta--sm { padding: .5rem 1rem; font-size: .84rem; }
.cta__glyph { width: 17px; height: 19px; flex: none; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line-lo);
}
/* Two warm pools of light, like a reading lamp on a desk — a tint, not a spotlight. */
.hero::before {
    content: "";
    position: absolute;
    inset: -35% -10% auto -15%;
    height: 900px;
    background:
        radial-gradient(40% 46% at 26% 38%, rgba(232, 96, 26, .34), transparent 70%),
        radial-gradient(30% 36% at 82% 30%, rgba(255, 198, 115, .12), transparent 70%);
    pointer-events: none;
}
.hero__in {
    position: relative;
    width: var(--shell);
    margin: 0 auto;
    padding: clamp(2.8rem, 6vw, 4.6rem) 0 clamp(3rem, 6vw, 4.5rem);
}
.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.1rem); }
.hero__lede { max-width: 33rem; }
.hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.4rem;
    margin-top: 2.1rem;
}
.hero__terms {
    font-size: .8rem;
    font-weight: 600;
    color: var(--faint);
}
.hero__terms span + span::before { content: "·"; padding: 0 .55em; color: var(--line); }

/* ── Device frame ────────────────────────────────────────────────────── */
.device {
    position: relative;
    margin: 0 auto;
    width: min(296px, 78%);
    padding: 9px;
    border-radius: 42px;
    background: linear-gradient(160deg, #4a3427, #24160f 55%, #160c08);
    box-shadow:
        0 0 0 1px rgba(255, 220, 200, .06),
        0 46px 90px -40px rgba(0, 0, 0, .95),
        0 22px 50px -32px rgba(232, 96, 26, .55);
}
.device img { border-radius: 34px; width: 100%; }
.device--hero { width: min(268px, 76%); transform: rotate(2.5deg); }

/* ── The signature: what one share does ──────────────────────────────
   The app's own pipeline, in order: read the page, shorten, summarize, file it
   (BookmarkProcessingStage). The markup holds the finished state, so with scripting or motion
   off the card is simply complete; the script only replays it step by step. */
.flow {
    width: var(--shell);
    margin: 0 auto;
    padding: clamp(3.5rem, 7vw, 6rem) 0;
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
    border-bottom: 1px solid var(--line-lo);
}
.flow h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
.steps {
    list-style: none;
    margin: 2rem 0 0;
    padding: 0;
    counter-reset: step;
}
.steps li {
    counter-increment: step;
    position: relative;
    padding: .2rem 0 1.15rem 3rem;
    color: var(--faint);
    transition: color .4s ease;
}
.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: .1rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: .82rem;
    font-weight: 800;
    color: var(--faint);
    border: 1px solid var(--line);
    background: var(--deep);
    transition: background .4s ease, color .4s ease, border-color .4s ease;
}
.steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: calc(1rem - .5px);
    top: 2.35rem;
    bottom: .1rem;
    width: 1px;
    background: var(--line);
}
.steps b { display: block; color: inherit; font-weight: 700; font-size: 1rem; }
.steps span { display: block; font-size: .92rem; line-height: 1.55; }
.steps li.is-on { color: var(--dim); }
.steps li.is-on b { color: var(--ink); }
.steps li.is-on::before {
    background: var(--ember);
    border-color: var(--ember);
    color: #2a0e02;
}

.mock {
    position: relative;
    background: linear-gradient(180deg, var(--raised), var(--surface));
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 1.15rem;
    box-shadow: 0 40px 80px -50px rgba(0, 0, 0, .9);
}
.mock__tag {
    position: absolute;
    top: -.7rem;
    right: 1.1rem;
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--faint);
    background: var(--espresso);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: .15rem .6rem;
}
.mock__share {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .82rem;
    color: var(--dim);
    background: var(--deep);
    border: 1px dashed var(--line);
    border-radius: 12px;
    padding: .6rem .8rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.mock__share svg { flex: none; width: 16px; height: 16px; color: var(--ember); }
.mock__card {
    margin-top: .9rem;
    background: var(--deep);
    border: 1px solid var(--line-lo);
    border-radius: 16px;
    padding: 1rem;
}
.mock__head { display: flex; gap: .9rem; align-items: flex-start; }
.mock__thumb {
    flex: none;
    width: 72px;
    height: 72px;
    border-radius: 12px;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 198, 115, .9), transparent 45%),
        linear-gradient(135deg, #b8551d, #5a2a12 60%, var(--slate));
}
.mock__title {
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.12rem;
    line-height: 1.25;
    margin: 0;
}
.mock__site { font-size: .78rem; color: var(--faint); margin-top: .3rem; }
.mock__summary {
    margin: .95rem 0 0;
    padding: .1rem 0 .1rem .9rem;
    border-left: 2px solid var(--ember);
    font-size: .86rem;
    line-height: 1.55;
    color: var(--dim);
}
.mock__summary strong { color: var(--ember-hi); font-weight: 700; }
.mock__summary ul { margin: .25rem 0 0; padding-left: 1.05rem; }
.mock__chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .95rem; }
.chip {
    font-size: .75rem;
    font-weight: 700;
    padding: .25rem .7rem;
    border-radius: 999px;
    background: rgba(244, 122, 54, .14);
    color: var(--ember-hi);
    border: 1px solid rgba(244, 122, 54, .35);
}
.chip--quiet { background: transparent; color: var(--dim); border-color: var(--line); }

/* Each part of the card waits for its step while the replay runs. */
.js .flow.is-playing [data-at] {
    opacity: .0;
    transform: translateY(6px);
    transition: opacity .45s ease, transform .45s ease;
}
.js .flow.is-playing [data-at].is-on { opacity: 1; transform: none; }
.mock__replay {
    margin-top: 1rem;
    background: none;
    border: 0;
    color: var(--faint);
    font: inherit;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    padding: .2rem 0;
}
.mock__replay:hover { color: var(--ink); }
/* Only the script can replay, so without it there is no button. */
.mock__replay { display: none; }
.js .mock__replay { display: inline-block; }
.js .mock__replay[hidden] { display: none; }

/* ── Feature rows ────────────────────────────────────────────────────── */
.feature {
    width: var(--shell);
    margin: 0 auto;
    padding: clamp(3.5rem, 7vw, 6rem) 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
    border-bottom: 1px solid var(--line-lo);
}
.feature--flip .feature__copy { order: 2; }
.feature h2 { font-size: clamp(1.85rem, 3.5vw, 2.6rem); }
.points {
    list-style: none;
    margin: 1.6rem 0 0;
    padding: 0;
}
.points li {
    position: relative;
    padding-left: 1.6rem;
    margin: .55rem 0;
    color: var(--dim);
    font-size: .96rem;
}
/* A tiny bookmark ribbon instead of a bullet. */
.points li::before {
    content: "";
    position: absolute;
    left: .15rem;
    top: .42em;
    width: 8px;
    height: 11px;
    background: linear-gradient(180deg, var(--amber), var(--ember));
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%);
}

/* ── More inside ─────────────────────────────────────────────────────── */
.more {
    width: var(--shell);
    margin: 0 auto;
    padding: clamp(3.5rem, 7vw, 5.5rem) 0;
    border-bottom: 1px solid var(--line-lo);
}
.more h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
.more__grid {
    margin-top: 2.4rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.2rem;
}
@media (max-width: 1040px) { .more__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .more__grid { grid-template-columns: 1fr; } }
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.4rem 1.4rem 1.5rem;
    transition: border-color .18s ease, transform .18s ease;
}
.card:hover { border-color: #5a3a2a; transform: translateY(-3px); }
.card__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(244, 122, 54, .12);
    color: var(--ember-hi);
    margin-bottom: 1rem;
}
.card__icon svg { width: 22px; height: 22px; }
.card h3 {
    margin: 0 0 .4rem;
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.2rem;
}
.card p { margin: 0; color: var(--dim); font-size: .92rem; line-height: 1.55; }

.also {
    margin: 2.4rem 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: .6rem 2rem;
    list-style: none;
    padding: 1.6rem 0 0;
    border-top: 1px solid var(--line-lo);
}
.also li {
    font-size: .88rem;
    color: var(--dim);
    display: flex;
    gap: .65rem;
    align-items: baseline;
}
.also li::before { content: "+"; color: var(--ember); font-weight: 800; }

/* ── Plans ───────────────────────────────────────────────────────────── */
.plans {
    width: var(--shell);
    margin: 0 auto;
    padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}
.plans h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
.plans__grid {
    margin-top: 2.4rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
    align-items: stretch;
}
.plan {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 1.6rem 1.5rem 1.7rem;
}
.plan--pro { border-color: rgba(244, 122, 54, .5); }
.plan--ultra {
    border-color: rgba(255, 198, 115, .55);
    background:
        radial-gradient(120% 70% at 100% 0%, rgba(255, 198, 115, .10), transparent 60%),
        var(--surface);
}
.plan__name {
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--faint);
}
.plan--pro .plan__name { color: var(--ember-hi); }
.plan--ultra .plan__name { color: var(--amber); }
.plan h3 {
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.45rem;
    line-height: 1.2;
    margin: .5rem 0 0;
}
.plan__note { color: var(--faint); font-size: .84rem; margin: .4rem 0 0; }
.plan ul { list-style: none; margin: 1.2rem 0 0; padding: 1.1rem 0 0; border-top: 1px solid var(--line-lo); }
.plan li {
    position: relative;
    padding-left: 1.5rem;
    margin: .5rem 0;
    font-size: .92rem;
    color: var(--dim);
}
.plan li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .5em;
    width: 9px;
    height: 5px;
    border-left: 2px solid var(--ember);
    border-bottom: 2px solid var(--ember);
    transform: rotate(-45deg);
}
.plans__small { margin-top: 1.4rem; font-size: .84rem; color: var(--faint); }

/* ── Policies ────────────────────────────────────────────────────────── */
.legal {
    border-top: 1px solid var(--line-lo);
    background: var(--deep);
}
.legal__in {
    width: var(--shell);
    margin: 0 auto;
    padding: clamp(3rem, 6vw, 4.5rem) 0;
}
.legal h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.legal__grid {
    margin-top: 2.2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.1rem;
}
.doc {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--raised);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.3rem 1.4rem;
    transition: border-color .18s ease, transform .18s ease;
}
.doc:hover { border-color: var(--ember); transform: translateY(-3px); }
.doc__kind {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--faint);
}
.doc h3 {
    margin: .5rem 0 .35rem;
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.2rem;
}
.doc p { margin: 0; color: var(--dim); font-size: .9rem; line-height: 1.55; }
.contact { margin-top: 2rem; font-size: .9rem; color: var(--dim); line-height: 1.9; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line-lo); }
.foot__in {
    width: var(--shell);
    margin: 0 auto;
    padding: 2.6rem 0 3.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem 2rem;
    align-items: center;
    justify-content: space-between;
}
.foot p { margin: 0; color: var(--faint); font-size: .84rem; max-width: 44rem; line-height: 1.6; }
.foot__mark {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-family: var(--display);
    font-weight: 600;
    font-size: 1rem;
}
.foot__mark img { width: 26px; height: 26px; }

/* ── Document pages (delete-account, 404) ────────────────────────────── */
.page {
    width: min(46rem, 100% - 2.5rem);
    margin: 0 auto;
    padding: clamp(2.5rem, 6vw, 4rem) 0 4rem;
}
.page h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
.page .sub { color: var(--faint); margin: .7rem 0 0; font-size: .92rem; }
.page h2 {
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.45rem;
    margin: 2.6rem 0 .6rem;
}
.page p, .page li { color: var(--dim); }
.page strong { color: var(--ink); }
.page code {
    font-size: .86em;
    background: var(--surface);
    border: 1px solid var(--line-lo);
    border-radius: 6px;
    padding: .05em .4em;
}
.page .note {
    font-size: .9rem;
    border-left: 2px solid var(--line);
    padding-left: 1rem;
    color: var(--faint);
}
.page ol { padding-left: 1.3rem; }
.page ol li { margin: .45rem 0; }
.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: .4rem 1.3rem;
    margin-top: 1rem;
}
.panel table { width: 100%; border-collapse: collapse; }
.panel td {
    padding: .85rem 0;
    border-bottom: 1px solid var(--line-lo);
    vertical-align: top;
    font-size: .94rem;
    color: var(--dim);
}
.panel tr:last-child td { border-bottom: 0; }
.panel td:first-child { color: var(--ink); font-weight: 700; width: 34%; padding-right: 1rem; }
.back { display: inline-block; margin-top: 2.6rem; font-weight: 700; text-decoration: none; }

/* ── Motion ──────────────────────────────────────────────────────────── */
.js .rise {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s cubic-bezier(.2, .7, .3, 1), transform .7s cubic-bezier(.2, .7, .3, 1);
}
.js .rise.is-in { opacity: 1; transform: none; }
.rise--1 { transition-delay: .06s; }
.rise--2 { transition-delay: .12s; }
.rise--3 { transition-delay: .18s; }
.rise--4 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .rise { opacity: 1; transform: none; transition: none; }
    .cta, .card, .doc { transition: none; }
    .cta:hover, .card:hover, .doc:hover { transform: none; }
    .device--hero { transform: none; }
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    /* minmax(0, …), not 1fr: the mock's one-line URL would otherwise widen the column past the
       screen. */
    .hero__grid, .feature, .flow { grid-template-columns: minmax(0, 1fr); }
    .feature__copy { order: 0 !important; }
    .hero__device { margin-top: 1rem; }
    .plans__grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    :root { --shell: min(1160px, 100% - 2rem); }
    body { font-size: 16px; }
    .topbar__in { gap: .8rem; }
    .topbar__link { display: none; }
    .topbar__name { font-size: 1.02rem; white-space: nowrap; }
    .cta--sm { white-space: nowrap; padding: .48rem .85rem; font-size: .8rem; }
    .hero h1 { font-size: clamp(2.3rem, 10.5vw, 2.6rem); }
    .device, .device--hero { width: min(270px, 86%); }
    .panel td { display: block; width: auto !important; padding: .2rem 0; border: 0; }
    .panel tr { display: block; padding: .7rem 0; border-bottom: 1px solid var(--line-lo); }
    .panel tr:last-child { border-bottom: 0; }
}

/* Narrow phones: the name and the store button no longer fit side by side, so the icon
   carries the brand, as on the sister sites. */
@media (max-width: 400px) {
    .topbar__name { display: none; }
}
