/*
Home Widget website
The palette comes from the app icon: its three stacked layers (orange, light orange, yellow)
and the cream of its tiles. Everything else is a warm neutral.
*/

/* MARK: - Fonts */

/* Inter, served from the site itself: no request to a third party. Latin and Cyrillic subsets, variable weight. */

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("../fonts/inter-cyrillic-ext.woff2") format("woff2");
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("../fonts/inter-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("../fonts/inter-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("../fonts/inter-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* MARK: - Tokens */

:root {
    --orange: #f57402;
    --orange-light: #fd9a35;
    --yellow: #f9c02b;
    --cream: #fdf0e6;
    --orange-ink: #c85a00;

    --ink: #1d1b19;
    --ink-soft: #4a4542;
    --muted: #77706a;
    --line: rgba(60, 38, 18, 0.1);

    --bg: #fffcf8;
    --bg-warm: #fbf4ec;
    --surface: #ffffff;
    --night: #14110f;
    --night-surface: #1f1a17;

    --gradient: linear-gradient(120deg, var(--yellow) 0%, var(--orange-light) 42%, var(--orange) 100%);
    --radius-xl: 36px;
    --radius-lg: 24px;
    --radius: 16px;
    --shadow-soft: 0 1px 2px rgba(60, 30, 0, 0.04), 0 10px 30px rgba(60, 30, 0, 0.06);
    --header-height: 64px;
    --wrap: 1180px;
    --gutter: 24px;

    --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
    --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;
}

/* Languages written with their own scripts get a system font drawn for them,
   and a natural letter spacing instead of the tight Latin display tracking. */
html:lang(ja) {
    --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
    --font-display: var(--font);
}

html:lang(ko) {
    --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
    --font-display: var(--font);
}

html:lang(zh-Hans) {
    --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
    --font-display: var(--font);
}

html:lang(zh-Hant) {
    --font: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
    --font-display: var(--font);
}

html:is(:lang(ja), :lang(ko), :lang(zh)) :is(h1, h2, h3, .hero h1) {
    letter-spacing: 0;
}

html:lang(ko) body {
    word-break: keep-all;
}

/* Long compound words (German, Finnish, Dutch…) may break in headings rather than overflow. */
h1,
h2,
h3 {
    overflow-wrap: break-word;
}

html:not(:lang(en)) :is(h1, h2, h3) {
    hyphens: auto;
}

/* MARK: - Base */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: inherit;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: var(--font-display);
    color: var(--ink);
    text-wrap: balance;
}

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

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

figure {
    margin: 0;
}

::selection {
    background: var(--orange);
    color: #fff;
}

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

.sprite {
    display: none;
}

.icon {
    width: 1.25em;
    height: 1.25em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wrap {
    width: min(100% - var(--gutter) * 2, var(--wrap));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    text-decoration: none;
}

.skip-link:focus {
    top: 12px;
}

/* MARK: - Shared components */

.eyebrow {
    margin-bottom: 14px;
    color: var(--orange-ink);
    font-size: 0.94rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover {
    background: var(--orange);
}

.button-small {
    min-height: 36px;
    padding: 0 16px;
    font-size: 0.9rem;
}

.store-badge {
    display: inline-block;
    border-radius: 10px;
    transition: transform 0.2s ease;
}

.store-badge img {
    width: auto;
    height: 50px;
}

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

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--orange-ink);
    font-weight: 600;
    text-decoration: none;
}

.text-link .icon {
    transition: transform 0.2s ease;
}

.text-link:hover .icon {
    transform: translateX(3px);
}

.section {
    padding: clamp(72px, 10vw, 128px) 0;
}

.section-warm {
    background: var(--bg-warm);
}

.section-head {
    max-width: 760px;
    margin: 0 auto clamp(40px, 6vw, 64px);
    text-align: center;
}

.section-head h2,
.chapter-copy h2,
.cta h2 {
    font-size: clamp(2rem, 4.4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.032em;
}

.section-head > p:last-child {
    margin-top: 20px;
    color: var(--muted);
    font-size: 1.06rem;
}

.section-head-left {
    margin: 0;
    text-align: left;
}

.ticks {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.ticks li {
    display: flex;
    gap: 12px;
    color: var(--ink-soft);
    line-height: 1.5;
}

.ticks .icon {
    width: 22px;
    height: 22px;
    padding: 3px;
    border-radius: 50%;
    background: var(--cream);
    color: var(--orange);
    stroke-width: 2.6;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--gradient);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.badge-inline {
    margin-left: 8px;
    vertical-align: 1px;
}

.stars {
    display: inline-flex;
    gap: 2px;
    color: var(--orange);
}

.stars .icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
    stroke-width: 1;
}

/* A star filled to --fill, drawn over a faint full star: 4.35 shows four stars and a third. */
.star-part {
    position: relative;
    display: inline-flex;
}

.star-part .icon:first-child {
    opacity: 0.25;
}

.star-part .icon:last-child {
    position: absolute;
    inset: 0;
    clip-path: inset(0 calc(100% - var(--fill)) 0 0);
}

/* MARK: - Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-height);
    border-bottom: 1px solid transparent;
    background: rgba(255, 252, 248, 0.72);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
    border-bottom-color: var(--line);
    background: rgba(255, 252, 248, 0.86);
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 100%;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.06rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-decoration: none;
}

.brand img {
    width: 36px;
    height: 36px;
    border-radius: 22.5%;
    box-shadow: 0 0 0 1px var(--line);
}

.nav-links {
    display: flex;
    gap: 28px;
    margin-left: auto;
}

.nav-links a {
    color: var(--ink-soft);
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
    color: var(--orange-ink);
}

.brand span,
.nav-cta,
.nav-links a {
    white-space: nowrap;
}

.nav-toggle {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    border: 0;
    background: none;
    cursor: pointer;
}

.nav-toggle span {
    position: absolute;
    left: 12px;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform 0.25s ease;
}

.nav-toggle span:first-child {
    top: 17px;
}

.nav-toggle span:last-child {
    top: 25px;
}

.nav-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
}

/* MARK: - Language menu */

.lang-menu {
    position: relative;
}

.lang-menu summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink-soft);
    font-size: 0.86rem;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.lang-menu summary::-webkit-details-marker {
    display: none;
}

.lang-menu summary:hover,
.lang-menu[open] summary {
    border-color: rgba(245, 116, 2, 0.4);
}

.lang-menu .icon {
    width: 18px;
    height: 18px;
}

.lang-menu ul {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 6px;
    width: 340px;
    padding: 10px;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 20px 50px rgba(60, 30, 0, 0.16), 0 0 0 1px var(--line);
}

.lang-menu a {
    display: block;
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--ink);
    font-size: 0.92rem;
    text-decoration: none;
}

.lang-menu a:hover {
    background: var(--cream);
}

.lang-menu a[aria-current] {
    color: var(--orange-ink);
    font-weight: 700;
}

/* MARK: - Hero */

.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(40px, 7vw, 88px) 0 clamp(24px, 4vw, 48px);
    background:
        radial-gradient(60% 60% at 78% 55%, rgba(253, 154, 53, 0.32), transparent 70%),
        radial-gradient(40% 45% at 92% 20%, rgba(249, 192, 43, 0.28), transparent 70%),
        linear-gradient(180deg, var(--bg) 0%, #fff5ea 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Crect x='6' y='6' width='32' height='32' rx='9' fill='%23f57402' fill-opacity='0.06'/%3E%3C/svg%3E");
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(55% 70% at 75% 50%, #000 0%, transparent 75%);
    mask-image: radial-gradient(55% 70% at 75% 50%, #000 0%, transparent 75%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr);
    align-items: center;
    gap: clamp(24px, 3vw, 40px);
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px 7px 10px;
    border: 1px solid rgba(245, 116, 2, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--ink-soft);
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s ease;
}

.chip:hover {
    border-color: var(--orange);
}

.chip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 0 4px rgba(245, 116, 2, 0.16);
}

.hero h1 {
    font-size: clamp(2.75rem, 6.4vw, 5rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.hero h1 .gradient-text {
    display: inline-block;
    padding-bottom: 0.06em;
}

.hero-lead {
    max-width: 540px;
    margin-top: 24px;
    color: var(--ink-soft);
    font-size: clamp(1.06rem, 1.5vw, 1.22rem);
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 28px;
    margin-top: 36px;
}

.download {
    display: flex;
    align-items: center;
    gap: 12px;
}

.free-tag {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 50px;
    padding: 0 16px;
    border: 1.5px solid rgba(245, 116, 2, 0.35);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.75);
    color: var(--ink-soft);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.15;
}

.free-tag strong {
    color: var(--orange);
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.free-word {
    color: var(--orange);
}

.hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-top: 36px;
    color: var(--muted);
    font-size: 0.9rem;
}

.hero-facts li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-facts li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: var(--gradient);
}

.hero-visual {
    margin-right: calc(var(--gutter) * -1);
}

.hero-visual img {
    width: 112%;
    max-width: none;
    margin-left: -6%;
    animation: rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

/* MARK: - Press strip */

.press-strip {
    padding: 28px 0 8px;
}

.press-strip .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px 40px;
}

.press-strip p {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.press-strip ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px 30px;
}

.press-strip a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #6f6863;
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-decoration: none;
    opacity: 0.75;
    transition: opacity 0.2s ease;
}

.press-strip a:hover {
    opacity: 1;
}

.press-strip img {
    width: auto;
    height: 22px;
    filter: grayscale(1) contrast(1.1);
    mix-blend-mode: multiply;
}

.press-strip .press-lockup img {
    height: 20px;
    border-radius: 5px;
}

.press-strip .press-lockup img[src$=".svg"] {
    height: 17px;
}

/* MARK: - Use case index */

.case-index {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.case-index a {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.case-index a:hover {
    border-color: rgba(245, 116, 2, 0.35);
    box-shadow: var(--shadow-soft);
    transform: translateY(-2px);
}

.case-index .icon {
    width: 40px;
    height: 40px;
    padding: 9px;
    border-radius: 12px;
    background: var(--cream);
    color: var(--orange);
}

.surfaces {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin-top: 56px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--line);
}

.surfaces li {
    padding: 28px 24px;
    background: var(--bg);
}

.surfaces .icon {
    width: 28px;
    height: 28px;
    margin-bottom: 16px;
    color: var(--orange);
}

.surfaces h3 {
    font-size: 1.06rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.surfaces p {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.5;
}

/* MARK: - Chapters */

.chapter {
    padding: clamp(48px, 7vw, 96px) 0;
}

.chapter-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(32px, 5vw, 72px);
}

.chapter-reverse .stage {
    order: 2;
}

.chapter-copy .lead {
    margin-top: 20px;
    color: var(--ink-soft);
    font-size: 1.12rem;
    line-height: 1.6;
}

.stage {
    position: relative;
    overflow: hidden;
    padding: clamp(8px, 1.6vw, 20px);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(70% 55% at 50% 100%, rgba(253, 154, 53, 0.3), transparent 72%),
        radial-gradient(50% 40% at 15% 10%, rgba(249, 192, 43, 0.16), transparent 70%),
        linear-gradient(180deg, #fffaf4 0%, #fdeedd 100%);
    box-shadow: inset 0 0 0 1px rgba(245, 116, 2, 0.08);
}

.stage::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Crect x='6' y='6' width='28' height='28' rx='8' fill='%23f57402' fill-opacity='0.05'/%3E%3C/svg%3E");
    background-size: 40px 40px;
    -webkit-mask-image: radial-gradient(60% 60% at 50% 45%, #000 0%, transparent 80%);
    mask-image: radial-gradient(60% 60% at 50% 45%, #000 0%, transparent 80%);
}

.stage img {
    position: relative;
    width: 100%;
}

.case {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.chapter-copy h2 + .case {
    margin-top: 32px;
}

.case h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.14rem;
    font-weight: 700;
    letter-spacing: -0.012em;
    line-height: 1.3;
}

.case h3 .icon {
    width: 34px;
    height: 34px;
    padding: 7px;
    border-radius: 10px;
    background: var(--cream);
    color: var(--orange);
}

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

.case .case-note {
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.92rem;
}

/* Night chapter: cameras */

.chapter-night {
    margin: clamp(24px, 4vw, 48px) 0;
    background:
        radial-gradient(50% 60% at 30% 50%, rgba(245, 116, 2, 0.16), transparent 70%),
        var(--night);
    color: #f5efe9;
}

.chapter-night h2,
.chapter-night h3 {
    color: #fff;
}

.chapter-night .eyebrow {
    color: var(--orange-light);
}

.chapter-night .case {
    border-top-color: rgba(255, 255, 255, 0.12);
}

.chapter-night .case p {
    color: rgba(245, 239, 233, 0.78);
}

.chapter-night .case .case-note {
    color: rgba(245, 239, 233, 0.56);
}

.chapter-night .case h3 .icon {
    background: rgba(245, 116, 2, 0.16);
    color: var(--orange-light);
}

.stage-night {
    background:
        radial-gradient(70% 55% at 50% 100%, rgba(245, 116, 2, 0.32), transparent 72%),
        linear-gradient(180deg, #221c18 0%, #191411 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.stage-night::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Crect x='6' y='6' width='28' height='28' rx='8' fill='%23ffffff' fill-opacity='0.035'/%3E%3C/svg%3E");
}

/* MARK: - Highlights */

.highlights {
    padding: clamp(40px, 6vw, 72px) 0 0;
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.highlight {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background:
        radial-gradient(70% 60% at 80% 100%, rgba(253, 154, 53, 0.32), transparent 72%),
        linear-gradient(180deg, #fffaf4 0%, #fdeedd 100%);
    box-shadow: inset 0 0 0 1px rgba(245, 116, 2, 0.1);
    color: var(--ink);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight:hover {
    transform: translateY(-4px);
    box-shadow: inset 0 0 0 1px rgba(245, 116, 2, 0.2), 0 24px 60px rgba(60, 30, 0, 0.1);
}

.highlight-copy {
    padding: clamp(24px, 4vw, 40px) clamp(24px, 4vw, 40px) 0;
}

.highlight h3 {
    margin-top: 16px;
    font-size: clamp(1.4rem, 2.2vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.highlight p {
    max-width: 460px;
    margin-top: 10px;
    color: var(--ink-soft);
}

.highlight .text-link {
    margin-top: 16px;
}

.highlight picture {
    display: block;
    align-self: end;
    height: clamp(220px, 26vw, 340px);
    margin-top: 28px;
    overflow: hidden;
}

.highlight img {
    width: min(64%, 330px);
    margin: 0 auto;
    transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.highlight:hover img {
    transform: translateY(-8px);
}

.highlight-wide img {
    width: 94%;
    margin-top: 12px;
}

.highlight-media {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: clamp(220px, 26vw, 340px);
    margin-top: 20px;
    overflow: hidden;
}

/* The Duo video carries its device shell on white: multiply blends that white into the tile.
   Slightly turned and enlarged: once the Duo opens, only its bottom-left and top-right corners leave the tile. */
.highlight-video .highlight-media {
    align-self: center;
    height: auto;
    aspect-ratio: 1.2;
    align-items: center;
    margin: 12px 0 24px;
    overflow: visible;
}

/* Turned 7°, the open Duo is about as wide as the tile, so only two opposite corners leave it. */
.highlight-media video {
    width: 100%;
    min-width: 0;
    height: auto;
    transform: rotate(7deg) scale(1.1);
    mix-blend-mode: multiply;
}

.highlight-art {
    display: flex;
    align-items: center;
    justify-content: center;
    height: clamp(220px, 26vw, 340px);
    margin-top: 28px;
}

.highlight-art .icon {
    width: 148px;
    height: 148px;
    padding: 34px;
    border-radius: 40px;
    background: var(--surface);
    box-shadow: 0 24px 60px rgba(245, 116, 2, 0.16), inset 0 0 0 1px var(--line);
    color: var(--orange);
    stroke-width: 1.4;
    transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.highlight:hover .highlight-art .icon {
    transform: translateY(-8px);
}

.highlight-night {
    background:
        radial-gradient(70% 60% at 70% 100%, rgba(245, 116, 2, 0.34), transparent 72%),
        linear-gradient(180deg, #221c18 0%, #15110f 100%);
    color: #fff;
}

.highlight-night h3 {
    color: #fff;
}

.highlight-night p {
    color: rgba(245, 239, 233, 0.78);
}

.highlight-night .text-link {
    color: var(--orange-light);
}

/* MARK: - More use cases */

.ideas {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.idea {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.idea .icon {
    width: 44px;
    height: 44px;
    padding: 10px;
    border-radius: 13px;
    background: var(--cream);
    color: var(--orange);
}

.idea h3 {
    margin-top: 18px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.012em;
    line-height: 1.3;
}

.idea p {
    margin-top: 8px;
    color: var(--ink-soft);
    font-size: 0.97rem;
}

/* MARK: - Reviews */

#reviews .section-head > p:last-child {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.rating-score {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.reviews {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.review {
    display: flex;
    flex-direction: column;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.review figcaption {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
}

.review blockquote {
    flex: 1;
    margin: 12px 0 0;
}

.review blockquote p {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.12rem;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: -0.01em;
}

.review-source {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.86rem;
}

/* MARK: - Facts */

.facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    max-width: 1080px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--line);
}

.facts div {
    padding: 24px;
    background: var(--surface);
}

.facts dt {
    color: var(--orange-ink);
    font-size: 0.86rem;
    font-weight: 700;
}

.facts dd {
    margin: 8px 0 0;
    color: var(--ink-soft);
    font-size: 0.97rem;
    line-height: 1.55;
}

/* MARK: - Comparison */

.compare {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 20px;
    max-width: 980px;
    margin-inline: auto;
}

.compare-card {
    padding: clamp(24px, 4vw, 40px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.compare-card h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 700;
}

.compare-card h3 img {
    border-radius: 22.5%;
}

.compare-card ul {
    display: grid;
    gap: 14px;
}

.compare-card li {
    display: flex;
    gap: 12px;
    color: var(--ink-soft);
    line-height: 1.45;
}

.compare-card:first-child li::before {
    content: "";
    flex: none;
    width: 6px;
    height: 6px;
    margin: 0.6em 8px 0 8px;
    border-radius: 50%;
    background: #c9c1ba;
}

.compare-card-accent {
    border-color: rgba(245, 116, 2, 0.28);
    background:
        radial-gradient(80% 80% at 100% 0%, rgba(249, 192, 43, 0.14), transparent 60%),
        var(--surface);
    box-shadow: 0 24px 60px rgba(245, 116, 2, 0.1);
}

.compare-card-accent li {
    color: var(--ink);
    font-weight: 500;
}

.compare-card-accent .icon {
    width: 22px;
    height: 22px;
    padding: 3px;
    border-radius: 50%;
    background: var(--orange);
    color: #fff;
    stroke-width: 2.8;
}

.fine-print {
    max-width: 760px;
    margin: 32px auto 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.6;
    text-align: center;
}

/* MARK: - Videos

The App Store previews sit over the chapter visuals, in front-facing device frames. */

.stage-video {
    position: absolute;
    z-index: 2;
    left: 5%;
    bottom: 5%;
}

.stage-video.device-video-iphone {
    width: 30%;
}

.stage-video.device-video-ipad {
    width: 41%;
}

.stage-video .play-toggle {
    position: absolute;
    left: calc(100% + 10px);
    bottom: 2%;
    box-shadow: var(--shadow-soft);
}

.device-video-frame {
    position: relative;
    filter: drop-shadow(0 30px 40px rgba(60, 30, 0, 0.16)) drop-shadow(0 6px 10px rgba(60, 30, 0, 0.08));
}

.device-video video {
    position: absolute;
    width: auto;
    max-width: none;
    height: auto;
    object-fit: cover;
    background: #000;
}

/* Screen rectangles measured on the rendered frames (see the render tool). */
.device-video-iphone video {
    left: 4%;
    top: 2.128%;
    width: 92%;
    height: 95.745%;
    border-radius: 14% / 6.5%;
}

.device-video-ipad video {
    left: 4.462%;
    top: 3.706%;
    width: 91.077%;
    height: 92.824%;
    border-radius: 6.2% / 4.6%;
}

.device-video-shell {
    position: relative;
    width: 100%;
    pointer-events: none;
}

.play-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.play-toggle:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.play-toggle .icon {
    width: 18px;
    height: 18px;
}

.play-toggle .icon-play {
    fill: currentColor;
    stroke-width: 1.4;
}

.play-toggle .icon-pause,
.play-toggle.is-playing .icon-play {
    display: none;
}

.play-toggle.is-playing .icon-pause {
    display: block;
}

/* MARK: - Press quotes */

.quotes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.quote {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.quote p {
    flex: 1;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: -0.01em;
}

.quote footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.quote cite {
    display: flex;
    flex-direction: column;
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-style: normal;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.quote cite span {
    color: var(--muted);
    font-family: var(--font);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0;
}

.press-lead q {
    color: var(--ink);
    font-weight: 600;
    quotes: "“" "”";
}

.coverage {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    margin-top: 56px;
}

.coverage h3 {
    margin-bottom: 12px;
    color: var(--orange-ink);
    font-family: var(--font);
    font-size: 0.86rem;
    font-weight: 700;
}

.coverage li + li {
    border-top: 1px solid var(--line);
}

.coverage a {
    display: grid;
    gap: 2px;
    padding: 12px 0;
    text-decoration: none;
}

.coverage-outlet {
    font-size: 0.86rem;
    font-weight: 700;
}

.coverage-title {
    color: var(--ink-soft);
    font-size: 0.92rem;
    line-height: 1.4;
}

.coverage a:hover .coverage-title {
    color: var(--orange-ink);
}

.coverage-meta {
    color: var(--muted);
    font-size: 0.78rem;
}

.quote a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--orange-ink);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
}

/* MARK: - FAQ */

.faq-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
    align-items: start;
    gap: clamp(32px, 6vw, 80px);
}

.faq-grid .section-head {
    position: sticky;
    top: calc(var(--header-height) + 32px);
}

.faq-grid .section-head a {
    color: var(--orange-ink);
}

.faq-list details {
    border-bottom: 1px solid var(--line);
}

.faq-list details:first-child {
    border-top: 1px solid var(--line);
}

.faq-list summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 0;
    font-size: 1.06rem;
    font-weight: 600;
    line-height: 1.4;
    list-style: none;
    cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary .icon {
    width: 28px;
    height: 28px;
    padding: 5px;
    border-radius: 50%;
    background: var(--cream);
    color: var(--orange);
    transition: transform 0.25s ease;
}

.faq-list details[open] summary .icon {
    transform: rotate(45deg);
}

.faq-list details p {
    padding: 0 48px 24px 0;
    color: var(--ink-soft);
}

.faq-list details a {
    color: var(--orange-ink);
}

/* MARK: - Call to action */

.cta {
    position: relative;
    overflow: hidden;
    padding: clamp(80px, 11vw, 140px) 0;
    background:
        radial-gradient(50% 70% at 50% 110%, rgba(245, 116, 2, 0.35), transparent 70%),
        linear-gradient(180deg, var(--bg) 0%, #fff1e2 100%);
    text-align: center;
}

.cta-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-icon {
    width: 112px;
    border-radius: 22.5%;
    box-shadow: 0 20px 50px rgba(245, 116, 2, 0.28), 0 0 0 1px var(--line);
}

.cta h2 {
    max-width: 720px;
    margin-top: 32px;
}

.cta p {
    margin: 16px 0 32px;
    color: var(--ink-soft);
    font-size: 1.1rem;
}

/* MARK: - Footer */

.site-footer {
    padding: 64px 0 32px;
    border-top: 1px solid var(--line);
    background: var(--bg);
    font-size: 0.94rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr));
    gap: 32px;
}

.footer-brand p {
    max-width: 340px;
    margin-top: 16px;
    color: var(--muted);
}

.footer-brand .brand img {
    width: 32px;
    height: 32px;
}

.site-footer h2 {
    margin-bottom: 14px;
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.site-footer ul {
    display: grid;
    gap: 10px;
}

.site-footer ul a {
    color: var(--ink-soft);
    text-decoration: none;
}

.site-footer ul a:hover {
    color: var(--orange-ink);
}

.footer-brand p a,
.sub-footer a,
.facts dd a {
    color: inherit;
    text-decoration-color: rgba(245, 116, 2, 0.5);
    text-underline-offset: 3px;
}

.footer-brand p a:hover,
.sub-footer a:hover,
.facts dd a:hover {
    color: var(--orange-ink);
}

.sub-footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.84rem;
}

/* MARK: - Legal page */

.legal-page .lang-menu {
    margin-left: auto;
}

.legal-back {
    font-size: 0.92rem;
}

.legal {
    max-width: 760px;
    padding: clamp(48px, 8vw, 96px) 0;
    color: var(--ink-soft);
    font: 400 1rem/1.7 var(--font);
    /* Long addresses and URLs wrap instead of widening the page on phones. */
    overflow-wrap: anywhere;
}

.legal h1 {
    margin: 0 0 8px;
    color: var(--ink);
    font: 800 clamp(2rem, 5vw, 3rem)/1.1 var(--font-display);
    letter-spacing: -0.035em;
}

/* Japanese and Chinese titles break at their space, not inside a word, unless the line is too narrow. */
html:is(:lang(ja), :lang(zh)) .legal h1 {
    letter-spacing: 0;
    word-break: keep-all;
}

/* Long legal paragraphs read better with plain wrapping than with balanced last lines. */
.legal p,
.legal li {
    text-wrap: wrap;
}

.legal .legal-date {
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 0.92rem;
}

.legal h2 {
    margin: 40px 0 12px;
    color: var(--ink);
    font: 700 1.3rem/1.3 var(--font-display);
    letter-spacing: -0.01em;
}

.legal p + p,
.legal ul + p,
.legal p + ul {
    margin-top: 12px;
}

.legal ul {
    display: grid;
    gap: 10px;
    padding-left: 1.2em;
    list-style: disc;
}

.legal li::marker {
    color: var(--orange);
}

.legal a {
    color: var(--orange-ink);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal .legal-note {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.9rem;
    font-style: italic;
}

.legal-page .site-footer {
    padding-top: 0;
}

/* MARK: - Motion */

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.js .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero-visual img {
        animation: none;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* MARK: - Responsive */

@media (max-width: 1080px) {
    .nav-links {
        gap: 20px;
    }

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

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

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

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

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

    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* The navigation folds into a menu as soon as its translated links no longer fit on one line. */
@media (max-width: 1180px) {
    .nav {
        gap: 12px;
    }

    .lang-menu {
        margin-left: auto;
    }

    .lang-menu ul {
        position: fixed;
        top: calc(var(--header-height) + 4px);
        right: var(--gutter);
        width: min(340px, calc(100vw - var(--gutter) * 2));
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 8px var(--gutter) 20px;
        border-bottom: 1px solid var(--line);
        background: rgba(255, 252, 248, 0.97);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links a {
        display: block;
        padding: 14px 0;
        border-bottom: 1px solid var(--line);
        font-size: 1.06rem;
    }

    .nav-links li:last-child a {
        border-bottom: 0;
    }
}

@media (max-width: 860px) {
    :root {
        --header-height: 56px;
        --gutter: 16px;
    }

    .lang-menu summary {
        padding: 0 10px;
    }

    .lang-menu summary span {
        display: none;
    }


    .hero-grid,
    .chapter-grid,
    .faq-grid,
    .compare {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero {
        text-align: center;
    }

    .hero-lead {
        margin-inline: auto;
    }

    .hero-actions,
    .hero-facts {
        justify-content: center;
    }

    .hero-visual {
        margin: 0 auto;
        max-width: 560px;
    }

    .hero-visual img {
        width: 100%;
        margin-left: 0;
    }

    .chapter-reverse .stage {
        order: 0;
    }

    .chips {
        justify-content: center;
    }

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

    .faq-grid .section-head {
        position: static;
        text-align: center;
    }

}

@media (max-width: 600px) {
    body {
        font-size: 16px;
    }

    .nav-cta {
        padding: 0 12px;
        font-size: 0.84rem;
    }
}

/* On a phone, the app icon alone stands for the brand: translated download buttons need the room. */
@media (max-width: 430px) {
    .site-header .brand span {
        display: none;
    }

    .case-index,
    .quotes,
    .ideas,
    .reviews,
    .facts,
    .highlight-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .surfaces {
        margin-top: 40px;
    }

    .surfaces li {
        padding: 20px 16px;
    }

    .press-strip img {
        height: 20px;
    }

    .press-strip ul {
        gap: 14px 28px;
    }

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

    .faq-list details p {
        padding-right: 0;
    }

    .footer-grid > div:last-child {
        grid-column: 1 / -1;
    }

    .stage {
        border-radius: var(--radius-lg);
    }
}

/* MARK: - Not found page */

.legal .not-found-languages {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    padding: 0;
    list-style: none;
}
