@charset "utf-8";
/* pagesaver.ai homepage. Tokens come from css/site.css. */

.ps-home { background: var(--ps-paper); }

.home { font-family: var(--ps-sans); color: var(--ps-ink); line-height: 1.6; }
.home-wrap { max-width: var(--ps-wrap); margin: 0 auto; padding: 0 var(--ps-gutter); }
.home h1, .home h2, .home h3 { font-family: var(--ps-serif); color: var(--ps-ink); font-weight: 700; }
.home h2 { margin: 0 0 18px; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.12; letter-spacing: -0.015em; }
.home p { margin: 0 0 14px; }
.home a { color: var(--ps-leaf); }
.home a:hover { color: var(--ps-leaf-dark); }
.home a:focus-visible, .home button:focus-visible { outline: 3px solid var(--ps-brand); outline-offset: 2px; }
.home-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.home-link { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Hero ---------- */
.home-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 104px); overflow: hidden; }
.home-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}
.home-hero h1 {
    margin: 0 0 22px;
    max-width: 13ch;
    font-size: clamp(42px, 5.8vw, 70px);
    line-height: 1.03;
    letter-spacing: -0.025em;
}
.home-lede { max-width: 50ch; font-size: clamp(17px, 1.5vw, 19px); color: var(--ps-ink-soft); }

/* Four equal store buttons in a 2x2 grid (the hero copy column is too narrow
   for one row in every language). The visitor's own browser, moved first by
   home.js, is filled green; the size never changes with the order. */
.home-stores {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-width: 520px;
    margin: 30px 0 12px;
}
.home-store {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 10px 12px;
    border: 1px solid var(--ps-line);
    border-radius: 8px;
    background: var(--ps-sheet);
    color: var(--ps-ink);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}
.home-store i { flex: none; font-size: 19px; color: var(--ps-leaf); }
.home-store.is-primary i { color: #fff; }
.home .home-store:hover { border-color: var(--ps-leaf); color: var(--ps-ink); text-decoration: none; }
.home-store.is-primary {
    border-color: var(--ps-leaf);
    background: var(--ps-leaf);
    color: #fff;
}
.home .home-store.is-primary:hover { background: var(--ps-leaf-dark); color: #fff; }
.home-note { font-size: 14px; color: var(--ps-ink-soft); }

/* Running save count: a figure set off from the buttons by a rule, with its
   caption beside it. Every locale reads "<number> <caption>". */
.home .home-count {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 520px;
    margin: 28px 0 0;
    padding-top: 22px;
    border-top: 1px solid var(--ps-line);
}
.home-count[hidden] { display: none; }
.home-count-num {
    flex: none;
    font-family: var(--ps-serif);
    font-size: clamp(32px, 3.2vw, 40px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--ps-leaf);
    font-variant-numeric: tabular-nums lining-nums;
}
.home-count-label {
    max-width: 19ch;
    font-size: 14px;
    line-height: 1.35;
    color: var(--ps-ink-soft);
}

/* The hero picture: a cluttered web page and the clean sheet it becomes. */
.home-visual { position: relative; min-height: 400px; }
.hv-browser {
    width: 86%;
    background: var(--ps-sheet);
    border: 1px solid var(--ps-line);
    border-radius: 10px;
    box-shadow: 0 2px 0 #e7ede4;
    overflow: hidden;
}
.hv-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    background: #edf2ea;
    border-bottom: 1px solid var(--ps-line);
}
.hv-bar i { width: 9px; height: 9px; border-radius: 50%; background: #c5cfc1; }
.hv-url {
    margin-left: 10px;
    flex: 1;
    padding: 3px 10px;
    background: var(--ps-sheet);
    border-radius: 4px;
    font-size: 11px;
    color: #7a867c;
}
.hv-page { padding: 14px; }
.hv-banner, .hv-ad {
    background: repeating-linear-gradient(135deg, #f4d9d4 0 6px, #fbecea 6px 12px);
    border-radius: 3px;
}
.hv-banner { height: 34px; margin-bottom: 14px; }
.hv-columns { display: grid; grid-template-columns: 1fr 28%; gap: 14px; }
.hv-rail { display: grid; gap: 10px; align-content: start; }
.hv-rail .hv-ad { height: 70px; }
.hv-rail .hv-ad.is-tall { height: 120px; }
.hv-article .hv-ad { height: 44px; margin: 10px 0; }
.home-visual b, .home-visual s {
    display: block;
    border-radius: 3px;
    text-decoration: none;
}
.home-visual b { height: 13px; margin-bottom: 7px; background: #3b463e; }
.home-visual b.is-short { width: 62%; margin-bottom: 14px; }
.home-visual s { height: 7px; margin-bottom: 8px; background: #dbe3d7; }
.home-visual s.is-short { width: 70%; }
.home-visual s.is-mark { background: var(--ps-highlight); }

.hv-sheet {
    position: absolute;
    right: 0;
    bottom: -18px;
    width: 50%;
    padding: 30px 26px 40px;
    background: var(--ps-sheet);
    border: 1px solid var(--ps-line);
    border-radius: 2px;
    box-shadow: 0 22px 44px rgba(24, 33, 27, 0.16), 0 2px 6px rgba(24, 33, 27, 0.08);
    transform: rotate(2.5deg);
    animation: hv-print 900ms cubic-bezier(0.2, 0.7, 0.2, 1) 300ms both;
}
.hv-ext {
    position: absolute;
    top: -12px;
    left: 18px;
    padding: 2px 9px;
    background: var(--ps-leaf);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 3px;
}
.hv-folio { position: absolute; right: 18px; bottom: 12px; font-size: 11px; color: #8a958c; }

@keyframes hv-print {
    from { opacity: 0; transform: translate(-42%, 4%) rotate(-4deg); }
    to { opacity: 1; transform: translate(0, 0) rotate(2.5deg); }
}

/* ---------- Sections ---------- */
.home-section { padding: clamp(56px, 7vw, 92px) 0; border-top: 1px solid var(--ps-mist); }

.home-format-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(24px, 4vw, 48px);
    margin-top: 34px;
}
.home-format h3 { margin: 18px 0 8px; font-size: 24px; }
.home-format p { max-width: 36ch; color: var(--ps-ink-soft); }
.home-file {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 54px;
    height: 66px;
    padding-bottom: 8px;
    background: linear-gradient(225deg, var(--ps-mist) 0 12px, var(--ps-sheet) 12px);
    border: 2px solid var(--ps-ink);
    border-radius: 3px 0 3px 3px;
    color: var(--ps-leaf);
    font-weight: 700;
    font-size: 14px;
}
.home-file::before {
    content: "";
    position: absolute;
    top: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    border-left: 2px solid var(--ps-ink);
    border-bottom: 2px solid var(--ps-ink);
    background: var(--ps-paper);
}

.home .home-subhead { margin-top: clamp(48px, 6vw, 72px); font-size: 24px; }
/* "Also in the extension" row: same cards as the formats row, with an icon
   in the file shape instead of an extension. */
.home-format-list--more { margin-top: 0; }
.home-file--icon { align-items: center; padding: 6px 0 0; font-size: 20px; }

.home-tools { background: #edf3ea; }
.home-tools-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.home-product { font-weight: 700; color: var(--ps-leaf); }
.home-tools-copy p:not(.home-product) { max-width: 46ch; color: var(--ps-ink-soft); }
.home-tool-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.home-tool-list a {
    display: block;
    padding: 11px 0;
    border-bottom: 1px solid #d3ddcf;
    color: var(--ps-ink);
    font-weight: 500;
    text-decoration: none;
}
.home .home-tool-list a:hover { color: var(--ps-leaf); border-bottom-color: var(--ps-leaf); text-decoration: none; }

.home-mac-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.home-mac-icon { font-size: 44px; color: var(--ps-ink); }
.home .home-mac h2 { margin-bottom: 8px; font-size: 26px; }
.home-mac p { margin: 0; max-width: 70ch; color: var(--ps-ink-soft); }
.home-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 9px;
    vertical-align: middle;
    border: 1px solid var(--ps-leaf);
    border-radius: 999px;
    color: var(--ps-leaf);
    font-family: var(--ps-sans);
    font-size: 12px;
    font-weight: 600;
}

.home-pricing-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.home-pricing-grid > div:first-child p { max-width: 52ch; color: var(--ps-ink-soft); }
.home-lifetime {
    padding: 28px;
    background: var(--ps-sheet);
    border: 1px solid var(--ps-line);
    border-radius: 8px;
}
.home-lifetime-label { font-size: 14px; font-weight: 600; color: var(--ps-leaf); }
.home-lifetime.is-promo .home-lifetime-label { display: inline-block; padding: 1px 8px; background: var(--ps-highlight); color: var(--ps-ink); border-radius: 3px; }
.home-lifetime-name { font-family: var(--ps-serif); font-size: 21px; font-weight: 700; }
.home-lifetime-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.home-lifetime-price del { color: #7a867c; }
.home-lifetime-price strong { font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; }
.home-lifetime-price span { font-size: 14px; color: var(--ps-ink-soft); }
.home-lifetime-ends { font-size: 13px; color: var(--ps-ink-soft); }
.home .home-button {
    display: inline-block;
    margin-top: 6px;
    padding: 11px 18px;
    background: var(--ps-ink);
    color: #fff;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
}
.home .home-button:hover { background: #000; color: #fff; text-decoration: none; }

/* Demo: the copy and a vertical list of the two walkthroughs on the left,
   the video on the right. The selected walkthrough is marked like the
   current page in the account sidebar: white row, green rule. */
.home-demo-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}
.home-demo-lede { margin: 0 0 24px; color: var(--ps-ink-soft); }
.home-demo-switch { display: flex; flex-direction: column; gap: 6px; }
.home-demo-switch button {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--ps-ink-soft);
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.home-demo-switch button:hover { background: var(--ps-mist); color: var(--ps-ink); }
.home-demo-switch button[aria-selected="true"] {
    border-color: var(--ps-mist);
    background: var(--ps-sheet);
    color: var(--ps-ink);
    box-shadow: inset 3px 0 0 var(--ps-brand), 0 1px 2px rgba(24, 33, 27, 0.06);
}
.home-demo-switch button:focus-visible { outline: 3px solid var(--ps-brand); outline-offset: 2px; }
.home-demo-tab-title { font-size: 16px; font-weight: 600; }
.home-demo-tab-desc { font-size: 14px; line-height: 1.45; color: var(--ps-ink-soft); }
.home-video {
    aspect-ratio: 16 / 9;
    background: #dfe7dc;
    border: 1px solid var(--ps-mist);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(24, 33, 27, 0.10);
}
.home-video iframe { display: block; width: 100%; height: 100%; border: 0; }

.home-help-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 72px); }
.home-help-grid p { max-width: 62ch; color: var(--ps-ink-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .home-hero-grid, .home-tools-grid, .home-pricing-grid, .home-help-grid, .home-demo-grid { grid-template-columns: 1fr; }
    .home-visual { max-width: 560px; }
    .home-tool-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .home-format-list { grid-template-columns: 1fr; }
    .home-mac-row { grid-template-columns: 1fr; gap: 12px; }
    .home-visual { min-height: 320px; }
    .hv-browser { width: 100%; }
    .hv-sheet { width: 62%; bottom: -26px; padding: 22px 18px 32px; }
}

@media (max-width: 400px) {
    .home-stores { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .hv-sheet { animation: none; }
}
