/* ===========================================================
   Inscribe — marketing site
   Design language matched to the in-app redesign:
   SF Pro, system blue (#007AFF), white surfaces,
   vivid project-gradient tiles, glass chrome.
   =========================================================== */

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

:root {
    /* Surfaces */
    --bg: #ffffff;
    --bg-secondary: #f5f5f7;   /* Apple light gray section */
    --bg-grouped: #f2f2f7;     /* iOS grouped list */
    --card: #ffffff;

    /* Text */
    --label: #1d1d1f;
    --secondary-label: #6e6e73;
    --tertiary-label: #86868b;

    /* Accent — iOS system blue */
    --accent: #007AFF;
    --accent-press: #0062cc;

    /* iOS system tones */
    --green: #34C759;
    --orange: #FF9500;
    --red: #FF3B30;
    --purple: #AF52DE;
    --pink: #FF2D55;

    /* Lines */
    --separator: rgba(0, 0, 0, 0.10);
    --separator-soft: rgba(0, 0, 0, 0.06);

    /* Radii */
    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 22px;
    --r-xl: 30px;
    --r-pill: 980px;

    /* Shadow */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.14);
    --shadow-device: 0 40px 90px rgba(0, 0, 0, 0.22), 0 8px 24px rgba(0, 0, 0, 0.12);

    /* Project gradients (match app tiles) */
    --grad-blue: linear-gradient(135deg, #3CC7FF, #0A9CFF);
    --grad-pink: linear-gradient(135deg, #FF4E9D, #FF2D8A);
    --grad-orange: linear-gradient(135deg, #FF8C42, #FF5B2C);
    --grad-yellow: linear-gradient(135deg, #FFB340, #FF9500);
    --grad-green: linear-gradient(135deg, #2EC97A, #0FAF63);
    --grad-red: linear-gradient(135deg, #FF453A, #D70015);
    --grad-purple: linear-gradient(135deg, #A66CFF, #7B5BFF);
    --grad-gray: linear-gradient(135deg, #8E8E93, #636366);

    --maxw: 1120px;
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
            "Helvetica Neue", Helvetica, Arial, sans-serif;

    /* Legacy aliases — keep older inline styles on blog/legal pages in palette */
    --text-dark: var(--label);
    --text-gray: var(--secondary-label);
    --text-light: var(--tertiary-label);
    --primary-blue: var(--accent);
    --primary-dark: var(--accent-press);
    --bg-white: var(--bg);
    --bg-light: var(--bg-secondary);
    --bg-gray: var(--bg-secondary);
    --border-light: var(--separator);
}

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

body {
    font-family: var(--font);
    color: var(--label);
    background: var(--bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 28px;
}

a { color: var(--accent); text-decoration: none; }

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

/* ===========================================================
   Buttons
   =========================================================== */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 26px;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: -0.01em;
    border-radius: var(--r-pill);
    border: none;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
    font-family: inherit;
}

.button-primary {
    background: var(--accent);
    color: #fff;
}
.button-primary:hover { background: var(--accent-press); transform: translateY(-1px); }
.button-primary:active { transform: translateY(0); }

.button-secondary {
    background: rgba(0, 0, 0, 0.05);
    color: var(--label);
}
.button-secondary:hover { background: rgba(0, 0, 0, 0.09); }

.button-large { padding: 16px 34px; font-size: 19px; }

/* App Store pill */
.appstore-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 22px 12px 18px;
    background: #1d1d1f;
    color: #fff;
    border-radius: 14px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.appstore-button:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.appstore-button svg { width: 26px; height: 26px; flex-shrink: 0; }
.appstore-button .as-label { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.appstore-button .as-small { font-size: 11px; opacity: 0.85; font-weight: 400; letter-spacing: 0.01em; }
.appstore-button .as-big { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }

/* ===========================================================
   Navigation (glass)
   =========================================================== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 52px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--separator-soft);
    z-index: 1000;
}
.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 52px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--label);
}
.logo img { border-radius: 8px; }
.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}
.nav-links a:not(.cta-button) {
    color: var(--label);
    font-size: 15px;
    font-weight: 400;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}
.nav-links a:not(.cta-button):hover { opacity: 1; }
.cta-button {
    padding: 7px 18px;
    background: var(--accent);
    color: #fff !important;
    border-radius: var(--r-pill);
    font-size: 15px;
    font-weight: 500;
    transition: background 0.2s ease;
}
.cta-button:hover { background: var(--accent-press); }

/* ===========================================================
   Section scaffolding
   =========================================================== */
section { position: relative; }

.section-pad { padding: 120px 0; }
.bg-soft { background: var(--bg-secondary); }

.section-header {
    max-width: 760px;
    margin: 0 auto 64px;
    text-align: center;
}
.eyebrow {
    display: inline-block;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--accent);
    margin-bottom: 12px;
}
.section-header h2 {
    font-size: clamp(34px, 5vw, 52px);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.03em;
}
.section-header p {
    margin-top: 18px;
    font-size: clamp(19px, 2.4vw, 23px);
    line-height: 1.4;
    color: var(--secondary-label);
    font-weight: 400;
}

/* ===========================================================
   Hero
   =========================================================== */
.hero {
    padding: 132px 0 0;
    text-align: center;
    overflow: hidden;
}.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 15px;
    background: rgba(0, 122, 255, 0.10);
    color: var(--accent);
    border-radius: var(--r-pill);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
}
.hero-badge svg { width: 15px; height: 15px; }

.hero-title {
    font-size: clamp(44px, 7.2vw, 88px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.035em;
    max-width: 16ch;
    margin: 0 auto;
    text-wrap: balance;
}
.hero-title .accent { color: var(--accent); }

.hero-description {
    max-width: 640px;
    margin: 24px auto 0;
    font-size: clamp(18px, 2.3vw, 22px);
    line-height: 1.45;
    color: var(--secondary-label);
    text-wrap: pretty;
}
.hero-cta {
    margin-top: 34px;
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}
.hero-note {
    margin-top: 18px;
    font-size: 14px;
    color: var(--tertiary-label);
}

/* Hero device composition: iPad behind, iPhone in front */
.hero-stage {
    position: relative;
    margin: 60px auto 0;
    width: min(880px, 92vw);
    height: clamp(440px, 58vw, 700px);
}
.hero-stage .device-ipad {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-58%);
    width: clamp(290px, 40vw, 452px);
}
.hero-stage .device-iphone {
    position: absolute;
    right: 50%;
    bottom: 0;
    transform: translateX(150%);
    width: clamp(150px, 21vw, 232px);
    z-index: 3;
}
.hero-glow {
    position: absolute;
    inset: -10% 0 auto;
    height: 70%;
    background: radial-gradient(60% 80% at 50% 30%, rgba(0,122,255,0.16), transparent 70%);
    filter: blur(20px);
    z-index: 0;
    pointer-events: none;
}

/* ===========================================================
   Screenshots — clean framed cards (no fake device bezels)
   =========================================================== */
.device-iphone,
.device-ipad,
.device-mac {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--separator-soft);
    box-shadow: var(--shadow-device);
}
.device-iphone { border-radius: 26px; }
.device-ipad { border-radius: 18px; }
/* Mac screenshots carry native window chrome, so a lighter shadow reads better */
.device-mac { border-radius: 12px; box-shadow: var(--shadow-lg); }

.device-iphone img,
.device-ipad img,
.device-mac img {
    width: 100%;
    display: block;
}

/* ===========================================================
   Trust strip
   =========================================================== */
.trust {
    padding: 30px 0;
    border-top: 1px solid var(--separator-soft);
    border-bottom: 1px solid var(--separator-soft);
}
.trust-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 40px;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 15px;
    font-weight: 500;
    color: var(--secondary-label);
}
.trust-item svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }

/* ===========================================================
   Gradient tiles (icons)
   =========================================================== */
.tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
    flex-shrink: 0;
}
.tile svg { width: 56%; height: 56%; }
.tile-56 { width: 56px; height: 56px; border-radius: 14px; }
.tile-44 { width: 44px; height: 44px; border-radius: 11px; }
.tile-blue { background: var(--grad-blue); }
.tile-pink { background: var(--grad-pink); }
.tile-orange { background: var(--grad-orange); }
.tile-yellow { background: var(--grad-yellow); }
.tile-green { background: var(--grad-green); }
.tile-red { background: var(--grad-red); }
.tile-purple { background: var(--grad-purple); }
.tile-gray { background: var(--grad-gray); }

/* ===========================================================
   Feature grid
   =========================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.feature-card {
    background: var(--card);
    border: 1px solid var(--separator-soft);
    border-radius: var(--r-lg);
    padding: 34px 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.bg-soft .feature-card { background: #fff; }
.feature-card h3 {
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 22px 0 8px;
}
.feature-card p {
    color: var(--secondary-label);
    font-size: 16px;
    line-height: 1.5;
}

/* ===========================================================
   Spotlight (alternating text / device)
   =========================================================== */
.spotlight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}
.spotlight.reverse .spotlight-media { order: -1; }
.spotlight + .spotlight { margin-top: 130px; }

.spotlight-text .eyebrow { margin-bottom: 14px; }
.spotlight-text h2 {
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
}
.spotlight-text > p {
    margin-top: 18px;
    font-size: 19px;
    line-height: 1.5;
    color: var(--secondary-label);
}
.spotlight-list {
    list-style: none;
    margin-top: 26px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.spotlight-list li {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    font-size: 16.5px;
    line-height: 1.45;
}
.spotlight-list .li-icon {
    width: 26px; height: 26px;
    border-radius: 8px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    margin-top: 1px;
}
.spotlight-list .li-icon svg { width: 15px; height: 15px; }
.spotlight-list strong { font-weight: 600; }
.spotlight-list span { color: var(--secondary-label); }

.spotlight-media {
    display: flex;
    justify-content: center;
    align-items: center;
}
.spotlight-media .device-iphone { width: min(280px, 70vw); }
.spotlight-media .device-mac { width: 100%; }
.spotlight-media .device-ipad { width: min(420px, 80vw); }

/* paired iphone duo for some spotlights */
.phone-duo { position: relative; width: min(420px, 84vw); height: auto; }
.phone-duo .device-iphone { position: relative; width: 64%; }
.phone-duo .device-iphone:nth-child(2) {
    position: absolute;
    right: 0; bottom: 8%;
    width: 58%;
    z-index: 2;
}
.phone-duo .device-iphone:first-child { margin-left: 0; }

/* ===========================================================
   Privacy band
   =========================================================== */
.privacy {
    background: #1d1d1f;
    color: #fff;
}
.privacy .section-header h2 { color: #fff; }
.privacy .section-header p { color: rgba(255,255,255,0.7); }
.privacy .eyebrow { color: #4aa3ff; }
.privacy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.privacy-item {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--r-lg);
    padding: 32px 28px;
}
.privacy-item .tile { margin-bottom: 20px; }
.privacy-item h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 10px; }
.privacy-item p { color: rgba(255,255,255,0.66); font-size: 15.5px; line-height: 1.55; }

/* ===========================================================
   Device showcase (lineup)
   =========================================================== */
.showcase-stage {
    position: relative;
    width: min(1040px, 94vw);
    margin: 0 auto;
}
.showcase-stage .device-mac { width: 100%; }
.showcase-stage .device-iphone {
    position: absolute;
    right: 1%;
    bottom: -8%;
    width: clamp(120px, 16vw, 188px);
    z-index: 3;
}

/* ===========================================================
   Use cases
   =========================================================== */
.usecases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.usecase-card {
    background: #fff;
    border: 1px solid var(--separator-soft);
    border-radius: var(--r-lg);
    padding: 36px 32px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.usecase-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.usecase-card h3 { font-size: 23px; font-weight: 600; letter-spacing: -0.02em; margin: 22px 0 10px; }
.usecase-card > p { color: var(--secondary-label); font-size: 16px; line-height: 1.5; margin-bottom: 20px; }
.usecase-benefits { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.usecase-benefits li {
    position: relative;
    padding-left: 26px;
    font-size: 15px;
    line-height: 1.45;
    color: var(--secondary-label);
}
.usecase-benefits li::before {
    content: "";
    position: absolute;
    left: 2px; top: 7px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

/* ===========================================================
   Comparison table
   =========================================================== */
.comparison-wrap {
    max-width: 960px;
    margin: 0 auto;
    border-radius: var(--r-lg);
    border: 1px solid var(--separator);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: #fff;
}
.comparison-table { width: 100%; border-collapse: collapse; }
.comparison-table th, .comparison-table td {
    padding: 18px 20px;
    text-align: center;
    font-size: 15.5px;
    border-bottom: 1px solid var(--separator-soft);
}
.comparison-table th:first-child, .comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: var(--label);
}
.comparison-table thead th {
    font-weight: 600;
    font-size: 15px;
    color: var(--secondary-label);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--separator);
}
.comparison-table .brand-cell {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--label);
    font-weight: 700;
}
.comparison-table .brand-cell img { border-radius: 6px; }
.comparison-table .highlight-col { background: rgba(0, 122, 255, 0.05); }
.comparison-table thead .highlight-col { background: rgba(0, 122, 255, 0.10); }
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table .check { color: var(--green); font-size: 19px; font-weight: 700; }
.comparison-table .cross { color: var(--tertiary-label); font-size: 18px; }
.comparison-table .price-free { color: var(--accent); font-weight: 700; }

/* ===========================================================
   Screenshot gallery
   =========================================================== */
.gallery-tabs {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin: 0 auto 52px;
    background: var(--bg-grouped);
    border-radius: var(--r-pill);
    padding: 5px;
    width: fit-content;
}
.gallery-tab {
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    color: var(--secondary-label);
    padding: 9px 22px;
    border-radius: var(--r-pill);
    cursor: pointer;
    transition: all 0.2s ease;
}
.gallery-tab.active { background: #fff; color: var(--label); box-shadow: var(--shadow-sm); }

.gallery-panel { display: none; }
.gallery-panel.active { display: block; }

.gallery-row {
    display: flex;
    gap: 28px;
    justify-content: center;
    align-items: flex-end;
    flex-wrap: wrap;
}
.gallery-figure { text-align: center; }
.gallery-figure figcaption {
    margin-top: 16px;
    font-size: 15px;
    color: var(--secondary-label);
    font-weight: 500;
}
.gallery-row .device-iphone { width: clamp(190px, 24vw, 248px); }
.gallery-grid-mac {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}
.gallery-grid-ipad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ===========================================================
   How it works
   =========================================================== */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 980px;
    margin: 0 auto;
}
.step { text-align: center; }
.step-number {
    width: 52px; height: 52px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 600;
}
.step h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 10px; }
.step p { color: var(--secondary-label); font-size: 16.5px; line-height: 1.5; }

/* ===========================================================
   FAQ
   =========================================================== */
.faq-grid { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--separator); }
.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 26px 4px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}
.faq-question h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; color: var(--label); }
.faq-question svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--accent); transition: transform 0.3s ease; }
.faq-item.active .faq-question svg { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-item.active .faq-answer { max-height: 420px; }
.faq-answer p { padding: 0 4px 26px; color: var(--secondary-label); font-size: 17px; line-height: 1.6; }

/* ===========================================================
   SEO content blocks
   =========================================================== */
.seo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.seo-block {
    background: #fff;
    border: 1px solid var(--separator-soft);
    border-radius: var(--r-lg);
    padding: 30px 28px;
}
.seo-block h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 12px; }
.seo-block p { color: var(--secondary-label); font-size: 15.5px; line-height: 1.6; }

/* ===========================================================
   CTA
   =========================================================== */
.cta-section { text-align: center; padding: 110px 0; }
.cta-content { max-width: 700px; margin: 0 auto; }
.cta-section h2 {
    font-size: clamp(34px, 5vw, 56px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
}
.cta-section > .container > p {
    margin: 18px auto 0;
    max-width: 600px;
    font-size: clamp(18px, 2.3vw, 22px);
    color: var(--secondary-label);
}
.cta-buttons { margin-top: 34px; display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.cta-note { margin-top: 20px; font-size: 14px; color: var(--tertiary-label); }

/* ===========================================================
   Footer
   =========================================================== */
.footer {
    background: var(--bg-secondary);
    padding: 64px 0 40px;
    border-top: 1px solid var(--separator-soft);
    font-size: 14px;
}
.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}
.footer-brand { flex: 1 1 260px; max-width: 340px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 56px; }
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { color: var(--secondary-label); max-width: 280px; margin-bottom: 18px; }
.footer-badges { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer-column h4 { font-size: 14px; font-weight: 600; margin-bottom: 16px; color: var(--label); }
.footer-column a { display: block; color: var(--secondary-label); margin-bottom: 11px; transition: color 0.2s ease; }
.footer-column a:hover { color: var(--accent); }
.footer-bottom {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--separator-soft);
    text-align: center;
    color: var(--tertiary-label);
}

/* ===========================================================
   Reveal animation
   =========================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    transition-delay: var(--delay, 0s);
}
.fade-in.in { opacity: 1; transform: none; }
/* Never hide content from users without JS or who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .fade-in { opacity: 1; transform: none; transition: none; }
}

/* ===========================================================
   Blog index + cards
   =========================================================== */
.blog-header { padding: 132px 0 56px; text-align: center; }
.blog-header h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 700; letter-spacing: -0.03em; }
.blog-header p { margin-top: 16px; font-size: 21px; color: var(--secondary-label); }
.blog-section { padding: 40px 0 110px; }
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 24px;
    max-width: var(--maxw);
    margin: 0 auto;
}
.blog-card {
    background: #fff;
    border: 1px solid var(--separator-soft);
    padding: 30px;
    border-radius: var(--r-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-category {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(0, 122, 255, 0.10);
    color: var(--accent);
    border-radius: var(--r-pill);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.blog-card h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 10px; color: var(--label); }
.blog-card p { color: var(--secondary-label); line-height: 1.55; margin-bottom: 16px; font-size: 15.5px; }
.blog-meta { display: flex; gap: 8px; color: var(--tertiary-label); font-size: 13.5px; }

/* ===========================================================
   Article (blog posts + legal)
   =========================================================== */
.blog-article { padding-top: 52px; }
.article-header { padding: 80px 0 40px; }
.article-header .container { max-width: 820px; }
.article-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.article-category {
    background: rgba(0, 122, 255, 0.10);
    color: var(--accent);
    padding: 5px 14px;
    border-radius: var(--r-pill);
    font-size: 12.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.article-date, .article-reading-time { color: var(--tertiary-label); font-size: 14px; }
.article-header h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; }
.article-subtitle { font-size: 21px; color: var(--secondary-label); line-height: 1.5; margin-top: 22px; max-width: 760px; }
.article-hero-image { width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow-md); margin-top: 36px; }

.article-content {
    max-width: 720px;
    margin: 48px auto 80px;
    font-size: 18px;
    line-height: 1.7;
    color: #2c2c2e;
}
.article-content h2 { font-size: 31px; font-weight: 700; letter-spacing: -0.025em; margin: 52px 0 20px; color: var(--label); }
.article-content h3 { font-size: 23px; font-weight: 600; letter-spacing: -0.02em; margin: 36px 0 16px; color: var(--label); }
.article-content p { margin-bottom: 22px; }
.article-content ul, .article-content ol { margin: 0 0 22px; padding-left: 28px; }
.article-content li { margin-bottom: 10px; }
.article-content strong { font-weight: 600; color: var(--label); }
.article-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
/* Action buttons in the article body are styled buttons, not text links */
.article-content a.button { text-decoration: none; }
.verdict-box a.button-primary { color: #fff; }
.article-image { width: 100%; border-radius: var(--r-md); margin: 32px 0; box-shadow: var(--shadow-sm); }

.article-tip, .verdict-box {
    background: rgba(0, 122, 255, 0.06);
    border: 1px solid rgba(0, 122, 255, 0.16);
    padding: 24px 26px;
    border-radius: var(--r-md);
    margin: 32px 0;
}
.verdict-box h3 { margin-top: 0; }
.verdict-box .button { margin-top: 16px; }
.article-quote {
    font-size: 22px;
    line-height: 1.5;
    font-style: italic;
    color: var(--label);
    padding: 8px 0 8px 26px;
    border-left: 3px solid var(--accent);
    margin: 32px 0;
}
.article-workflow { margin: 36px 0; }
.workflow-step {
    display: flex; gap: 20px; align-items: flex-start;
    padding: 22px; margin-bottom: 16px;
    background: var(--bg-secondary);
    border-radius: var(--r-md);
}
.workflow-step .step-number { width: 40px; height: 40px; font-size: 18px; margin: 0; flex-shrink: 0; }
.step-content strong { display: block; margin-bottom: 6px; }

.comparison-table-wrapper { overflow-x: auto; margin: 28px 0; border-radius: var(--r-md); border: 1px solid var(--separator); }
.comparison-table-wrapper .comparison-table th { background: var(--bg-secondary); }
.simple-table { width: 100%; border-collapse: collapse; margin: 24px 0; background: #fff; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--separator); }
.simple-table td { padding: 14px 20px; border-bottom: 1px solid var(--separator-soft); }
.simple-table tr:last-child td { border-bottom: none; }
.simple-table td:first-child { font-weight: 600; width: 32%; }

.article-cta {
    background: #1d1d1f;
    color: #fff;
    padding: 44px;
    border-radius: var(--r-xl);
    text-align: center;
    margin: 56px 0;
}
.article-cta h3 { color: #fff; font-size: 28px; letter-spacing: -0.02em; margin-bottom: 14px; }
.article-cta p { color: rgba(255,255,255,0.8); margin-bottom: 24px; }
.article-cta .button { margin: 0 auto; }
.article-cta .button-primary { background: #fff; color: #1d1d1f; }
.cta-subtext { color: rgba(255,255,255,0.7); font-size: 14px; margin-top: 14px; }

.article-footer { border-top: 1px solid var(--separator); padding: 32px 0 56px; margin-top: 48px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.article-tags { display: flex; gap: 10px; flex-wrap: wrap; min-width: 0; }
.tag { background: var(--bg-grouped); padding: 7px 14px; border-radius: var(--r-pill); font-size: 13.5px; color: var(--secondary-label); }
.article-share { display: flex; gap: 10px; }
.related-articles { padding: 80px 0; background: var(--bg-secondary); }
.related-articles h2 { text-align: center; font-size: 34px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 44px; }
.related-articles .blog-card { background: #fff; }
.read-more { color: var(--accent); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.read-more:hover { gap: 9px; }

/* Scroll progress */
.scroll-progress {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--accent);
    transform-origin: left;
    transform: scaleX(0);
    z-index: 1001;
}

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 1024px) {
    .features-grid, .privacy-grid, .usecases-grid, .seo-grid, .steps { grid-template-columns: repeat(2, 1fr); }
    .steps { gap: 40px 28px; }
    .gallery-grid-ipad { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    .section-pad { padding: 84px 0; }
    .spotlight { grid-template-columns: 1fr; gap: 40px; }
    .spotlight.reverse .spotlight-media { order: 0; }
    .spotlight + .spotlight { margin-top: 84px; }
    .spotlight-media { order: -1; }
    .footer-content { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-brand { grid-column: 1 / -1; }
    .nav-links { gap: 18px; }
    .nav-links a:not(.cta-button) { display: none; }
    .hero-stage { height: clamp(320px, 86vw, 560px); }
    .showcase-stage .device-iphone { bottom: -6%; }
}

@media (max-width: 560px) {
    .container { padding: 0 20px; }
    .features-grid, .privacy-grid, .usecases-grid, .seo-grid, .steps { grid-template-columns: 1fr; }
    .gallery-grid-ipad, .gallery-grid-mac { grid-template-columns: 1fr; }
    .hero { padding-top: 108px; }
    .hero-cta { flex-direction: column; }
    .hero-cta .button, .hero-cta .appstore-button { width: 100%; }
    .hero-stage .device-ipad { transform: translateX(-50%); width: 76%; }
    .hero-stage .device-iphone { right: auto; left: 4%; transform: none; width: 33%; }
    .article-content { font-size: 17px; }
    .article-footer { flex-direction: column; align-items: flex-start; }
    .article-tags { width: 100%; }
}

/* The 5-column comparison table can't fit a phone — let it scroll horizontally
   instead of clipping the last two competitor columns (Fireflies, Rev). */
@media (max-width: 700px) {
    .comparison-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .comparison-table { min-width: 540px; }
    .comparison-table th, .comparison-table td { padding: 14px 12px; font-size: 14px; }
    /* Keep the feature name pinned while the rest of the row scrolls. */
    .comparison-table th:first-child,
    .comparison-table td:first-child { position: sticky; left: 0; background: #fff; z-index: 1; }
    .comparison-table thead th:first-child { background: var(--bg-secondary); }
}
