/* ONE35Deal visual revamp v11.2
   Goal: cleaner hierarchy, cohesive themes, restrained premium motion. */

html {
  --font-sans: 'DM Sans', Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --radius-xs: 12px;
  --radius-sm: 16px;
  --radius-md: 22px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --shadow-sm: 0 10px 30px rgba(13, 16, 22, 0.06);
  --shadow-md: 0 18px 50px rgba(13, 16, 22, 0.08);
  --shadow-lg: 0 30px 80px rgba(13, 16, 22, 0.14);
  --container: min(1120px, calc(100% - 32px));
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f1e9;
  --bg-elevated: rgba(255,255,255,0.72);
  --surface: #fffcf6;
  --surface-2: #f0e9dc;
  --surface-3: #ebe4d8;
  --text: #1f2226;
  --text-soft: #5f636b;
  --text-faint: #838892;
  --border: rgba(47, 51, 59, 0.10);
  --border-strong: rgba(47, 51, 59, 0.16);
  --accent: #b67a3a;
  --accent-2: #d9b487;
  --accent-soft: rgba(182, 122, 58, 0.10);
  --nav-bg: rgba(245, 241, 233, 0.78);
  --hero-grad: radial-gradient(circle at 15% 10%, rgba(218, 180, 131, 0.22), transparent 34%), radial-gradient(circle at 85% 5%, rgba(222, 229, 236, 0.55), transparent 30%), linear-gradient(180deg, #fbf8f2 0%, #f3eee4 100%);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1114;
  --bg-elevated: rgba(20,22,26,0.74);
  --surface: #17191d;
  --surface-2: #1b1e23;
  --surface-3: #22262c;
  --text: #f5f1e8;
  --text-soft: #c8c0b2;
  --text-faint: #9c988f;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.12);
  --accent: #d2a46e;
  --accent-2: #f0cfaa;
  --accent-soft: rgba(210, 164, 110, 0.12);
  --nav-bg: rgba(15,17,20,0.80);
  --hero-grad: radial-gradient(circle at 15% 10%, rgba(210,164,110,0.13), transparent 34%), radial-gradient(circle at 85% 5%, rgba(78,84,94,0.20), transparent 30%), linear-gradient(180deg, #171a1f 0%, #111317 100%);
  --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.22);
  --shadow-md: 0 18px 50px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 30px 90px rgba(0, 0, 0, 0.36);
}

html, body {
  background: var(--bg) !important;
  color: var(--text) !important;
  font-family: var(--font-sans) !important;
}

body {
  background-image: radial-gradient(circle at top, rgba(255,255,255,0.03), transparent 32%);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: currentColor;
}

.wrap {
  width: var(--container) !important;
}

/* shared type system */
.brand,
h1,
h2,
.hero h1,
.sectionHead h2,
.section-heading h2,
.v11-dialog h2,
.v11-editorial-card h3,
.compare-card h3,
.v11-step h3 {
  font-family: var(--font-serif) !important;
}

.brand {
  font-size: 1.1rem;
  letter-spacing: -0.03em !important;
}

h1,
.hero h1 {
  color: var(--text) !important;
  font-weight: 600 !important;
  line-height: 0.95 !important;
  letter-spacing: -0.055em !important;
}

h2,
.sectionHead h2,
.section-heading h2 {
  color: var(--text) !important;
  font-weight: 600 !important;
  line-height: 0.98 !important;
  letter-spacing: -0.045em !important;
}

.lead,
.hero .lead,
.sectionHead p,
.section-heading p,
.card p,
.compare-card p,
.faq p,
.notice,
.seoIntro,
.v11-editorial-card p,
.v11-step p,
.spec span,
.stat span,
.photoCaption,
.gallery figcaption,
.muted,
.small,
.v11-meta,
.v11-disclosure {
  color: var(--text-soft) !important;
}

.kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--accent-soft) !important;
  color: var(--accent) !important;
  font: 800 0.72rem/1 var(--font-sans) !important;
  letter-spacing: 0.14em !important;
}

/* navigation */
.nav,
.top {
  background: var(--nav-bg) !important;
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border) !important;
}

.navin,
.top-inner {
  min-height: 74px !important;
  gap: 18px;
}

.nav a,
.top nav a,
.navlinks a {
  color: var(--text-soft) !important;
  font-weight: 600;
}

.navlinks,
.top nav {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.navcta,
.v11-theme {
  appearance: none;
  border: 1px solid var(--border-strong) !important;
  background: var(--bg-elevated) !important;
  color: var(--text) !important;
  border-radius: 999px !important;
  box-shadow: var(--shadow-sm);
}

.v11-theme {
  padding: 10px 14px !important;
  font: 700 0.86rem/1 var(--font-sans) !important;
}

/* section rhythm */
main > section,
body > section:not(.one75-launch):not(#sg-featured):not(#sg-shopee-section),
body > nav + section.one75-launch,
body > footer,
main > header {
  position: relative;
}

main > section,
section.hero,
section.content,
section.v11-editorial,
section.deal,
section.final {
  padding-top: clamp(60px, 7vw, 96px) !important;
  padding-bottom: clamp(60px, 7vw, 96px) !important;
}

main > section:nth-of-type(even)::before,
body > section#sg-featured::before,
body > section#sg-shopee-section::before,
section.one75-launch::before {
  content: "";
  position: absolute;
  inset: 20px 0;
  width: min(1160px, calc(100% - 16px));
  margin: 0 auto;
  border-radius: 36px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.0));
  pointer-events: none;
}

html[data-theme="light"] main > section:nth-of-type(even)::before,
html[data-theme="light"] body > section#sg-featured::before,
html[data-theme="light"] body > section#sg-shopee-section::before,
html[data-theme="light"] section.one75-launch::before {
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.55));
  border: 1px solid rgba(40, 47, 57, 0.04);
}

/* hero */
.hero {
  padding-top: clamp(46px, 8vw, 84px) !important;
}

.hero .wrap,
.heroGrid,
.hero-grid {
  position: relative;
  z-index: 1;
}

.heroGrid,
.hero-grid {
  align-items: center !important;
  gap: clamp(24px, 4vw, 54px) !important;
}

body[data-page-deal="flashback-one35-v2"] .heroGrid > :first-child,
body[data-page-deal="flashback-one75"] .hero-grid > :first-child {
  background: var(--hero-grad);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(26px, 4vw, 44px);
  box-shadow: var(--shadow-md);
}

body[data-page-deal="flashback-one35-v2"] .heroGrid > :last-child,
body[data-page-deal="flashback-one75"] .hero-grid > :last-child {
  position: relative;
}

.cameraStage,
.hero-photo,
#one75-hero {
  min-height: 520px !important;
  border-radius: var(--radius-xl) !important;
  background: linear-gradient(180deg, var(--surface-2), var(--surface)) !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.heroPhoto,
.hero-photo img {
  width: 100%;
  height: 100%;
  min-height: 520px !important;
  object-fit: cover !important;
}

#one75-hero img {
  object-fit: contain !important;
  padding: clamp(20px, 3vw, 36px);
  background: transparent !important;
}

.buttons {
  margin-top: 30px !important;
  gap: 14px !important;
}

.btn,
.cta,
.one75-launch-link,
.v11-sticky a,
.v11-check-btn {
  transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease, border-color 220ms ease, color 220ms ease;
}

.btn,
.cta,
.one75-launch-link,
.v11-sticky a,
.v11-check-btn {
  font-family: var(--font-sans) !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em;
  border-radius: 999px !important;
  box-shadow: var(--shadow-sm);
}

.btn.primary,
.cta,
.one75-launch-link,
.v11-sticky a,
.v11-check-btn,
.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2)) !important;
  color: #181716 !important;
  border: 1px solid transparent !important;
}

.btn.secondary,
.secondary,
.cta-outline,
.navcta {
  background: var(--bg-elevated) !important;
  color: var(--text) !important;
  border: 1px solid var(--border-strong) !important;
}

.btn:hover,
.cta:hover,
.one75-launch-link:hover,
.v11-sticky a:hover,
.v11-check-btn:hover,
.v11-theme:hover,
.navcta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.fine {
  color: var(--text-faint) !important;
}

/* cards, tables, panel surfaces */
.card,
.spec,
.compare-card,
.stat,
.proofCard,
.sourceCard,
.bankCard,
.photoCard,
.gallery figure,
.finalCard,
.editorial-preview,
.quote,
.v11-editorial-card,
.panel,
.offer-alert,
.dealCard,
.v11-verification,
.v11-countbar,
#sg-featured .wrap > div,
#sg-shopee-section .wrap,
section.final .wrap,
.feature,
.faq details,
.photoCard,
.compare-card,
.section-card {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow-sm);
}

.dealCard,
.panel,
.v11-verification,
.v11-countbar,
.offer-alert,
#sg-featured .wrap > div,
#sg-shopee-section .wrap,
section.final .wrap {
  border-radius: var(--radius-lg) !important;
}

.card,
.spec,
.compare-card,
.photoCard,
.gallery figure,
.v11-editorial-card,
.faq details,
.stat {
  border-radius: var(--radius-md) !important;
}

.dealCard {
  grid-template-columns: 1.2fr 0.8fr !important;
  gap: 24px !important;
  padding: clamp(24px, 3.5vw, 36px) !important;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%) !important;
}

.dealStats {
  gap: 12px !important;
}

.stat {
  min-width: 0 !important;
  flex: 1 1 160px;
}

.stat b,
.spec strong,
.v11-vcount {
  color: var(--text) !important;
}

section.final .wrap {
  padding: clamp(28px, 4vw, 44px);
}

.photoGrid,
.cards,
.specs,
.steps,
.gallery,
.spec-grid,
.comparison,
.v11-editorial-grid,
.v11-steps {
  gap: clamp(14px, 2vw, 22px) !important;
}

.photoCard img,
.gallery img {
  background: linear-gradient(180deg, var(--surface-2), var(--surface-3)) !important;
}

.v11-countbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px !important;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%) !important;
}

.v11-countbar strong {
  color: var(--text);
}

.v11-countdown {
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 2.8vw, 2.35rem) !important;
  letter-spacing: -0.03em;
  color: var(--text) !important;
}

.offer-alert {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%) !important;
  border-color: color-mix(in srgb, var(--accent) 28%, var(--border)) !important;
}

.offer-alert strong,
.deal h2,
.finalCard p strong {
  color: var(--text) !important;
}

.v11-history li,
.badge {
  background: var(--surface-2) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}

.v11-dialog {
  background: var(--surface) !important;
  color: var(--text) !important;
  border: 1px solid var(--border-strong) !important;
  box-shadow: var(--shadow-lg) !important;
}

.v11-dialog p,
.v11-dialog-status,
.v11-dialog .v11-disclosure {
  color: var(--text-soft) !important;
}

.v11-dialog-votes button {
  border-color: var(--border-strong) !important;
  border-radius: 16px !important;
}

.v11-dialog-votes button:nth-child(2) {
  background: var(--surface-2) !important;
  color: var(--text) !important;
}

/* homepage specific featured sections */
.one75-launch {
  padding: 22px 0 8px !important;
}

.one75-launch-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  align-items: stretch;
  padding: clamp(20px, 2.6vw, 26px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  box-shadow: var(--shadow-sm);
}

.one75-launch-copy,
.one75-launch-image {
  position: relative;
  z-index: 1;
}

.one75-launch-image {
  min-height: 220px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.one75-launch-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#sg-featured .wrap,
#sg-shopee-section .wrap {
  position: relative;
  z-index: 1;
}

#sg-featured .wrap > div,
#sg-shopee-section .wrap {
  padding: clamp(24px, 3vw, 34px);
}

footer,
.bottom {
  background: transparent !important;
  border-top: 1px solid var(--border) !important;
  color: var(--text-soft) !important;
  padding: 30px 0 56px !important;
}

footer a,
.bottom a {
  color: var(--text) !important;
}

/* restrained motion */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 560ms cubic-bezier(.22,1,.36,1), transform 560ms cubic-bezier(.22,1,.36,1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.lift-hover {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.lift-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong) !important;
}

@media (max-width: 980px) {
  .dealCard,
  .one75-launch-inner,
  .heroGrid,
  .hero-grid,
  .comparison { grid-template-columns: 1fr !important; }

  .cameraStage,
  .hero-photo,
  #one75-hero,
  .heroPhoto,
  .hero-photo img {
    min-height: 380px !important;
  }

  .v11-countbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .navin,
  .top-inner {
    min-height: auto !important;
    padding: 12px 0 !important;
    align-items: flex-start !important;
    flex-wrap: wrap;
  }

  .navlinks,
  .top nav {
    gap: 10px;
  }

  body[data-page-deal="flashback-one35-v2"] .heroGrid > :first-child,
  body[data-page-deal="flashback-one75"] .hero-grid > :first-child,
  .one75-launch-inner,
  .dealCard,
  .panel,
  .v11-verification,
  #sg-featured .wrap > div,
  #sg-shopee-section .wrap,
  section.final .wrap {
    padding: 22px !important;
  }

  .cameraStage,
  .hero-photo,
  #one75-hero,
  .heroPhoto,
  .hero-photo img {
    min-height: 300px !important;
  }

  .heroPhoto {
    object-fit: cover !important;
  }

  .photoGrid,
  .cards,
  .specs,
  .steps,
  .gallery,
  .spec-grid,
  .v11-editorial-grid,
  .v11-steps {
    grid-template-columns: 1fr !important;
  }

  .spec,
  .card,
  .compare-card,
  .v11-editorial-card,
  .faq details {
    padding: 20px !important;
  }

  .v11-sticky {
    background: color-mix(in srgb, var(--surface) 90%, transparent) !important;
    border-top: 1px solid var(--border) !important;
    backdrop-filter: blur(16px);
  }

  .v11-sticky small {
    color: var(--text-faint) !important;
  }

  .v11-toast {
    background: var(--surface-3) !important;
    color: var(--text) !important;
    border-color: var(--border-strong) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .lift-hover,
  .btn,
  .cta,
  .one75-launch-link,
  .v11-sticky a,
  .v11-check-btn,
  .v11-theme {
    transition: none !important;
    transform: none !important;
  }
}

/* v11.3 contrast & responsiveness: never hide content while scrolling. */
.reveal, .reveal.is-visible {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  will-change: auto !important;
}
html[data-theme="light"] {
  --text: #202124;
  --text-soft: #41454b;
  --text-faint: #5b6169;
  --border: rgba(31, 36, 43, .17);
  --border-strong: rgba(31, 36, 43, .28);
  --accent: #85501f;
  --accent-2: #bc864a;
  --accent-soft: #f1e3d0;
}
html[data-theme="dark"] {
  --text: #f6f3ec;
  --text-soft: #d5d0c7;
  --text-faint: #bbb4a9;
  --border: rgba(255,255,255,.15);
  --border-strong: rgba(255,255,255,.25);
}
html[data-theme="light"] .lead,
html[data-theme="light"] .hero .lead,
html[data-theme="light"] .sectionHead p,
html[data-theme="light"] .section-heading p,
html[data-theme="light"] .seoIntro,
html[data-theme="light"] .seo-code,
html[data-theme="light"] .seo-code strong,
html[data-theme="light"] .photoCaption,
html[data-theme="light"] .gallery figcaption,
html[data-theme="light"] .v11-meta,
html[data-theme="light"] .notice,
html[data-theme="light"] .fine,
html[data-theme="light"] .mini-crumb,
html[data-theme="light"] .one75-launch p,
html[data-theme="light"] .one75-launch-copy p {
  color: #41454b !important;
  opacity: 1 !important;
}
html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3,
html[data-theme="light"] .brand,
html[data-theme="light"] .one75-launch h2,
html[data-theme="light"] .one75-launch-copy h2 {
  color: #202124 !important;
  opacity: 1 !important;
}
html[data-theme="light"] .eyebrow,
html[data-theme="light"] .kicker {
  color: #754319 !important;
}
html[data-theme="light"] .btn.primary,
html[data-theme="light"] .cta,
html[data-theme="light"] .one75-launch-link,
html[data-theme="light"] .v11-check-btn {
  background: #242424 !important;
  color: #fffaf3 !important;
}
html[data-theme="dark"] .btn.primary,
html[data-theme="dark"] .cta,
html[data-theme="dark"] .one75-launch-link,
html[data-theme="dark"] .v11-check-btn {
  background: #d6ad7d !important;
  color: #171819 !important;
}
html[data-theme="light"] .one75-launch,
html[data-theme="light"] .one75-launch-inner,
html[data-theme="light"] .heroGrid > :first-child,
html[data-theme="light"] .hero-grid > :first-child {
  color: #202124 !important;
}
html[data-theme="light"] .one75-launch a:not(.one75-launch-link) { color: #35383c !important; }
html[data-theme="dark"] .one75-launch a:not(.one75-launch-link) { color: #f2e7d7 !important; }
html[data-theme="light"] .v11-sticky {color: #202124 !important;}
html[data-theme="dark"] .v11-sticky {color: #f6f3ec !important;}
html[data-theme="light"] .v11-sticky strong {color: #202124 !important;}
html[data-theme="dark"] .v11-sticky strong {color: #f6f3ec !important;}
html[data-theme="light"] .navlinks a,
html[data-theme="light"] .top nav a {color: #363b41 !important;}
html[data-theme="dark"] .navlinks a,
html[data-theme="dark"] .top nav a {color: #e5ded2 !important;}
html[data-theme="light"] .v11-countbar small {color: #41454b !important;}
html[data-theme="dark"] .v11-countbar small {color: #d5d0c7 !important;}
html[data-theme="light"] .v11-countdown {color: #202124 !important;}
html[data-theme="dark"] .v11-countdown {color: #f6f3ec !important;}
html[data-theme="light"] .offer-alert p,
html[data-theme="light"] .deal p,
html[data-theme="light"] .panel p {color: #41454b !important;}
html[data-theme="dark"] .offer-alert p,
html[data-theme="dark"] .deal p,
html[data-theme="dark"] .panel p {color: #d5d0c7 !important;}
@media (max-width:760px) {
  .lift-hover:hover { transform: none !important; }
  main > section, section.hero, section.content, section.v11-editorial,
  section.deal, section.final {
    padding-top: 44px !important;
    padding-bottom: 44px !important;
  }
}
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after {animation:none !important; transition:none !important;}
}
