/* ============================================================
   MANAGE MORE. STRESS LESS. — SITE STYLES
   Shares Unwind's look (warm oat paper, lagoon teal, Fraunces +
   Figtree) so the family feels related. Colors are tokens; each uses
   light-dark(light, dark) so the page follows the visitor's system
   theme with no script. Layout is mobile-first: base rules are for
   phones, and min-width media queries add space for bigger screens.
   ============================================================ */

/* ============================================================
   FONTS (self-hosted, no third-party requests; licenses in /fonts)
   ============================================================ */
@font-face {
    font-family: 'Fraunces Variable';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('fonts/fraunces-latin-wght-normal.woff2') format('woff2-variations');
}

@font-face {
    font-family: 'Figtree Variable';
    font-style: normal;
    font-display: swap;
    font-weight: 300 900;
    src: url('fonts/figtree-latin-wght-normal.woff2') format('woff2-variations');
}

/* ============================================================
   TOKENS
   ============================================================ */
:root {
    color-scheme: light dark;

    --bg: light-dark(#f6f1ea, #16151b);
    --surface: light-dark(#fffdf9, #201e27);
    --surface-sunk: light-dark(#f1eadf, #1a1920);

    /* Text: all pairs meet WCAG AA contrast on --bg and --surface */
    --ink: light-dark(#2a2733, #efebf5);
    --ink-soft: light-dark(#5c5768, #b6b0c2);
    --line: light-dark(#e6ddd0, #34303e);
    --line-strong: light-dark(#d1c5b3, #4a4556);

    --primary: light-dark(#2f6f6a, #7cc9bf);
    --primary-hover: light-dark(#255b57, #97d7ce);
    --on-primary: light-dark(#ffffff, #0d2422);
    --focus: light-dark(#2f6f6a, #9fe0d6);

    /* Product accents. --x is for borders and icons; --x-ink is a
       deeper shade that passes AA as text on the card surface. */
    --lagoon: light-dark(#2f8a83, #6cc3b9);
    --lagoon-ink: light-dark(#26716b, #6cc3b9);
    --lagoon-soft: light-dark(#d9ece8, #1c3533);
    --plum: light-dark(#7a5fa3, #b9a2df);
    --plum-ink: light-dark(#6c5294, #b9a2df);
    --plum-soft: light-dark(#e8e0f3, #2c2539);
    --apricot: light-dark(#d97a48, #f0a37a);
    --apricot-ink: light-dark(#a9532a, #f0a37a);
    --apricot-soft: light-dark(#fae2d3, #3a2a22);
    --honey: light-dark(#c8922c, #e8c06a);
    --honey-ink: light-dark(#875f12, #e8c06a);
    --honey-soft: light-dark(#f6e8c6, #352d1d);
    --sage: light-dark(#5f9466, #9cc9a1);
    --sage-ink: light-dark(#44724b, #9cc9a1);
    --sage-soft: light-dark(#dfeedf, #213125);

    --shadow-sm: 0 1px 2px light-dark(rgb(74 55 30 / 0.08), rgb(0 0 0 / 0.4));
    --shadow-md: 0 2px 4px light-dark(rgb(74 55 30 / 0.06), rgb(0 0 0 / 0.35)),
        0 8px 24px light-dark(rgb(74 55 30 / 0.08), rgb(0 0 0 / 0.35));
    --shadow-lg: 0 4px 8px light-dark(rgb(74 55 30 / 0.06), rgb(0 0 0 / 0.4)),
        0 18px 40px light-dark(rgb(74 55 30 / 0.12), rgb(0 0 0 / 0.5));

    --radius: 16px;
    --radius-lg: 24px;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

    /* Spacing: one gutter and one section rhythm, grown on wider screens */
    --gutter: 20px;
    --section: 48px;

    --font-display: 'Fraunces Variable', ui-serif, Georgia, serif;
    --font-ui: 'Figtree Variable', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

@media (min-width: 640px) {
    :root {
        --gutter: 32px;
        --section: 64px;
    }
}

@media (min-width: 1024px) {
    :root {
        --section: 80px;
    }
}

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

/* Smooth in-page scrolling only for people who haven't asked for less motion */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-ui);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    margin: 0;
    text-wrap: balance;
}

p {
    margin: 0;
    text-wrap: pretty;
}

a {
    color: inherit;
}

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

/* In-page targets land with a little breathing room above them */
[id] {
    scroll-margin-top: 16px;
}

.wrap {
    width: 100%;
    max-width: 72rem;
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.skip {
    position: absolute;
    left: var(--gutter);
    top: -100px;
    z-index: 10;
    padding: 10px 16px;
    background: var(--surface);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    font-weight: 600;
}

.skip:focus {
    top: 12px;
}

.eyebrow {
    color: var(--primary);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* One gap between consecutive sections (not two paddings stacked) */
main {
    padding-bottom: var(--section);
}

main > * + * {
    margin-top: var(--section);
}

.section h2 {
    margin-top: 8px;
    font-size: clamp(1.75rem, 5vw, 2.5rem);
}

/* ============================================================
   WORDMARK
   The brand name set in type; "Stress Less." takes the brand teal.
   Used in the header and footer.
   ============================================================ */
.wordmark {
    font-family: var(--font-display);
    font-weight: 650;
    letter-spacing: -0.005em;
    text-decoration: none;
    white-space: nowrap;
}

.wordmark span {
    color: var(--primary);
}

/* ============================================================
   HEADER
   Wordmark and nav share one row; if a very narrow screen can't fit
   both, the nav drops to its own row instead of disappearing.
   ============================================================ */
.header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-block: 8px;
    border-bottom: 1px solid var(--line);
}

.header .wordmark {
    line-height: 44px;
    font-size: 1.0625rem;
}

.header-nav {
    display: flex;
    gap: 4px;
    margin-left: -10px;
    font-weight: 600;
    font-size: 0.9375rem;
}

/* Padding gives each link a 44px touch target without looking bigger */
.header-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-inline: 10px;
    color: var(--ink-soft);
    text-decoration: none;
    border-radius: 10px;
    transition: color 0.15s;
}

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

@media (min-width: 640px) {
    .header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding-block: 20px;
        border-bottom: 0;
    }

    .header-nav {
        margin-left: 0;
        margin-right: -10px;
    }

    .header .wordmark {
        font-size: 1.1875rem;
    }

    .header-nav {
        gap: 12px;
    }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    padding-top: 20px;
}

.hero h1 {
    max-width: 15em;
    margin-top: 12px;
    font-size: clamp(2.25rem, 8.5vw, 3.75rem);
    letter-spacing: -0.015em;
}

.lede {
    max-width: 38rem;
    margin-top: 20px;
    color: var(--ink-soft);
    font-size: 1.125rem;
}

.lede-close {
    margin-top: 12px;
    color: var(--ink);
    font-weight: 600;
}

.button {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    margin-top: 28px;
    padding: 12px 24px;
    border-radius: 999px;
    background: var(--primary);
    color: var(--on-primary);
    font-weight: 700;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: background-color 0.15s, transform 0.2s var(--ease-out);
}

.button:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.button:focus-visible {
    border-radius: 999px;
}

@media (min-width: 640px) {
    .hero {
        padding-top: 56px;
    }

    .lede {
        font-size: 1.1875rem;
    }

    .button {
        margin-top: 36px;
    }
}

/* ============================================================
   PRODUCTS
   Phones: compact cards with the icon beside the text.
   Tablets: one roomy card per row, same side-by-side layout.
   Desktop: three equal-height columns, icon on top, links aligned
   along the bottom.
   ============================================================ */
.products {
    display: grid;
    gap: 16px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

/* Product accents: each card picks its color with data-accent */
.product[data-accent='lagoon'] { --accent: var(--lagoon); --accent-ink: var(--lagoon-ink); --accent-soft: var(--lagoon-soft); }
.product[data-accent='plum'] { --accent: var(--plum); --accent-ink: var(--plum-ink); --accent-soft: var(--plum-soft); }
.product[data-accent='apricot'] { --accent: var(--apricot); --accent-ink: var(--apricot-ink); --accent-soft: var(--apricot-soft); }
.product[data-accent='honey'] { --accent: var(--honey); --accent-ink: var(--honey-ink); --accent-soft: var(--honey-soft); }
.product[data-accent='sage'] { --accent: var(--sage); --accent-ink: var(--sage-ink); --accent-soft: var(--sage-soft); }

.product {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 16px;
    padding: 22px 20px 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 5px solid var(--accent);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.product-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: var(--accent-soft);
    color: var(--accent);
}

.product-icon svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

/* The gift's ribbon is drawn by cutting a stripe out in the tint color */
.product-icon .cut {
    fill: var(--accent-soft);
}

.product-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
}

.product h3 {
    font-size: 1.5rem;
}

.tagline {
    margin-top: 4px;
    color: var(--accent-ink);
    font-weight: 700;
}

.product-text {
    margin-top: 10px;
    color: var(--ink-soft);
}

/* margin-top: auto pushes the link (or "Coming soon") to the bottom */
.product-link,
.product-soon {
    margin-top: auto;
    padding-top: 16px;
    font-weight: 700;
}

.product-link {
    color: var(--primary);
    text-decoration: none;
}

/* The link's ::after covers the whole card, so the card is one big
   target with a single, clearly named link inside it. */
.product-link::after {
    content: '';
    position: absolute;
    inset: -5px -1px -1px;
    border-radius: var(--radius-lg);
}

.product-link:focus-visible {
    outline: none;
}

.product-link:focus-visible::after {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

.arrow {
    display: inline-block;
    transition: transform 0.2s var(--ease-out);
}

/* Only cards with a link react to the pointer */
.product:has(.product-link):hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.product:hover .arrow {
    transform: translateX(4px);
}

/* "Coming soon": a calm pill, and a dashed top edge instead of solid */
.product[data-status='soon'] {
    border-top-style: dashed;
}

.product-soon {
    align-self: flex-start;
}

.product-soon::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--accent);
    vertical-align: 1px;
}

.product-soon {
    color: var(--ink-soft);
    font-size: 0.9375rem;
}

@media (max-width: 639px) {
    .product {
        column-gap: 14px;
        row-gap: 0;
        align-items: center;
    }

    .product-icon {
        grid-row: span 2;
    }

    /* Let the body's children join the card grid directly */
    .product-body {
        display: contents;
    }

    .product h3,
    .tagline {
        grid-column: 2;
    }

    .product-text,
    .product-link,
    .product-soon {
        grid-column: 1 / -1;
    }

    .product-text {
        margin-top: 14px;
    }
}

@media (min-width: 640px) {
    .products {
        gap: 20px;
        margin-top: 36px;
    }

    .product {
        gap: 24px;
        padding: 28px;
    }

    .product-icon {
        width: 56px;
        height: 56px;
    }

    .product-icon svg {
        width: 32px;
        height: 32px;
    }

    .product h3 {
        font-size: 1.75rem;
    }
}

@media (min-width: 960px) {
    .products {
        grid-template-columns: repeat(3, 1fr);
    }

    .product {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        gap: 20px;
    }
}

/* ============================================================
   STATEMENT
   A short centered pause between products and values; a hairline
   above and below sets it apart without decoration.
   ============================================================ */
.statement {
    text-align: center;
}

.statement > * {
    max-width: 36rem;
    margin-inline: auto;
}

.statement h2 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
}

.statement p {
    margin-top: 14px;
    color: var(--ink-soft);
    font-size: 1.125rem;
}

.statement::before,
.statement::after {
    content: '';
    display: block;
    width: 48px;
    height: 2px;
    margin-inline: auto;
    border-radius: 2px;
    background: var(--line-strong);
}

.statement::before {
    margin-bottom: 28px;
}

.statement::after {
    margin-top: 28px;
}

@media (min-width: 640px) {
    .statement p {
        font-size: 1.25rem;
    }
}

/* ============================================================
   ABOUT
   ============================================================ */
.beliefs {
    display: grid;
    gap: 24px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.beliefs li {
    padding-top: 16px;
    border-top: 1px solid var(--line-strong);
}

.beliefs h3 {
    font-size: 1.25rem;
}

.beliefs p {
    margin-top: 8px;
    color: var(--ink-soft);
}

@media (min-width: 768px) {
    .beliefs {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
        margin-top: 32px;
    }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    border-top: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 0.9375rem;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-block: 28px 32px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer .wordmark {
    align-self: flex-start;
    color: var(--ink);
    font-size: 1.0625rem;
}

.footer-tools ul {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: 0 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-tools li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Padding gives each link a comfortable tap target; the negative
   margin keeps the text itself aligned with the column heading */
.footer-tools a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    margin-left: -6px;
    padding-inline: 6px;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 4px;
    border-radius: 8px;
    transition: text-decoration-color 0.15s, color 0.15s;
}

.footer-tools a:hover {
    color: var(--ink);
    text-decoration-color: currentColor;
}

.footer-tools .footer-tool {
    color: var(--ink);
    font-weight: 700;
}

@media (min-width: 720px) {
    .footer-inner {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }

    .footer-tools ul {
        column-gap: 48px;
    }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
    }
}
