:root {
    --brand-primary: #b4637a;
    --brand-secondary: #907aa9;
    --brand-accent: #56949f;
    --bg-app: #faf4ed;
    --bg-section: #f5ede4;
    --bg-card: #fff9f2;
    --bg-card-rose: #f8edeb;
    --bg-card-lilac: #f2ecf5;
    --bg-card-blue: #eef3f4;
    --text-primary: #575279;
    --text-secondary: #6e6a86;
    --text-tertiary: #9893a5;
    --radius-card: 24px;
    --radius-pill: 999px;
    --shadow-card: 0 14px 34px rgba(86, 82, 121, 0.08);
    --max-width: 1080px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
    background: var(--bg-app);
    color: var(--text-primary);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    width: min(100% - 2rem, var(--max-width));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    background: rgba(250, 244, 237, 0.92);
    border-bottom: 1px solid rgba(144, 122, 169, 0.14);
}

.site-header__inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
}

.site-logo img {
    height: 36px;
    width: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-nav a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--text-primary);
}

.site-nav .btn,
.site-nav .btn:hover,
.site-nav .btn[aria-current="page"] {
    color: #fff;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 1.2rem;
    border-radius: 16px;
    font-weight: 700;
}

.btn-primary {
    background: #1c1c1e;
    color: #fff;
    box-shadow: 0 10px 22px rgba(28, 28, 30, 0.16);
}

.btn-secondary {
    border: 1.5px solid rgba(144, 122, 169, 0.16);
    background: rgba(255, 249, 242, 0.96);
    color: var(--text-primary);
}

.apple-btn {
    gap: 0.65rem;
    padding: 0.95rem 1.3rem;
    border-radius: 16px;
    background: #1c1c1e;
    color: #fff;
    box-shadow: 0 10px 22px rgba(28, 28, 30, 0.16);
}

.apple-btn__icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex: 0 0 auto;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.store-badge img {
    height: 52px;
    width: auto;
    display: block;
}

.store-badge--nav img {
    height: 40px;
}

.store-badge--hero img,
.store-badge--cta img {
    height: 56px;
}

.hero {
    padding: 4.8rem 0 2.4rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.8rem;
    border-radius: var(--radius-pill);
    background: rgba(144, 122, 169, 0.12);
    color: var(--brand-secondary);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    letter-spacing: -0.03em;
    line-height: 1.05;
}

h1 {
    margin-top: 1rem;
    font-size: clamp(2.5rem, 6vw, 4.4rem);
}

h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 0.75rem;
}

h3 {
    font-size: 1.2rem;
}

.lede,
p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.hero-copy p {
    max-width: 58ch;
    margin-top: 1.25rem;
}

.hero-actions {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.hero-card,
.panel,
.post-card,
.metric-card,
.checklist {
    background: var(--bg-card);
    border: 1px solid rgba(125, 104, 152, 0.1);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

.hero-card {
    padding: 1.5rem;
    background: var(--bg-card-rose);
}

.hero-card img {
    border-radius: 18px;
    margin-bottom: 1rem;
}

.hero-card ul,
.checklist ul {
    list-style: none;
}

.hero-card li,
.checklist li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    border-top: 1px solid rgba(28, 28, 30, 0.06);
}

.section {
    padding: 2.4rem 0 1.2rem;
}

.section-header {
    margin-bottom: 1.6rem;
}

.grid {
    display: grid;
    gap: 1.25rem;
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel {
    padding: 1.5rem;
}

.grid-3 .panel:nth-child(1),
.grid-2 .post-card:nth-child(1),
.grid-3 .metric-card:nth-child(1) {
    background: var(--bg-card-rose);
}

.grid-3 .panel:nth-child(2),
.grid-2 .post-card:nth-child(2),
.grid-3 .metric-card:nth-child(2) {
    background: var(--bg-card-lilac);
}

.grid-3 .panel:nth-child(3),
.grid-2 .post-card:nth-child(3),
.grid-3 .metric-card:nth-child(3) {
    background: var(--bg-card-blue);
}

.grid-2 .post-card:nth-child(4) {
    background: var(--bg-card);
}

.panel p + p,
.post-card p + p {
    margin-top: 0.75rem;
}

.post-card {
    padding: 1.5rem;
}

.post-card__meta,
.metric-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--brand-secondary);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.post-card h3 {
    margin: 0.8rem 0 0.6rem;
}

.post-card ul {
    list-style: none;
    margin-top: 1rem;
}

.post-card li {
    color: var(--text-secondary);
    padding: 0.3rem 0;
}

.metric-card {
    padding: 1.25rem;
}

.metric-value {
    display: block;
    margin-top: 0.4rem;
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

th,
td {
    text-align: left;
    padding: 0.95rem 1rem;
    border-bottom: 1px solid rgba(28, 28, 30, 0.08);
    vertical-align: top;
}

th {
    color: var(--text-primary);
    font-size: 0.92rem;
}

td {
    color: var(--text-secondary);
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(86, 148, 159, 0.12);
    color: var(--brand-accent);
    font-size: 0.8rem;
    font-weight: 700;
}

.note {
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: rgba(180, 99, 122, 0.08);
    color: var(--text-secondary);
}

.article-shell {
    padding: 3rem 0 4rem;
}

.article {
    width: min(100%, 760px);
    margin: 0 auto;
}

.article-header {
    margin-bottom: 2.35rem;
}

.article-header p {
    margin-top: 1.1rem;
}

.article section + section {
    margin-top: 2.5rem;
}

.article p + p,
.article ul + p,
.article p + ul,
.article table + p,
.article blockquote + p {
    margin-top: 1rem;
}

.article h2 {
    margin-bottom: 1rem;
}

.article h3 {
    margin-bottom: 0.55rem;
}

.article .panel {
    background: var(--bg-card-rose);
}

.article ul,
.article ol {
    padding-left: 1.2rem;
    color: var(--text-secondary);
}

.article li + li {
    margin-top: 0.5rem;
}

.article blockquote {
    margin: 1.25rem 0;
    padding: 1rem 1.2rem;
    border-left: 4px solid var(--brand-primary);
    background: #f7efec;
    border-radius: 14px;
    color: var(--text-primary);
}

.article pre {
    overflow-x: auto;
    padding: 1rem;
    border-radius: 18px;
    background: #151517;
    color: #f5f5f7;
}

.cta-box {
    margin-top: 2rem;
    padding: 1.4rem;
    border-radius: 20px;
    background: var(--bg-section);
    border: 1px solid rgba(144, 122, 169, 0.12);
}

.site-footer {
    padding: 3rem 0 4rem;
    color: var(--text-tertiary);
}

.feature-list {
    list-style: none;
    margin-top: 1rem;
}

.feature-list li {
    color: var(--text-secondary);
    padding: 0.45rem 0;
    border-top: 1px solid rgba(28, 28, 30, 0.06);
}

.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.note {
    background: var(--bg-card-rose);
    border: 1px solid rgba(180, 99, 122, 0.12);
}

@media (max-width: 900px) {
    .hero-grid,
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .site-header__inner,
    .site-footer__inner {
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .hero {
        padding-top: 3rem;
    }

    .site-nav {
        gap: 0.75rem;
    }

    .btn {
        width: 100%;
    }

    .hero-actions {
        flex-direction: column;
    }
}
