/* Healera — combined stylesheet
 * 1) Design tokens (restored from assets/design-tokens.css)
 * 2) Marketing / legal site styles
 * 3) Mockup-specific styles (scoped under .mock for the app-mockups canvas)
 */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
  /* Logo gradient stops */
  --mint:            #1FD1AD;
  --teal:            #2BD6B3;
  --sky:             #388BDF;
  --deep:            #234B9D;

  --mint-light:      #E3F9F2;
  --teal-light:      #E1F5EF;
  --sky-light:       #E4F0FC;
  --deep-light:      #DDE3F3;

  --brand-gradient:  linear-gradient(135deg, var(--mint) 0%, var(--teal) 34%, var(--sky) 64%, var(--deep) 100%);
  --brand-gradient-soft: linear-gradient(135deg, var(--mint-light), var(--sky-light));

  --red:             #E05A5A;
  --yellow:          #FFCC80;
  --paper-1:         #F6FAF9;
  --paper-2:         #F2F8FB;

  --white:           #FFFFFF;
  --black:           #0A1628;
  --gray-100:        #F1F4F8;
  --gray-200:        #E3E8EF;
  --gray-300:        #C2CAD6;
  --gray-400:        #8A94A4;
  --gray-500:        #3A4656;

  --primary:         var(--sky);
  --primary-light:   var(--sky-light);
  --primary-dark:    var(--deep);
  --primary-alpha:   rgba(56, 139, 223, 0.14);

  --secondary:       var(--teal);
  --secondary-light: var(--teal-light);
  --secondary-dark:  #1AA68A;

  --accent:          var(--mint);
  --accent-light:    var(--mint-light);

  --success:         var(--mint);
  --success-light:   var(--mint-light);
  --warning:         var(--yellow);
  --error:           var(--red);

  --bg-primary:      var(--paper-1);
  --bg-secondary:    var(--gray-100);
  --bg-block:        var(--paper-2);
  --bg-card:         var(--white);

  --fg1:             var(--black);
  --fg2:             var(--gray-500);
  --fg3:             var(--gray-400);
  --fg4:             var(--gray-300);
  --fg-inverse:      var(--white);
  --fg-link:         var(--deep);

  --border-light:    rgba(10, 22, 40, 0.05);
  --border-medium:   rgba(10, 22, 40, 0.10);
  --border-default:  var(--gray-200);
  --border-focus:    var(--sky);

  /* Radius */
  --r-sm: 8px;  --r-md: 12px;  --r-lg: 16px;  --r-xl: 20px; --r-xxl: 24px; --r-full: 9999px;
  --r-card: 24px; --r-button: 22px; --r-input: 12px;

  /* Shadows */
  --shadow-soft:     0 2px 12px rgba(10, 22, 40, 0.06);
  --shadow-subtle:   0 4px 16px rgba(10, 22, 40, 0.08);
  --shadow-card:     0 8px 32px rgba(10, 22, 40, 0.10);
  --shadow-float:    0 4px 20px rgba(35, 75, 157, 0.22);

  /* Type */
  --font-sans:       'Nunito', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --fw-regular: 400; --fw-medium: 500; --fw-semibold: 600; --fw-bold: 700;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0;
  font-family: var(--font-sans);
  color: var(--fg1);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--fg-link); text-decoration: none; }

h1, h2, h3, h4, h5 { margin: 0; font-weight: var(--fw-bold); letter-spacing: -0.3px; color: var(--fg1); }
h1 { font-size: 44px; line-height: 1.12; letter-spacing: -1px; }
h2 { font-size: 32px; line-height: 1.2; letter-spacing: -0.6px; font-weight: var(--fw-bold); }
h3 { font-size: 22px; line-height: 1.3; font-weight: var(--fw-semibold); }
h4 { font-size: 18px; line-height: 1.4; font-weight: var(--fw-semibold); }
p  { margin: 0; color: var(--fg2); line-height: 1.55; font-size: 16px; }

/* ============================================================
   2. MARKETING / LEGAL SITE
   ============================================================ */

.wrap        { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 760px;  margin: 0 auto; padding: 0 28px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 250, 249, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; color: var(--fg1); font-weight: var(--fw-bold); font-size: 18px; }
.nav-brand .mark { width: 32px; height: 32px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--fg2); font-size: 15px; font-weight: var(--fw-semibold); transition: color 0.2s; }
.nav-links a:hover { color: var(--fg1); }
.nav-cta { display: flex; gap: 10px; }
@media (max-width: 820px) { .nav-links { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--r-button); font-weight: var(--fw-bold);
  font-size: 15px; border: 0; cursor: pointer; transition: transform 0.15s, box-shadow 0.2s;
  font-family: inherit;
}
.btn-primary { background: var(--brand-gradient); color: white; box-shadow: var(--shadow-float); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(35,75,157,0.32); }
.btn-ghost { background: transparent; color: var(--fg1); border: 1.5px solid var(--border-medium); }
.btn-ghost:hover { background: var(--bg-secondary); }
.btn-lg { padding: 16px 26px; font-size: 16px; }

/* App Store badge */
.app-store-badge { display: inline-block; transition: transform 0.15s, filter 0.2s; line-height: 0; }
.app-store-badge img { height: 48px; width: auto; display: block; }
.app-store-badge:hover { transform: translateY(-1px); filter: drop-shadow(0 8px 24px rgba(0,0,0,0.18)); }
.app-store-badge.sm img { height: 40px; }
.app-store-badge.lg img { height: 56px; }

/* Eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--border-light);
  padding: 6px 14px; border-radius: 999px;
  font-size: 12px; font-weight: var(--fw-bold);
  color: var(--fg2); letter-spacing: 0.06em; text-transform: uppercase;
  box-shadow: var(--shadow-soft);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-gradient); }

/* Card */
.card {
  background: var(--bg-card); border-radius: var(--r-card); padding: 32px;
  box-shadow: var(--shadow-subtle);
}

/* Icon chips */
.icon-chip {
  width: 44px; height: 44px; border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  color: var(--deep);
}
.icon-chip svg { width: 20px; height: 20px; }
.icon-chip.mint { background: var(--mint-light); color: #0E5A49; }
.icon-chip.teal { background: var(--teal-light); color: #1AA68A; }
.icon-chip.sky  { background: var(--sky-light);  color: var(--deep); }
.icon-chip.deep { background: var(--deep-light); color: var(--deep); }

/* Hero */
.hero {
  padding: 100px 0 80px;
  background: var(--bg-primary);
  position: relative; overflow: hidden;
}

/* Floating gradient orbs */
.hero-orb {
  position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(80px); opacity: 0.5;
}
.hero-orb-1 {
  width: 600px; height: 600px; top: -180px; left: -120px;
  background: radial-gradient(circle, var(--mint) 0%, transparent 70%);
  animation: orb-float 14s ease-in-out infinite alternate;
}
.hero-orb-2 {
  width: 500px; height: 500px; top: -100px; right: -80px;
  background: radial-gradient(circle, var(--sky) 0%, transparent 70%);
  animation: orb-float 18s ease-in-out infinite alternate-reverse;
}
.hero-orb-3 {
  width: 350px; height: 350px; bottom: -100px; left: 40%;
  background: radial-gradient(circle, var(--teal) 0%, transparent 70%);
  opacity: 0.3;
  animation: orb-float 12s ease-in-out infinite alternate;
}
@keyframes orb-float {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -30px) scale(1.08); }
}

/* Fade-up entrance animation */
.fade-up {
  opacity: 0; transform: translateY(30px);
  animation: fade-up 0.8s ease-out forwards;
}
.d1 { animation-delay: 0.12s; }
.d2 { animation-delay: 0.24s; }
.d3 { animation-delay: 0.36s; }
.d4 { animation-delay: 0.48s; }
@keyframes fade-up {
  to { opacity: 1; transform: translateY(0); }
}

.hero-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center;
  position: relative; z-index: 1;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.hero h1 { margin: 18px 0 18px; font-size: 56px; }
@media (max-width: 600px) { .hero h1 { font-size: 40px; } }
.hero .lede { font-size: 20px; color: var(--fg2); line-height: 1.5; max-width: 520px; }
.hero-ctas { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 22px; margin-top: 26px; color: var(--fg3); font-size: 13px; font-weight: var(--fw-semibold); }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-accent {
  background: var(--brand-gradient);
  background-size: 200% 200%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 6s ease-in-out infinite;
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.hero-rating {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 26px;
  font-size: 14px; color: var(--fg2); font-weight: var(--fw-semibold);
  background: var(--bg-card); padding: 10px 18px; border-radius: 999px;
  box-shadow: var(--shadow-soft); border: 1px solid var(--border-light);
}
.hero-rating .stars { color: #F5B642; letter-spacing: 1px; font-size: 16px; }
.hero-rating strong { color: var(--fg1); font-weight: var(--fw-bold); }
.hero-rating .sep { color: var(--fg4); }

/* 3D phone scene */
.phone-scene {
  perspective: 1000px;
  display: flex; justify-content: center; align-items: center;
  padding: 20px;
}
.phone-tilt {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
  will-change: transform;
}
.phone-glow {
  position: absolute; inset: -50px; border-radius: 60px;
  background: radial-gradient(circle, rgba(56,139,223,0.18) 0%, transparent 70%);
  z-index: -1; pointer-events: none;
  animation: glow-pulse 4s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.06); }
}

/* iPhone frame */
.iphone-frame {
  width: 290px;
  height: 600px;
  background: #1a1a1a;
  border-radius: 48px;
  padding: 14px;
  position: relative;
  box-shadow:
    inset 0 0 0 1.5px #333,
    inset 0 0 0 3px #1a1a1a,
    0 30px 80px rgba(35,75,157,0.22),
    0 0 0 1px rgba(10,22,40,0.06);
  animation: phone-hover 5s ease-in-out infinite;
}
@keyframes phone-hover {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* Notch */
.iphone-notch {
  position: absolute;
  top: 14px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 32px;
  background: #1a1a1a;
  border-radius: 0 0 20px 20px;
  z-index: 10;
  display: flex; align-items: center; justify-content: center;
}
.iphone-camera {
  width: 12px; height: 12px; border-radius: 50%;
  background: #0a0a0a;
  box-shadow: inset 0 0 0 2px #222, inset 0 0 3px 1px rgba(56,139,223,0.3);
}

/* Screen */
.iphone-screen {
  width: 100%; height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: linear-gradient(135deg, #E3F9F2, #E4F0FC);
}
.iphone-screen img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* Side buttons */
.iphone-btn-side {
  position: absolute; right: -2.5px; top: 160px;
  width: 3px; height: 46px;
  background: #2a2a2a; border-radius: 0 2px 2px 0;
}
.iphone-btn-vol1 {
  position: absolute; left: -2.5px; top: 130px;
  width: 3px; height: 32px;
  background: #2a2a2a; border-radius: 2px 0 0 2px;
}
.iphone-btn-vol2 {
  position: absolute; left: -2.5px; top: 172px;
  width: 3px; height: 32px;
  background: #2a2a2a; border-radius: 2px 0 0 2px;
}

/* Reflection glare on hover */
.phone-tilt::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 48px;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.12) 0%,
    transparent 50%,
    transparent 100%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.phone-scene:hover .phone-tilt::after { opacity: 1; }

/* Floating feature chips */
.float-chip {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-card);
  padding: 10px 16px 10px 10px;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(10,22,40,0.10), 0 0 0 1px rgba(10,22,40,0.04);
  z-index: 20;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  opacity: 0;
  animation: chip-in 0.6s ease-out forwards;
}
.float-chip-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.float-chip-icon svg { width: 18px; height: 18px; }
.float-chip-icon.mint { background: var(--mint-light); color: #0E5A49; }
.float-chip-icon.sky  { background: var(--sky-light);  color: var(--deep); }
.float-chip-icon.teal { background: var(--teal-light); color: #1AA68A; }
.float-chip-title {
  display: block; font-size: 12px; font-weight: var(--fw-bold);
  color: var(--fg1); letter-spacing: -0.1px;
}
.float-chip-val {
  display: block; font-size: 11px; color: var(--fg3); font-weight: var(--fw-medium);
}

.float-chip-1 {
  top: 60px; left: -100px;
  animation-delay: 0.6s;
  animation-name: chip-in-left;
}
.float-chip-2 {
  top: 240px; right: -110px;
  animation-delay: 0.9s;
  animation-name: chip-in-right;
}
.float-chip-3 {
  bottom: 120px; left: -90px;
  animation-delay: 1.2s;
  animation-name: chip-in-left;
}

/* Individual floating motions */
.float-chip-1 { animation: chip-in-left 0.6s 0.6s ease-out forwards, chip-bob-1 5s 1.2s ease-in-out infinite; }
.float-chip-2 { animation: chip-in-right 0.6s 0.9s ease-out forwards, chip-bob-2 6s 1.5s ease-in-out infinite; }
.float-chip-3 { animation: chip-in-left 0.6s 1.2s ease-out forwards, chip-bob-3 5.5s 1.8s ease-in-out infinite; }

@keyframes chip-in-left {
  from { opacity: 0; transform: translateX(-30px) scale(0.9); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes chip-in-right {
  from { opacity: 0; transform: translateX(30px) scale(0.9); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes chip-bob-1 {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@keyframes chip-bob-2 {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(10px); }
}
@keyframes chip-bob-3 {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

@media (max-width: 900px) {
  .float-chip { display: none; }
}
@media (max-width: 600px) {
  .iphone-frame { width: 240px; height: 500px; border-radius: 40px; padding: 12px; }
  .iphone-screen { border-radius: 30px; }
  .iphone-notch { width: 100px; height: 28px; top: 12px; }
}

/* Section */
section { padding: 80px 0; }
.section-head { text-align: center; margin-bottom: 50px; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 { font-size: 40px; letter-spacing: -0.8px; margin-bottom: 14px; }
.section-head p { font-size: 18px; color: var(--fg2); max-width: 640px; margin: 0 auto; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 820px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.feat {
  background: var(--bg-card); border-radius: var(--r-card); padding: 28px;
  box-shadow: var(--shadow-subtle);
  display: flex; flex-direction: column; gap: 12px;
}
.feat .icon-chip { margin-bottom: 6px; }
.feat h4 { font-size: 19px; }
.feat p { font-size: 15px; }

.step {
  background: var(--bg-card); border-radius: var(--r-card); padding: 28px;
  box-shadow: var(--shadow-subtle); position: relative;
}
.step .n {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand-gradient); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: var(--fw-bold); font-size: 15px; margin-bottom: 16px;
}

/* Science band */
.science {
  background: var(--bg-block);
  padding: 70px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 30px; }
@media (max-width: 820px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat .n { font-size: 40px; font-weight: var(--fw-bold); letter-spacing: -1px;
  background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat .l { font-size: 14px; color: var(--fg2); margin-top: 4px; line-height: 1.4; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 820px; margin: 0 auto; }
@media (max-width: 700px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card {
  background: var(--bg-card); border-radius: var(--r-card); padding: 32px;
  border: 1.5px solid var(--border-light);
  position: relative;
}
.price-card.featured {
  border: 1.5px solid var(--sky);
  box-shadow: 0 20px 60px rgba(56,139,223,0.18);
}
.price-card .tag {
  position: absolute; top: -11px; left: 28px;
  background: var(--brand-gradient); color: white;
  font-size: 11px; font-weight: var(--fw-bold); padding: 4px 10px; border-radius: 999px;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.price-card h3 { font-size: 20px; margin-bottom: 4px; }
.price-card .amount { font-size: 44px; font-weight: var(--fw-bold); letter-spacing: -1px; }
.price-card .amount .per { font-size: 15px; color: var(--fg3); font-weight: var(--fw-medium); margin-left: 4px; }
.price-detail { font-size: 14px; color: var(--fg3); margin-top: 2px; }
.price-promo {
  font-size: 13px; font-weight: var(--fw-bold); color: #0E5A49;
  background: var(--mint-light); border-radius: 8px;
  padding: 8px 12px; margin-top: 10px; line-height: 1.4;
}
.price-card ul { list-style: none; padding: 0; margin: 20px 0 24px; display: flex; flex-direction: column; gap: 10px; }
.price-card li {
  font-size: 15px; color: var(--fg2); padding-left: 26px; position: relative; line-height: 1.4;
}
.price-card li::before {
  content: ''; position: absolute; left: 0; top: 4px;
  width: 16px; height: 16px; border-radius: 50%; background: var(--mint-light);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%230E5A49' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M4 8l3 3 5-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

/* FAQ */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq {
  background: var(--bg-card); border-radius: var(--r-lg); padding: 22px 24px;
  box-shadow: var(--shadow-soft);
}
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  font-weight: var(--fw-semibold); font-size: 16px; color: var(--fg1);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; color: var(--fg3); font-weight: 300; }
.faq[open] summary::after { content: '–'; }
.faq p { margin-top: 12px; font-size: 15px; }

/* Download band */
.cta-band {
  background: var(--brand-gradient);
  padding: 60px 0; color: white; text-align: center;
  border-radius: var(--r-card);
  margin: 0 28px;
}
.cta-band h2 { color: white; font-size: 36px; }
.cta-band p { color: rgba(255,255,255,0.85); font-size: 18px; margin-top: 12px; }
.cta-band .btn-primary { background: white; color: var(--deep); box-shadow: 0 8px 24px rgba(0,0,0,0.15); margin-top: 24px; }
.cta-band .btn-primary:hover { transform: translateY(-1px); }

/* Footer */
.footer {
  background: var(--bg-block);
  padding: 60px 0 30px;
  border-top: 1px solid var(--border-light);
  margin-top: 80px;
}
.footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 820px) { .footer .wrap { grid-template-columns: 1fr 1fr; gap: 30px; } }
.footer h5 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg3); margin-bottom: 14px; font-weight: var(--fw-semibold); }
.footer a { display: block; font-size: 14px; color: var(--fg2); padding: 4px 0; }
.footer a:hover { color: var(--fg1); }
.brand-word { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: var(--fw-bold); color: var(--fg1); margin-bottom: 10px; }
.brand-word img { width: 28px; height: 28px; }
.tag { font-size: 14px; color: var(--fg2); max-width: 340px; line-height: 1.5; }
.footer-bottom {
  max-width: 1180px; margin: 40px auto 0; padding: 24px 28px 0;
  border-top: 1px solid var(--border-light);
  display: flex; justify-content: space-between; gap: 20px;
  font-size: 12px; color: var(--fg3);
}
.disc { max-width: 780px; }

/* Legal pages */
.legal-hero { padding: 70px 0 40px; background: var(--bg-block); text-align: center; }
.legal-hero h1 { font-size: 44px; margin: 16px 0 10px; letter-spacing: -0.8px; }
.legal-hero .meta { color: var(--fg3); font-size: 14px; }
.legal-body { padding: 60px 0 20px; }
.legal-body h2 { font-size: 22px; margin: 40px 0 12px; padding-top: 8px; letter-spacing: -0.3px; }
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body p, .legal-body li { font-size: 16px; color: var(--fg2); line-height: 1.7; margin: 8px 0; }
.legal-body ul { padding-left: 22px; }
.toc {
  background: var(--bg-card); border-radius: var(--r-lg); padding: 22px 26px;
  margin-bottom: 40px; box-shadow: var(--shadow-soft);
}
.toc h4 { font-size: 14px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--fg3); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 22px; }
.toc a { font-size: 14px; line-height: 1.9; color: var(--fg-link); font-weight: var(--fw-semibold); }

/* ============================================================
   3. MOCKUP CANVAS (scoped under .mock)
   ============================================================ */

.mock {
  --m-bg: #EEF1F5;
  --m-bg-soft: #F5F7FA;
  --m-card: #FFFFFF;
  --m-ink: #1F2937;
  --m-ink-2: #3B4352;
  --m-muted: #8A93A3;
  --m-muted-2: #B5BCC8;
  --m-line: #E6EAF0;
  --m-line-2: #EDF0F4;

  --m-teal: #3CC4B3;
  --m-teal-ink: #1FA897;
  --m-teal-wash: #E4F6F3;
  --m-teal-wash-2: #F1FBF9;

  --m-blue: #4F86E8;
  --m-blue-ink: #3469D9;
  --m-blue-wash: #E8EFFB;

  --m-warn-wash: #FFF3DF;
  --m-rose-wash: #FDE6EA;
  --m-leaf: #7CC188;
  --m-leaf-wash: #E7F4EA;

  --m-radius: 18px;
  --m-radius-lg: 22px;

  --m-shadow-card: 0 1px 2px rgba(17, 24, 39, 0.04), 0 8px 24px rgba(17, 24, 39, 0.04);

  font-family: 'Manrope', 'Nunito', system-ui, sans-serif;
  color: var(--m-ink);
}

.mock .phone {
  width: 393px; height: 852px;
  background: var(--m-bg);
  border-radius: 44px;
  overflow: hidden; position: relative;
  display: flex; flex-direction: column;
  font-size: 15px;
}
.mock .phone-scroll {
  flex: 1; overflow-y: auto;
  padding: 0 18px 100px 18px;
  scrollbar-width: none;
}
.mock .phone-scroll::-webkit-scrollbar { display: none; }

.mock .status-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 28px 6px 28px;
  font-size: 15px; font-weight: 600; color: var(--m-ink);
}
.mock .status-bar .right { display: flex; gap: 6px; align-items: center; }
.mock .battery { width: 26px; height: 12px; border: 1.2px solid var(--m-ink); border-radius: 3px; position: relative; padding: 1px; }
.mock .battery::after { content: ''; position: absolute; right: -3px; top: 3px; width: 2px; height: 4px; background: var(--m-ink); border-radius: 0 1px 1px 0; }
.mock .battery-fill { height: 100%; border-radius: 1px; }

.mock .top-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 4px 14px; }
.mock .logo-circle { width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #D8F2EC 0%, #A7E2D5 42%, #6FC9B7 78%); display: flex; align-items: center; justify-content: center; }
.mock .icon-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--m-card); display: flex; align-items: center; justify-content: center; box-shadow: var(--m-shadow-card); color: var(--m-blue-ink); }

.mock .greet { padding: 2px 4px 16px; }
.mock .greet .hi { font-size: 12px; color: var(--m-muted); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; }
.mock .greet .name { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin-top: 4px; color: var(--m-ink); }

.mock .card { background: var(--m-card); border-radius: var(--m-radius-lg); box-shadow: var(--m-shadow-card); padding: 18px; margin-bottom: 12px; }
.mock .card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.mock .card-title { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; color: var(--m-ink); }
.mock .card-sub { font-size: 12px; color: var(--m-muted); }

.mock .periods { display: flex; gap: 4px; background: var(--m-bg-soft); border-radius: 999px; padding: 3px; font-size: 12px; font-weight: 700; }
.mock .periods button { border: 0; background: transparent; padding: 6px 10px; border-radius: 999px; color: var(--m-muted); font: inherit; cursor: pointer; letter-spacing: 0.02em; }
.mock .periods button.active { background: var(--m-card); color: var(--m-ink); box-shadow: 0 1px 3px rgba(17,24,39,0.08); }

.mock .tabbar { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(255,255,255,0.96); backdrop-filter: blur(14px); border-top: 1px solid var(--m-line); padding: 10px 14px 26px; display: flex; justify-content: space-around; }
.mock .tab { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; color: var(--m-muted-2); font-weight: 700; }
.mock .tab.active { color: var(--m-teal-ink); }
.mock .tab.active .tab-ico { background: var(--m-teal-wash); }
.mock .tab-ico { width: 44px; height: 30px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }

.mock .health-score { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.mock .health-score .big { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; color: var(--m-ink); font-variant-numeric: tabular-nums; }
.mock .health-score .pct { font-size: 16px; color: var(--m-muted); font-weight: 700; }
.mock .health-score .delta { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--m-leaf-wash); color: #3A8648; margin-left: auto; }
.mock .health-score .delta.neg { background: var(--m-rose-wash); color: #C13D54; }
.mock .health-label { font-size: 11px; font-weight: 700; color: var(--m-muted); letter-spacing: 0.1em; text-transform: uppercase; }

.mock .btn-m { border: 0; font: inherit; cursor: pointer; padding: 13px 18px; border-radius: 14px; font-weight: 700; font-size: 15px; }
.mock .btn-m-primary { background: var(--m-blue-ink); color: white; }
.mock .btn-m-ghost { background: transparent; color: var(--m-blue-ink); border: 1.5px solid var(--m-blue-wash); }

.mock .row { display: flex; gap: 10px; }
.mock .row > * { flex: 1; }

.mock .quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mock .quick-item { background: var(--m-card); border-radius: var(--m-radius); padding: 14px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--m-shadow-card); cursor: pointer; }
.mock .quick-item .ico { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.mock .quick-item .title { font-size: 14px; font-weight: 700; }
.mock .quick-item .sub { font-size: 11px; color: var(--m-muted); }

.mock h3.section { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; margin: 14px 4px 10px; color: var(--m-ink); }

.mock .insight { display: flex; gap: 12px; align-items: flex-start; background: var(--m-card); border-radius: var(--m-radius); padding: 14px; box-shadow: var(--m-shadow-card); margin-bottom: 10px; }
.mock .insight .dot { width: 30px; height: 30px; border-radius: 50%; background: var(--m-teal-wash); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; color: var(--m-teal-ink); }
.mock .insight .txt { font-size: 13px; line-height: 1.45; color: var(--m-ink-2); }
.mock .insight .txt b { color: var(--m-ink); font-weight: 700; }

.mock .practice { background: linear-gradient(135deg, #F6FBFA 0%, #EEF7F6 60%, #E3F1EE 100%); border-radius: var(--m-radius-lg); padding: 16px; position: relative; overflow: hidden; margin-bottom: 12px; }
.mock .practice .eyebrow-m { font-size: 10px; font-weight: 700; color: var(--m-teal-ink); letter-spacing: 0.12em; text-transform: uppercase; }
.mock .practice h4 { font-size: 19px; font-weight: 700; margin: 4px 0 10px; letter-spacing: -0.02em; color: var(--m-ink); }
.mock .practice .meta { display: flex; gap: 12px; color: var(--m-muted); font-size: 12px; font-weight: 600; }
.mock .practice .go { position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%; background: var(--m-teal-ink); color: white; display: flex; align-items: center; justify-content: center; }

.mock .legend { display: flex; gap: 14px; font-size: 11px; color: var(--m-muted-2); font-weight: 600; }
.mock .legend .sw { display: inline-flex; align-items: center; gap: 6px; }
.mock .legend .sw .d { width: 8px; height: 8px; border-radius: 50%; }

/* Diary sheet */
.mock .diary-backdrop { position: absolute; inset: 0; background: rgba(17,24,39,0.35); backdrop-filter: blur(2px); display: flex; align-items: flex-end; }
.mock .diary-sheet { background: white; border-radius: 28px 28px 0 0; width: 100%; padding: 10px 20px 24px; box-shadow: 0 -20px 40px rgba(17,24,39,0.12); max-height: 92%; overflow-y: auto; scrollbar-width: none; }
.mock .diary-sheet::-webkit-scrollbar { display: none; }
.mock .diary-sheet .grabber { width: 40px; height: 4px; border-radius: 2px; background: #D1D7E0; margin: 6px auto 12px; }
.mock .diary-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.mock .diary-head h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; margin: 0; color: var(--m-ink); }
.mock .diary-step { font-size: 12px; color: var(--m-muted); font-weight: 600; }
.mock .diary-block { margin-top: 18px; }
.mock .diary-label { font-size: 11px; color: var(--m-muted); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 10px; }
