/* unroller.app landing page. Brand blue comes from the App Store screenshots. */
:root {
    --blue-dark: #073781;
    --blue: #224f94;
    --blue-light: #537bb8;
    --accent: #2f6fe4;
    --bg: #f5f7fb;
    --surface: #ffffff;
    --ink: #13213a;
    --muted: #55627a;
    --line: rgba(19, 33, 58, 0.12);
    --radius: 22px;
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0c1424;
        --surface: #142038;
        --ink: #e9eef8;
        --muted: #a5b1c6;
        --line: rgba(233, 238, 248, 0.14);
        --accent: #7aa7ff;
    }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 3px solid #8fb4ff; outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 0 0 20px; }
h3 { font-size: 1.1rem; margin: 0 0 6px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 10; padding: 10px 14px; background: #fff; color: #000; border-radius: 8px; }
.skip-link:focus { top: 12px; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--blue-dark) 0%, var(--blue) 55%, var(--blue-light) 100%); color: #fff; overflow: hidden; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 18px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.brand img { border-radius: 22.5%; }
.topbar-links { display: flex; flex-wrap: wrap; gap: 2px 20px; font-size: 0.95rem; }
.topbar-links a { color: rgba(255, 255, 255, 0.86); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.topbar-links a:hover { color: #fff; }
.hero-body { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; padding-block: 32px 0; }
.hero-copy { padding-bottom: 64px; }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.8rem); margin: 0 0 20px; }
.lead { font-size: 1.15rem; color: rgba(255, 255, 255, 0.9); max-width: 36em; margin: 0 0 28px; }
.store-badge { display: inline-block; }
.store-badge img { height: 50px; width: auto; }
.note { font-size: 0.95rem; color: rgba(255, 255, 255, 0.82); margin: 16px 0 6px; }
.rating { font-size: 0.95rem; color: rgba(255, 255, 255, 0.82); margin: 0; }
.rating span { color: #ffd166; letter-spacing: 1px; }
.hero-shots { position: relative; height: 560px; align-self: end; }
.hero-shots .shot { position: absolute; width: 258px; bottom: -40px; border-radius: 26px; box-shadow: 0 24px 60px rgba(3, 18, 48, 0.45); }
.shot-front { left: 4%; z-index: 2; }
.shot-back { right: 4%; bottom: 10px !important; transform: rotate(4deg); }

/* Sections */
.section { padding-block: 80px; }
.split { display: grid; grid-template-columns: 1fr 300px; gap: 56px; align-items: center; }
.split > .shot, .shot-row .shot { border-radius: var(--radius); box-shadow: 0 16px 40px rgba(7, 55, 129, 0.18); }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 22px; }
.steps li { counter-increment: step; position: relative; padding-left: 56px; }
.steps li::before {
    content: counter(step);
    position: absolute; left: 0; top: -2px;
    width: 38px; height: 38px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--blue-dark); color: #fff; font-weight: 700;
}
.steps p, .features p, .two-col p, .faq p { color: var(--muted); margin: 0; }
.band { background: var(--surface); border-block: 1px solid var(--line); }
.features { list-style: none; padding: 0; margin: 0 0 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 32px; }
.features li { padding-top: 16px; border-top: 3px solid var(--blue-light); }
.shot-row { display: grid; grid-template-columns: repeat(3, minmax(0, 260px)); justify-content: center; gap: 28px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.two-col h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 600; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 1.5rem; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 20px; }

/* Closing call to action */
.cta { background: linear-gradient(135deg, var(--blue-dark), var(--blue-light)); color: #fff; text-align: center; padding-block: 72px; }
.cta h2 { margin-bottom: 10px; }
.cta p { color: rgba(255, 255, 255, 0.88); margin: 0 0 24px; }

.site-footer { padding-block: 32px 48px; font-size: 0.92rem; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-bottom: 8px; }
.site-footer nav a { min-height: 44px; display: inline-flex; align-items: center; }

@media (max-width: 900px) {
    .hero-body { grid-template-columns: 1fr; gap: 8px; }
    .hero-copy { padding-bottom: 8px; }
    .hero-shots { height: 380px; }
    .hero-shots .shot { width: 172px; bottom: -30px; }
    .shot-front { left: calc(50% - 180px); }
    .shot-back { right: calc(50% - 180px); }
    .split, .two-col { grid-template-columns: 1fr; gap: 32px; }
    .split > .shot { width: min(280px, 80%); margin-inline: auto; }
    .features { grid-template-columns: 1fr 1fr; }
    .section { padding-block: 56px; }
}
@media (max-width: 560px) {
    body { font-size: 16px; }
    .topbar-links { gap: 0 14px; font-size: 0.9rem; }
    .features { grid-template-columns: 1fr; }
    .shot-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
    .shot-row .shot { border-radius: 12px; }
    .hero-shots { height: 330px; }
    .hero-shots .shot { width: 150px; }
    .shot-front { left: calc(50% - 158px); }
    .shot-back { right: calc(50% - 158px); }
}

/* Guides */
.guide-header { background: linear-gradient(180deg, var(--blue-dark), var(--blue)); color: #fff; }
.article { max-width: 760px; padding-block: 28px 72px; }
.article h1 { font-size: clamp(2rem, 4.6vw, 2.9rem); margin: 8px 0 12px; }
.article h2 { font-size: clamp(1.4rem, 2.8vw, 1.75rem); margin: 44px 0 12px; }
.article p, .article li { color: var(--ink); }
.article section > p, .howto li { line-height: 1.7; }
.breadcrumb { font-size: 0.9rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.byline { font-size: 0.9rem; color: var(--muted); margin: 0 0 24px; }
.article-lead { font-size: 1.15rem; line-height: 1.65; }
.howto { padding-left: 1.4rem; display: grid; gap: 8px; }
.howto li::marker { font-weight: 700; color: var(--blue); }
.article figure { margin: 28px auto; width: min(300px, 80%); }
.article figure .shot { border-radius: var(--radius); box-shadow: 0 16px 40px rgba(7, 55, 129, 0.18); }
.article figcaption { font-size: 0.9rem; color: var(--muted); text-align: center; margin-top: 10px; }
.callout { display: flex; gap: 18px; align-items: flex-start; margin: 32px 0; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(7, 55, 129, 0.08); }
.callout-icon { width: 64px; height: 64px; border-radius: 22.5%; flex: 0 0 auto; }
.callout p { margin: 0 0 14px; color: var(--muted); }
.callout strong { color: var(--ink); }
.callout .store-badge img { height: 44px; }
.article .faq { max-width: none; }
.related { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.related h2 { margin-top: 0; font-size: 1.2rem; }
.related ul { padding-left: 1.2rem; display: grid; gap: 8px; }
.guide-cards { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 16px; }
.guide-cards a { display: block; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform 160ms ease, box-shadow 160ms ease; }
.guide-cards a:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(7, 55, 129, 0.12); }
.guide-cards h2 { font-size: 1.2rem; margin: 0 0 6px; }
.guide-cards p { margin: 0; color: var(--muted); }
@media (max-width: 560px) {
    .callout { flex-direction: column; }
}
