/* Shared style for hdw.fn11.net */
:root {
    --pink: #FF2D55;
    --bg: #ffffff;
    --bg-card: #ffffff;
    --fg: #000000;
    --fg-muted: rgba(0, 0, 0, 0.6);
    --fg-faint: rgba(0, 0, 0, 0.4);
    --border: rgba(0, 0, 0, 0.08);
    --shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    --radius: 22px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #000000;
        --bg-card: #0a0a0a;
        --fg: #ffffff;
        --fg-muted: rgba(255, 255, 255, 0.7);
        --fg-faint: rgba(255, 255, 255, 0.45);
        --border: rgba(255, 255, 255, 0.12);
        --shadow: 0 4px 14px rgba(255, 255, 255, 0.04);
    }
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "SF Pro", system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

main {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 24px 96px;
}

header {
    margin-bottom: 32px;
}

/* Brand title — big, pink, no underline */
.brand {
    display: inline-block;
    font-size: 36px;
    line-height: 1.15;
    font-weight: 800;
    color: var(--pink);
    text-decoration: none;
    letter-spacing: -0.02em;
    border-bottom: none;
}
.brand:hover { color: var(--pink); border-bottom: none; }

h1 {
    font-size: 36px;
    line-height: 1.15;
    font-weight: 800;
    margin: 28px 0 12px;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 36px 0 10px;
    letter-spacing: -0.01em;
}

p {
    margin: 0 0 14px;
    color: var(--fg);
}

.lead {
    font-size: 19px;
    color: var(--fg-muted);
    margin-bottom: 24px;
}

ul, ol {
    padding-left: 22px;
    margin: 0 0 18px;
}

li { margin: 6px 0; }

a {
    color: var(--pink);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 45, 85, 0.35);
}

a:hover { border-bottom-color: var(--pink); }

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin: 18px 0;
}

.muted { color: var(--fg-muted); }
.small { font-size: 14px; color: var(--fg-muted); }

/* App Store download badge (primary CTA in hero) */
.appstore-cta {
    margin: 8px 0 28px;
}

a.appstore-badge,
a.appstore-badge:hover,
a.appstore-badge:focus-visible {
    border: none;
    border-bottom: 0;
    text-decoration: none;
    outline: none;
}

.appstore-badge {
    display: inline-block;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.appstore-badge:hover,
.appstore-badge:focus-visible {
    opacity: 0.85;
    transform: translateY(-1px);
}

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

/* Two square widget-style link cards, side-by-side */
.widget-cards {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin: 32px 0 16px;
}

.widget-card {
    flex: 0 0 155px;
    width: 155px;
    height: 155px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: var(--fg);
    box-shadow: var(--shadow);
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.widget-card:hover,
.widget-card:focus-visible {
    background: var(--pink);
    color: #ffffff;
    border-color: var(--pink);
    box-shadow: 0 8px 22px rgba(255, 45, 85, 0.3);
    outline: none;
}

.widget-card-label {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.widget-card-chev {
    align-self: flex-end;
    font-size: 24px;
    line-height: 1;
}

@media (max-width: 380px) {
    .widget-card {
        flex: 1 1 100%;
        width: auto;
    }
}

/* Screenshots gallery: raw captures inside CSS device frames */
/* One row per device; scrolls sideways when it doesn't fit. */
.screenshots {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin: 0 -24px 24px;
    padding: 12px 24px 32px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 24px;
}

.screenshots > .device {
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.device {
    position: relative;
    box-sizing: border-box;
    background: #0b0b0c;
    box-shadow: inset 0 0 0 2px #3a3a3c, 0 6px 28px rgba(0, 0, 0, 0.18);
}

.device img {
    display: block;
    width: 100%;
    height: auto;
}

.device.phone {
    width: 210px;
    padding: 7px;
    border-radius: 36px;
}

.device.phone img {
    border-radius: 29px;
}

/* Dynamic Island, sized and placed as on iPhone 17 Pro Max. */
.device.phone::after {
    content: "";
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 29%;
    height: 17px;
    border-radius: 9px;
    background: #000;
}

.device.watch {
    width: 180px;
    padding: 12px;
    border-radius: 46px;
    background: #1c1c1e;
    box-shadow: inset 0 0 0 3px #8e8e93, 0 6px 28px rgba(0, 0, 0, 0.18);
}

.device.watch img {
    border-radius: 34px;
}

/* Digital Crown and side button. */
.device.watch::before,
.device.watch::after {
    content: "";
    position: absolute;
    background: #8e8e93;
    border-radius: 4px;
}

.device.watch::before {
    top: 22%;
    right: -7px;
    width: 8px;
    height: 18%;
}

.device.watch::after {
    top: 52%;
    right: -5px;
    width: 5px;
    height: 22%;
}

.device.ipad {
    width: min(560px, 100%);
    padding: 18px;
    border-radius: 36px;
}

.device.ipad img {
    border-radius: 20px;
}

footer {
    margin-top: 64px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 14px;
    color: var(--fg-faint);
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
}

/* Footer links: muted text, no underline by default; red underline on hover. */
footer a {
    color: var(--fg-muted);
    border-bottom: 1px solid transparent;
}
footer a:hover,
footer a:focus-visible {
    color: var(--fg);
    border-bottom-color: var(--pink);
}

@media (max-width: 480px) {
    main { padding: 32px 20px 64px; }
    .brand, h1 { font-size: 30px; }
    h2 { font-size: 20px; }
    .appstore-cta { text-align: center; }
}
