/* Timely static site — shared styles, ported from the vinext app (app/globals.css). */
:root {
  color-scheme: light;
  --background: #fff;
  --foreground: #292a30;
  --muted: #f4f5f5;
  --muted-foreground: #73757b;
  --border: #e9eaed;
  --ring: #6f8a79;
}
/* Bilingual content: show only the active language. Default is English. */
html[data-lang='en'] [lang='zh'] { display: none !important; }
html[data-lang='zh'] [lang='en'] { display: none !important; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 36px; }
body { margin: 0; background: var(--background); color: var(--foreground); font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; border: 0; background: none; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--ring); outline-offset: 5px; }
::selection { background: #dce9da; }

.skip-link { position: fixed; left: 12px; top: -70px; padding: 12px 20px; background: #292a30; color: #fff; z-index: 20; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.site-header { max-width: 1180px; margin: auto; height: 104px; padding: 0 38px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; gap: 10px; align-items: center; font-size: 25px; font-weight: 650; letter-spacing: -.8px; }
.brand img { border-radius: 11px; }
.brand-dot { color: #8ba57c; }
.site-header nav { display: flex; align-items: center; gap: 24px; }
.nav-link { font-size: 14px; color: #77777d; transition: color .2s; }
.nav-link:hover { color: #292a30; }
.lang-toggle { display: inline-flex; padding: 3px; background: #f5f5f6; border: 1px solid #ededf0; border-radius: 20px; gap: 2px; }
.lang-toggle button { padding: 5px 11px; border-radius: 15px; font-size: 12.5px; font-weight: 500; color: #73757b; letter-spacing: .3px; }
.lang-toggle button[aria-pressed='true'] { background: #fff; color: #34363a; box-shadow: 0 2px 5px #292a3010; }

.store-link { display: inline-flex; align-items: center; justify-content: center; gap: 13px; padding: 11px 25px 12px; border: 1px solid #292a30; border-radius: 15px; background: #292a30; color: #fff; text-align: left; transition: transform .2s, box-shadow .2s, background .2s; }
.store-link:hover { transform: translateY(-3px); background: #414249; box-shadow: 0 7px 18px #292a3014; }
.store-link:active { transform: translateY(0); }
.store-link > svg:first-child { width: 25px; height: 31px; }
.store-link span { display: flex; flex-direction: column; }
.store-link small { font-size: 12px; line-height: 1.3; letter-spacing: .5px; }
.store-link strong { font-size: 20px; line-height: 1.4; font-weight: 530; }
.store-link.compact { border-radius: 25px; padding: 9px 16px; gap: 9px; }
.store-link.compact > svg:first-child { width: 14px; height: 19px; }
.store-link.compact strong { font-size: 14px; font-weight: 500; }

.hero { padding: 48px 20px 0; text-align: center; overflow: clip; }
.hero-copy { position: relative; z-index: 1; animation: enter .8s ease both; }
.eyebrow { color: #6f7771; font-size: 12px; letter-spacing: 2px; display: inline-flex; align-items: center; gap: 8px; }
.status-dot { width: 6px; height: 6px; background: #8ca886; border-radius: 50%; box-shadow: 0 0 0 4px #8ca88612; }
h1 { margin: 25px 0 23px; font-size: clamp(2rem, 4vw, 3.55rem); font-weight: 560; letter-spacing: -2.6px; line-height: 1.45; }
.color-word { position: relative; color: #657d64; white-space: nowrap; }
.color-word > svg { position: absolute; width: 100%; height: 11px; bottom: -9px; left: 0; overflow: visible; fill: none; stroke: #c9d9b9; stroke-width: 6; stroke-linecap: round; }
.hero-description { margin: 0; font-size: 16px; line-height: 1.9; color: #777980; letter-spacing: .4px; }
.mobile-break { display: none; }

.showcase { margin: 32px auto 0; max-width: 1100px; }
.view-tabs { display: flex; justify-content: center; padding: 5px; background: #f5f5f6; border: 1px solid #ededf0; border-radius: 30px; gap: 4px; width: fit-content; margin: 0 auto; }
.view-tab { min-height: 36px; display: inline-flex; align-items: center; padding: 8px 17px; border-radius: 24px; color: #73757b; gap: 7px; font-size: 14px; font-weight: 450; }
.view-tab[data-active] { background: #fff; color: #34363a; box-shadow: 0 2px 5px #292a3010; }
.showcase-panel { width: 100%; animation: enter .5s ease both; }
.showcase-panel[hidden] { display: none; }
.product-stage { --glow: #e8f0e7; position: relative; isolation: isolate; display: flex; align-items: center; justify-content: center; margin: 37px auto 0; min-height: 545px; }
.product-stage::before { content: ''; position: absolute; z-index: -2; width: min(700px, 100%); height: 650px; top: -25px; border-radius: 50%; background: radial-gradient(ellipse at 35% 52%, var(--glow), transparent 65%), radial-gradient(ellipse at 70% 48%, #eee8fa88, transparent 65%); opacity: .8; }
.product-stage.purple { --glow: #efe9fa; }
.product-stage.peach { --glow: #f7e9dc; }
.orbit { position: absolute; pointer-events: none; z-index: -1; border: 1px solid #87978615; border-radius: 50%; width: 540px; height: 540px; }
.orbit-two { width: 760px; height: 760px; border-style: dashed; border-color: #a6a6b214; }
.phone-frame { width: 260px; flex-shrink: 0; padding: 5px; background: #fff; border-radius: 39px; box-shadow: 0 0 0 1px #dedee6, 0 0 0 4px #f2f2f5, 0 25px 70px -25px #333a4e42, 12px 20px 45px -30px #82868150; transform: rotate(-3deg); transition: transform .5s; animation: phone-enter .65s ease both; }
.phone-frame:hover { transform: rotate(0); }
.phone-frame img { display: block; width: 100%; height: auto; aspect-ratio: 1179/2556; object-fit: cover; object-position: top; border-radius: 34px; background: #fff; }
.annotation { width: 245px; position: absolute; text-align: left; }
.annotation-left { left: max(0px, calc(50% - 445px)); top: 140px; transform: rotate(-5deg); }
.annotation-right { right: max(0px, calc(50% - 445px)); top: 315px; transform: rotate(4deg); }
.annotation h2 { margin: 15px 0 9px; font-size: 19px; font-weight: 500; letter-spacing: .4px; }
.annotation p { color: #787b82; font-size: 14px; line-height: 1.95; white-space: pre-line; margin: 0; }
.annotation-tag { display: block; color: #81858a; font-size: 12px; letter-spacing: 1.5px; font-weight: 500; }
.annotation-right .annotation-tag { margin-top: 19px; }
.small-spark { color: #b7a3d3; position: absolute; top: -52px; left: 4px; font-size: 48px; line-height: 1; font-weight: 300; }
.color-dots { display: flex; gap: 6px; margin-top: 20px; padding-left: 2px; }
.color-dots i { width: 25px; height: 8px; border-radius: 5px; background: #bad9b2; transform: rotate(-12deg); }
.color-dots i:nth-child(2) { background: #d8c9ec; }
.color-dots i:nth-child(3) { background: #f1cdb8; }
.color-dots i:nth-child(4) { background: #f2e5a8; }
.preview-caption { position: relative; display: flex; justify-content: center; align-items: center; gap: 8px; margin: 30px 0 0; color: #7b7d84; font-size: 12px; letter-spacing: 1.2px; }
.preview-caption > span:first-child { width: 4px; height: 4px; border-radius: 50%; background: #9ab193; }
.hero-download { position: relative; margin-top: 31px; }
.hero-download > p { font-size: 12px; color: #777980; margin: 13px 0 0; line-height: 1.8; letter-spacing: .3px; }
.hero-download > p span { color: #7c7f85; }
.discover-link { display: inline-flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 59px; color: #797d84; font-size: 12px; letter-spacing: 1px; }
.discover-link svg { transition: transform .2s; }
.discover-link:hover svg { transform: translateY(4px); }

.details-section { max-width: 1080px; padding: 83px 30px 82px; margin: auto; }
.details-heading { text-align: center; }
.section-label { font-size: 12px; letter-spacing: 2.5px; color: #758171; }
.details-heading h2 { font-size: clamp(1.7rem, 3vw, 2.1rem); letter-spacing: -1px; font-weight: 500; margin: 17px 0 14px; }
.details-heading > p { font-size: 16px; line-height: 1.8; color: #797c83; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 52px; margin-top: 50px; }
.feature-icon { display: flex; width: 49px; height: 49px; border-radius: 16px; align-items: center; justify-content: center; }
.mint { background: #ecf3e9; color: #71866b; }
.lilac { background: #f1edf8; color: #9b83b7; }
.apricot { background: #f9efe7; color: #bd9379; }
.feature h3 { font-size: 18px; font-weight: 550; margin: 23px 0 11px; }
.feature p { font-size: 16px; color: #777b81; line-height: 1.95; margin: 0; }
.feature-note { display: flex; align-items: center; gap: 5px; color: #7a7f7d; font-size: 12px; margin-top: 19px; }
.feature-note svg { color: #819774; }

.closing { margin: 0 auto; padding: 60px 24px 70px; max-width: 1080px; text-align: center; background: radial-gradient(ellipse at 50% 25%, #f1f3ed99, #fff 65%); border-top: 1px solid #f0f0f1; }
.closing > img { border-radius: 20px; box-shadow: 0 8px 25px #5555550b; margin: auto; }
.closing h2 { font-size: 29px; font-weight: 500; letter-spacing: -1px; margin: 25px 0 12px; }
.closing > p { font-size: 16px; color: #797d84; margin: 0 0 25px; }
.ios-note { display: flex; justify-content: center; align-items: center; gap: 5px; font-size: 12px; color: #7d8086; margin-top: 19px; }

/* Legal pages (privacy.html / terms.html) */
.legal-main { max-width: 780px; margin: 0 auto; padding: 30px 24px 84px; }
.legal-heading { text-align: center; padding: 12px 0 8px; }
.legal-title { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 560; letter-spacing: -1.6px; line-height: 1.35; margin: 20px 0 16px; }
.legal-meta { font-size: 13px; color: #7a7d84; letter-spacing: .3px; line-height: 1.8; }
.legal-meta a { color: #5c7459; text-underline-offset: 3px; }
.legal-section { margin-top: 48px; }
.legal-section > h2 { display: flex; align-items: baseline; gap: 11px; font-size: 19px; font-weight: 550; letter-spacing: -.2px; margin: 0 0 15px; }
.legal-section > h2 .idx { color: #8ba57c; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.legal-section p { font-size: 15.5px; line-height: 1.9; color: #5f6268; margin: 0 0 14px; }
.legal-section ul { margin: 0 0 14px; padding-left: 22px; }
.legal-section li { font-size: 15.5px; line-height: 1.9; color: #5f6268; margin-bottom: 7px; }
.legal-section a { color: #5c7459; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #c9d9b9; }
.legal-section a:hover { color: #4c6349; }
.legal-footer-note { margin-top: 54px; padding-top: 26px; border-top: 1px solid #f0f0f1; font-size: 13px; color: #7c8086; line-height: 1.9; text-align: center; }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; max-width: 1104px; padding: 29px 38px 35px; margin: 0 auto; border-top: 1px solid #ededf0; color: #7c8086; font-size: 12px; }
.footer-brand { font-size: 20px; color: #64676b; font-weight: 550; letter-spacing: -.6px; }
.footer-tagline { flex: 1; }
.footer-links { display: flex; align-items: center; gap: 16px; }
.footer-links a:hover { color: #292a30; }

@keyframes enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes phone-enter { from { opacity: .2; transform: translateY(10px) rotate(-1deg); } to { opacity: 1; transform: translateY(0) rotate(-3deg); } }

@media (min-width: 1500px) { .hero { padding-top: 65px; } .phone-frame { width: 288px; } .product-stage { min-height: 605px; } }
@media (max-width: 1000px) { .annotation { width: 190px; } .annotation-left { left: 2%; } .annotation-right { right: 0; } .annotation h2 { font-size: 16px; } .annotation-tag { letter-spacing: .3px; } .site-footer { margin-inline: 35px; } .feature-grid { gap: 30px; } }
@media (max-width: 740px) { .site-header { height: 85px; padding-inline: 25px; } .hero { padding-top: 34px; } h1 { letter-spacing: -1.7px; font-size: 36px; max-width: 550px; margin: 23px auto 21px; } .mobile-break { display: block; } .annotation { display: none; } .product-stage { margin-top: 34px; } .orbit { width: 460px; height: 460px; } .orbit-two { width: 630px; height: 630px; } .details-section { padding: 68px 30px 58px; } .feature-grid { gap: 30px; grid-template-columns: 1fr; max-width: 430px; margin: 35px auto 0; } .feature { position: relative; padding: 0 0 25px 69px; border-bottom: 1px solid #f0f0f1; } .feature:last-child { border-bottom: 0; padding-bottom: 0; } .feature-icon { position: absolute; left: 0; top: 0; } .feature h3 { margin: 0 0 10px; } .feature-note { margin-top: 12px; } .closing { margin-inline: 25px; } .site-footer { margin-inline: 25px; gap: 15px; padding-inline: 0; } .footer-tagline { display: none; } }
@media (max-width: 760px) { .site-header nav .nav-link { display: none; } }
@media (max-width: 440px) { .site-header { padding-inline: 21px; height: 78px; } .brand { font-size: 23px; gap: 8px; } .brand img { width: 33px; height: 33px; } .hero { padding: 31px 18px 0; } .eyebrow { letter-spacing: 1px; } h1 { font-size: 33px; max-width: 335px; line-height: 1.65; } .view-tab { padding: 8px 10px; gap: 5px; } .showcase { margin-top: 26px; } .phone-frame { width: 245px; border-radius: 36px; } .phone-frame img { border-radius: 31px; } .product-stage { min-height: 520px; } .preview-caption { margin-top: 25px; } .hero-download { margin-top: 25px; } .discover-link { margin-top: 45px; } .details-heading > p { max-width: 285px; margin-inline: auto; } .details-heading h2 { font-size: 26px; } .closing h2 { font-size: 27px; } .store-link.compact { padding: 8px 12px; } }
@media (max-width: 360px) { .view-tab svg { display: none; } .view-tab { padding-inline: 12px; } .eyebrow { font-size: 12px; letter-spacing: 0; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
