:root {
  --ink: #171B21;
  --ink-soft: #39424C;
  --muted: #57626D;
  --faint: #7E8894;
  --graphite: #23282F;
  --serif: 'Raleway', 'Noto Sans SC', sans-serif;
  --sans: 'Raleway', 'Noto Sans SC', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--sans);
  background: #2E3A46;
  min-height: 100vh;
  color: var(--ink);
  padding: 56px 32px 96px;
  position: relative;
  overflow-x: hidden;
}
body::before, body::after {
  content: ''; position: fixed; border-radius: 50%; filter: blur(120px); z-index: 0; pointer-events: none;
}
body::before { width: 620px; height: 620px; background: rgba(122,158,196,.35); top: -140px; left: -120px; }
body::after { width: 700px; height: 700px; background: rgba(226,196,150,.25); bottom: -200px; right: -140px; }

/* ---------- showcase header ---------- */
.showcase-head { text-align: center; margin-bottom: 64px; position: relative; z-index: 1; }
.showcase-head .eyebrow {
  font-size: 11px; letter-spacing: .42em; text-transform: uppercase;
  color: rgba(255,255,255,.55); font-weight: 500; margin-bottom: 20px;
}
.showcase-head h1 {
  font-size: 40px; font-weight: 600; letter-spacing: .04em; color: #F4F6F8;
}
.showcase-head h1 em { font-style: normal; font-weight: 300; color: rgba(255,255,255,.6); }
.showcase-head .rule { width: 44px; height: 1px; background: rgba(255,255,255,.35); margin: 22px auto 18px; }
.showcase-head p { color: rgba(255,255,255,.5); font-size: 13px; letter-spacing: .22em; font-weight: 300; }

.stage { display: flex; flex-wrap: wrap; justify-content: center; gap: 56px; max-width: 1600px; margin: 0 auto; position: relative; z-index: 1; }
.screen-block { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.screen-label {
  font-size: 10.5px; font-weight: 500; letter-spacing: .34em; text-transform: uppercase;
  color: rgba(255,255,255,.45); display: flex; align-items: center; gap: 12px;
}
.screen-label::before, .screen-label::after { content: ''; width: 26px; height: 1px; background: rgba(255,255,255,.3); }

/* ---------- phone frame ---------- */
.phone {
  width: 390px; height: 844px; border-radius: 56px;
  border: 9px solid #14171B;
  box-shadow:
    0 50px 100px rgba(10,14,18,.5),
    0 12px 32px rgba(10,14,18,.3),
    inset 0 0 0 1.5px rgba(255,255,255,.25);
  position: relative; overflow: hidden; flex-shrink: 0;
}
.phone::before {
  content: ''; position: absolute; top: 13px; left: 50%; transform: translateX(-50%);
  width: 108px; height: 29px; background: #14171B; border-radius: 20px; z-index: 60;
}

/* ---------- dynamic sky (weather: 晴 26°C) ---------- */
.sky {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  background: linear-gradient(180deg,
    #7AA7D4 0%, #9FC0E0 18%, #C4D6E8 36%, #E4E3D8 58%, #F3E3C6 80%, #F2D9B4 100%);
}
.sun {
  position: absolute; top: -80px; right: -70px; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,246,218,.98) 0%, rgba(255,238,196,.55) 42%, transparent 68%);
  animation: sunPulse 9s ease-in-out infinite;
}
@keyframes sunPulse { 0%,100% { opacity: .9; } 50% { opacity: 1; } }
.cloud { position: absolute; background: rgba(255,255,255,.9); border-radius: 999px; filter: blur(26px); }
.c1 { width: 230px; height: 62px; top: 96px;  animation: drift 58s linear infinite; }
.c2 { width: 150px; height: 44px; top: 208px; opacity: .75; animation: drift 76s linear infinite -30s; }
.c3 { width: 270px; height: 68px; top: 430px; opacity: .5;  animation: drift 92s linear infinite -60s; }
.c4 { width: 180px; height: 50px; top: 620px; opacity: .4;  animation: drift 68s linear infinite -15s; }
@keyframes drift { from { left: -48%; } to { left: 108%; } }
@media (prefers-reduced-motion: reduce) {
  .c1,.c2,.c3,.c4,.sun { animation: none; }
  .c1 { left: 8%; } .c2 { left: 52%; } .c3 { left: 12%; } .c4 { left: 48%; }
}

.statusbar {
  position: absolute; top: 0; left: 0; right: 0; height: 54px; z-index: 55;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 30px 0; font-size: 13.5px; font-weight: 600; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.sb-icons { display: flex; gap: 6px; align-items: center; }

.app { position: absolute; inset: 0; display: flex; flex-direction: column; z-index: 3; }
.scroll { flex: 1; overflow: hidden; position: relative; }

/* ---------- liquid glass (physics-based edge refraction) ---------- */
.glass {
  background: rgba(255,255,255,.09);
  backdrop-filter: blur(22px) saturate(1.8);
  -webkit-backdrop-filter: blur(22px) saturate(1.8);
  border: 1px solid rgba(255,255,255,.35);
  box-shadow:
    0 4px 24px rgba(10,16,22,.16),
    inset 0 0 18px rgba(10,16,22,.06);
}
.glass-deep {
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(20px) saturate(1.7);
  -webkit-backdrop-filter: blur(20px) saturate(1.7);
  border: 1px solid rgba(255,255,255,.4);
  box-shadow:
    0 4px 24px rgba(10,16,22,.18),
    inset 0 0 18px rgba(10,16,22,.05);
}

.eyebrow-t {
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}

/* ---------- floating glass dock ---------- */
.dock {
  position: absolute; left: 18px; right: 18px; bottom: 20px; z-index: 50;
  height: 72px; border-radius: 36px;
  display: flex; justify-content: space-around; align-items: center;
  padding: 0 6px;
}
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 9.5px; letter-spacing: .08em; color: var(--ink-soft); width: 54px; font-weight: 500; opacity: .65; }
.tab.active { color: var(--ink); font-weight: 600; opacity: 1; }
.tab.active .t-dot { opacity: 1; }
.tab svg { width: 22px; height: 22px; }
.t-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--graphite); opacity: 0; }
.scan-btn {
  width: 54px; height: 54px; border-radius: 50%; margin-top: -34px;
  background: linear-gradient(155deg, rgba(255,255,255,.7), rgba(255,255,255,.35));
  backdrop-filter: blur(16px) saturate(1.7);
  -webkit-backdrop-filter: blur(16px) saturate(1.7);
  display: flex; align-items: center; justify-content: center;
  box-shadow:
    0 12px 26px rgba(31,41,55,.22),
    inset 0 1px 0 rgba(255,255,255,1),
    0 0 0 5px rgba(255,255,255,.28);
  border: 1px solid rgba(255,255,255,.7); cursor: pointer;
}
.scan-btn svg { width: 24px; height: 24px; }

/* ================= SCREEN 1 · HOME ================= */
.home-top { padding: 68px 26px 0; position: relative; }
.home-top .eyebrow-t { margin-bottom: 10px; color: var(--ink-soft); }
.greet-title { font-size: 32px; font-weight: 600; line-height: 1.25; letter-spacing: .02em; }
.greet-title em { font-style: normal; font-weight: 300; color: var(--ink-soft); }
.greet-sub { font-size: 13px; color: var(--ink-soft); margin-top: 12px; line-height: 1.7; font-weight: 400; letter-spacing: .02em; opacity: .8; }
.hero-chips { display: flex; gap: 8px; margin-top: 16px; }
.hchip {
  display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 500;
  color: var(--ink); padding: 8px 13px; border-radius: 999px; letter-spacing: .04em;
}
.hchip svg { width: 13px; height: 13px; }

.sec-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0 26px; margin: 22px 0 12px;
}
.sec-head h2 { font-size: 20px; font-weight: 600; letter-spacing: .02em; }
.sec-head span { font-size: 11px; color: var(--ink-soft); letter-spacing: .12em; font-weight: 500; opacity: .7; }

.today-card { margin: 0 20px; border-radius: 26px; padding: 6px 20px 10px; }
.task-row { display: flex; align-items: center; gap: 13px; padding: 11px 0; }
.task-row + .task-row { border-top: 1px solid rgba(23,27,33,.08); }
.task-icon {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.5); border: 1px solid rgba(255,255,255,.7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 3px 8px rgba(31,41,55,.08);
}
.task-icon svg { width: 17px; height: 17px; }
.task-info { flex: 1; }
.task-info b { font-size: 13.5px; font-weight: 600; display: block; color: var(--ink); letter-spacing: .02em; }
.task-info small { font-size: 11px; color: var(--ink-soft); font-weight: 400; letter-spacing: .02em; opacity: .75; }
.task-check {
  width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(23,27,33,.35);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.task-check.done { background: rgba(23,27,33,.12); border-color: var(--graphite); }

.plant-scroll { display: flex; gap: 13px; padding: 2px 26px 6px; }
.plant-card { width: 168px; flex-shrink: 0; border-radius: 24px; padding: 12px; }
.plant-img {
  height: 108px; border-radius: 17px; position: relative; overflow: hidden;
  border: 1px solid rgba(255,255,255,.5); background: #D8DDE2;
}
.plant-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.plant-img .badge {
  position: absolute; top: 8px; left: 8px; font-size: 9.5px; font-weight: 600;
  padding: 4px 9px; border-radius: 999px; letter-spacing: .1em;
  background: rgba(255,255,255,.55); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.7); color: var(--ink);
}
.plant-card h4 { font-size: 16px; font-weight: 600; margin-top: 11px; letter-spacing: .02em; }
.plant-card .latin { font-size: 10px; color: var(--ink-soft); margin-top: 2px; letter-spacing: .08em; font-weight: 400; opacity: .6; }
.water-line { display: flex; align-items: center; gap: 8px; margin-top: 11px; }
.water-line svg { width: 12px; height: 12px; flex-shrink: 0; }
.water-bar { flex: 1; height: 3px; border-radius: 2px; background: rgba(23,27,33,.12); overflow: hidden; }
.water-bar i { display: block; height: 100%; border-radius: 2px; background: var(--graphite); }
.water-bar i.low { background: #9AA3AD; }
.water-line small { font-size: 10px; color: var(--ink-soft); width: 28px; text-align: right; font-variant-numeric: tabular-nums; }

/* ================= SCREEN 2 · DETAIL ================= */
.detail-hero { height: 330px; position: relative; overflow: hidden; }
.detail-hero .hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail-hero .hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,26,33,.16) 0%, transparent 26%, transparent 62%, rgba(20,26,33,.3) 100%);
}
.nav-floating { position: absolute; top: 62px; left: 20px; right: 20px; display: flex; justify-content: space-between; z-index: 10; }
.nav-floating button {
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.nav-floating svg { width: 18px; height: 18px; }

.detail-sheet { margin: -56px 20px 0; position: relative; z-index: 6; }
.detail-title-card { border-radius: 26px; padding: 20px 22px 18px; }
.detail-title-card .row { display: flex; justify-content: space-between; align-items: center; }
.detail-title-card h2 { font-size: 26px; font-weight: 600; letter-spacing: .02em; }
.detail-title-card .latin { font-size: 11px; color: var(--ink-soft); margin-top: 3px; letter-spacing: .06em; font-weight: 400; opacity: .7; }
.health-ring { position: relative; width: 64px; height: 64px; flex-shrink: 0; }
.health-ring svg { transform: rotate(-90deg); }
.health-ring .num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.health-ring .num b { font-size: 17px; font-weight: 600; color: var(--ink); }
.health-ring .num small { font-size: 8px; color: var(--ink-soft); letter-spacing: .14em; margin-top: 1px; }
.tag-row { display: flex; gap: 7px; margin-top: 15px; }
.tag {
  font-size: 10.5px; font-weight: 500; padding: 6px 12px; border-radius: 999px;
  color: var(--ink-soft); letter-spacing: .06em;
  background: rgba(255,255,255,.35); border: 1px solid rgba(255,255,255,.6);
}

.care-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; padding: 0 20px; margin-top: 14px; }
.care-cell { border-radius: 22px; padding: 15px 17px 13px; }
.care-cell .cc-head { display: flex; align-items: center; gap: 8px; }
.care-cell .cc-icon {
  width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.5); border: 1px solid rgba(255,255,255,.7);
}
.care-cell .cc-icon svg { width: 15px; height: 15px; }
.care-cell .cc-head b { font-size: 12px; font-weight: 600; color: var(--ink-soft); letter-spacing: .08em; }
.care-cell .val { font-size: 20px; font-weight: 600; margin-top: 9px; color: var(--ink); }
.care-cell .val small { font-size: 10.5px; font-weight: 400; color: var(--ink-soft); margin-left: 3px; letter-spacing: .04em; opacity: .7; }
.care-cell .hint { font-size: 10.5px; color: var(--ink-soft); margin-top: 3px; font-weight: 400; letter-spacing: .03em; opacity: .65; }

.water-cta {
  margin: 14px 20px 0; width: calc(100% - 40px); cursor: pointer;
  color: var(--ink); border-radius: 999px; padding: 16px;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  font-size: 14px; font-weight: 600; font-family: var(--sans); letter-spacing: .14em;
}
.water-cta svg { width: 18px; height: 18px; }

.diary { padding: 0 26px; margin-top: 20px; }
.diary h3 { font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.diary-item { display: flex; gap: 13px; }
.diary-rail { display: flex; flex-direction: column; align-items: center; padding-top: 4px; }
.diary-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--graphite); flex-shrink: 0; }
.diary-line { width: 1px; flex: 1; background: rgba(23,27,33,.2); margin-top: 4px; }
.diary-body { padding-bottom: 15px; flex: 1; }
.diary-body b { font-size: 13px; font-weight: 600; letter-spacing: .03em; }
.diary-body p { font-size: 11.5px; color: var(--ink-soft); margin-top: 3px; line-height: 1.6; font-weight: 400; opacity: .75; }
.diary-body time { font-size: 10px; color: var(--ink-soft); letter-spacing: .12em; opacity: .55; }

/* ================= SCREEN 3 · CALENDAR ================= */
.page-head { padding: 76px 26px 0; }
.page-head h2 { font-size: 30px; font-weight: 600; letter-spacing: .02em; }
.page-head p { font-size: 12px; color: var(--ink-soft); margin-top: 8px; font-weight: 400; letter-spacing: .06em; opacity: .75; }
.cal-filter { display: flex; gap: 8px; padding: 18px 26px 0; }
.fchip {
  font-size: 11px; font-weight: 500; padding: 8px 15px; border-radius: 999px;
  color: var(--ink-soft); letter-spacing: .08em;
  background: rgba(255,255,255,.28); border: 1px solid rgba(255,255,255,.5);
}
.fchip.on {
  background: rgba(23,27,33,.1); color: var(--ink); font-weight: 600;
  border-color: rgba(23,27,33,.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}
.cal-card { margin: 14px 20px 0; border-radius: 26px; padding: 19px 16px 14px; }
.cal-month { display: flex; justify-content: space-between; align-items: center; padding: 0 8px; }
.cal-month b { font-size: 17px; font-weight: 600; letter-spacing: .04em; }
.cal-month .arrows { display: flex; gap: 8px; }
.cal-month .arrows span {
  width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--ink-soft);
  background: rgba(255,255,255,.4); border: 1px solid rgba(255,255,255,.6);
}
.cal-week, .cal-days { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.cal-week { margin-top: 15px; font-size: 10px; color: var(--ink-soft); font-weight: 500; letter-spacing: .1em; opacity: .6; }
.cal-days { margin-top: 8px; row-gap: 2px; }
.day { position: relative; height: 42px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 400; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.day.dim { color: rgba(23,27,33,.25); }
.day.sel {
  color: var(--ink); font-weight: 700;
  background: rgba(23,27,33,.1);
  border: 1px solid rgba(23,27,33,.32);
  border-radius: 50%; width: 36px; height: 36px; margin: 3px auto;
}
.day .dots { position: absolute; bottom: 3px; display: flex; gap: 3px; }
.day .dots i { width: 3.5px; height: 3.5px; border-radius: 50%; }
.d-water { background: #4A5560; } .d-feed { background: #8A8578; } .d-mist { background: #A9B0B9; }

.agenda { padding: 0 20px; margin-top: 18px; }
.agenda h3 { font-size: 17px; font-weight: 600; padding: 0 6px; margin-bottom: 11px; }
.agenda-item {
  border-radius: 20px; padding: 13px 16px; margin-bottom: 9px;
  display: flex; align-items: center; gap: 12px;
}
.agenda-item .ai-ic {
  width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: rgba(255,255,255,.5); border: 1px solid rgba(255,255,255,.7);
}
.agenda-item .ai-ic svg { width: 16px; height: 16px; }
.agenda-item b { font-size: 13px; font-weight: 600; display: block; letter-spacing: .03em; }
.agenda-item small { font-size: 10.5px; color: var(--ink-soft); font-weight: 400; opacity: .7; }
.agenda-item time { margin-left: auto; font-size: 11px; color: var(--ink); font-weight: 600; flex-shrink: 0; font-variant-numeric: tabular-nums; letter-spacing: .04em; }

/* ================= SCREEN 4 · SCAN ================= */
.scan-frame {
  margin: 16px 20px 0; height: 296px; border-radius: 30px; position: relative; overflow: hidden;
  border: 1px solid rgba(255,255,255,.4);
  box-shadow: 0 18px 40px rgba(20,26,33,.22), inset 0 1px 0 rgba(255,255,255,.3);
}
.scan-frame .scan-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.85) brightness(.9);
}
.scan-frame .scan-scrim { position: absolute; inset: 0; background: rgba(18,24,31,.16); }
.scan-frame .corner { position: absolute; width: 30px; height: 30px; border: 1.5px solid rgba(255,255,255,.9); z-index: 3; }
.corner.tl { top: 26px; left: 26px; border-right: none; border-bottom: none; border-radius: 12px 0 0 0; }
.corner.tr { top: 26px; right: 26px; border-left: none; border-bottom: none; border-radius: 0 12px 0 0; }
.corner.bl { bottom: 26px; left: 26px; border-right: none; border-top: none; border-radius: 0 0 0 12px; }
.corner.br { bottom: 26px; right: 26px; border-left: none; border-top: none; border-radius: 0 0 12px 0; }
.scan-line {
  position: absolute; left: 40px; right: 40px; height: 1.5px; border-radius: 1px; z-index: 3;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.95), transparent);
  box-shadow: 0 0 14px rgba(255,255,255,.7); top: 50%;
}
.scan-tip {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 3;
  color: #fff; font-size: 11px; font-weight: 500; letter-spacing: .18em;
  background: rgba(255,255,255,.18); padding: 8px 18px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(10px); white-space: nowrap;
}
.scan-actions { display: flex; justify-content: center; gap: 11px; margin-top: 15px; }
.scan-actions button {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  font-size: 12px; font-weight: 600; padding: 12px 20px; border-radius: 999px;
  font-family: var(--sans); letter-spacing: .1em;
}
.btn-shoot { border: 1px solid rgba(255,255,255,.8); color: var(--ink); }
.btn-album { color: var(--ink-soft); }
.scan-actions svg { width: 16px; height: 16px; }

.discover-list { padding: 0 20px; margin-top: 20px; }
.discover-list h3 { font-size: 17px; font-weight: 600; padding: 0 6px; margin-bottom: 11px; }
.disc-item {
  display: flex; gap: 12px; border-radius: 20px; padding: 11px 14px 11px 11px;
  margin-bottom: 9px; align-items: center;
}
.disc-thumb {
  width: 52px; height: 52px; border-radius: 16px; flex-shrink: 0; overflow: hidden;
  border: 1px solid rgba(255,255,255,.55); background: #D8DDE2;
}
.disc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.disc-item b { font-size: 13.5px; font-weight: 600; display: block; letter-spacing: .03em; }
.disc-item small { font-size: 10.5px; color: var(--ink-soft); display: block; margin-top: 2px; font-weight: 400; letter-spacing: .03em; opacity: .7; }
.match-pill {
  margin-left: auto; font-size: 10.5px; font-weight: 600; color: var(--ink);
  padding: 5px 11px; border-radius: 999px; flex-shrink: 0; font-variant-numeric: tabular-nums;
  background: rgba(255,255,255,.4); border: 1px solid rgba(255,255,255,.6);
}

/* ================= WEATHER SYSTEM ================= */
.sky { --cloud: rgba(255,255,255,.9); }
.cloud { background: var(--cloud); }

.sky.w-sunny  { background: linear-gradient(180deg,#7AA7D4 0%,#9FC0E0 18%,#C4D6E8 36%,#E4E3D8 58%,#F3E3C6 80%,#F2D9B4 100%); }
.sky.w-cloudy { background: linear-gradient(180deg,#8DA1B4 0%,#A6B7C6 30%,#C1CDD6 60%,#DADFD9 100%); --cloud: rgba(210,218,226,.92); }
.sky.w-rain   { background: linear-gradient(180deg,#5F7285 0%,#7B8FA1 35%,#9AAAB8 65%,#B4BFC6 100%); --cloud: rgba(158,170,182,.9); }
.sky.w-storm  { background: linear-gradient(180deg,#2E3947 0%,#3E4B5C 40%,#54616F 75%,#6A7683 100%); --cloud: rgba(84,96,110,.92); }
.sky.w-windy  { background: linear-gradient(180deg,#7FA8CC 0%,#A3C2DC 30%,#CBDAE4 60%,#EDE5D2 100%); }
.sky.w-haze   { background: linear-gradient(180deg,#BDB7A4 0%,#CCC6B4 40%,#DCD6C6 70%,#E8E2D2 100%); --cloud: rgba(224,218,202,.85); }
.sky.w-snow   { background: linear-gradient(180deg,#9DB0C4 0%,#BDCBDA 40%,#DCE4EC 75%,#EEF2F5 100%); }

.w-cloudy .sun, .w-rain .sun, .w-storm .sun { display: none; }
.w-haze .sun { opacity: .5; filter: blur(14px); }
.w-windy .c1 { animation-duration: 14s; }
.w-windy .c2 { animation-duration: 19s; }
.w-windy .c3 { animation-duration: 23s; }
.w-windy .c4 { animation-duration: 17s; }
.w-cloudy .cloud { opacity: .95; }
.w-rain .cloud, .w-storm .cloud { filter: blur(30px); }

/* rain */
.wx-layer { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.drop {
  position: absolute; top: -18%; width: 1.5px; border-radius: 2px;
  background: linear-gradient(180deg, transparent, rgba(232,240,248,.6));
  animation: wx-fall linear infinite;
}
.w-storm .drop { background: linear-gradient(180deg, transparent, rgba(210,224,240,.55)); }
@keyframes wx-fall { to { transform: translateY(1060px); } }

/* snow */
.flake {
  position: absolute; top: -4%; border-radius: 50%;
  background: rgba(255,255,255,.95);
  animation: wx-snow linear infinite;
}
@keyframes wx-snow { to { transform: translateY(940px) translateX(46px); } }

/* lightning */
.flash { position: absolute; inset: 0; background: #E8F1FC; opacity: 0; animation: wx-flash 9s infinite; pointer-events: none; }
.flash.f2 { animation-duration: 14s; animation-delay: 5.2s; }
@keyframes wx-flash {
  0%, 100% { opacity: 0; }
  3% { opacity: 0; } 4% { opacity: .7; } 5% { opacity: .08; }
  6.5% { opacity: .5; } 8.5% { opacity: 0; }
}

/* wind gusts */
.gust {
  position: absolute; height: 1.5px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  animation: wx-gust linear infinite;
}
@keyframes wx-gust { from { transform: translateX(-180px); } to { transform: translateX(580px); } }

/* haze fog banks */
.fogbank {
  position: absolute; width: 430px; height: 140px; border-radius: 50%;
  filter: blur(42px); background: rgba(228,222,205,.8); pointer-events: none;
  animation: wx-fog 42s ease-in-out infinite alternate;
}
.fogbank.f2 { top: 52% !important; animation-duration: 55s; animation-delay: -20s; }
@keyframes wx-fog { from { transform: translateX(-28%); } to { transform: translateX(32%); } }

/* statusbar adapts to dark weathers */
.phone[data-w="storm"] .statusbar, .phone[data-w="rain"] .statusbar { color: #EDF2F8; }
.phone[data-w="storm"] .sb-icons, .phone[data-w="rain"] .sb-icons { opacity: .9; }

/* dark weather: flip app text to light */
.phone[data-w="storm"] .app, .phone[data-w="rain"] .app {
  --ink: #EFF4F9;
  --ink-soft: rgba(233,240,247,.72);
  --muted: rgba(233,240,247,.6);
  --faint: rgba(233,240,247,.42);
  --graphite: #EFF4F9;
  color: #EFF4F9;
}
.phone[data-w="storm"] .glass, .phone[data-w="rain"] .glass { background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.28); }
.phone[data-w="storm"] .glass-deep, .phone[data-w="rain"] .glass-deep { background: rgba(255,255,255,.2); }
.phone[data-w="storm"] .task-icon, .phone[data-w="rain"] .task-icon,
.phone[data-w="storm"] .cc-icon, .phone[data-w="rain"] .cc-icon,
.phone[data-w="storm"] .ai-ic, .phone[data-w="rain"] .ai-ic { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.3); }
.phone[data-w="storm"] .task-icon svg, .phone[data-w="rain"] .task-icon svg,
.phone[data-w="storm"] .cc-icon svg, .phone[data-w="rain"] .cc-icon svg,
.phone[data-w="storm"] .ai-ic svg, .phone[data-w="rain"] .ai-ic svg { stroke: #EFF4F9; }
.phone[data-w="storm"] .task-row + .task-row, .phone[data-w="rain"] .task-row + .task-row { border-top-color: rgba(255,255,255,.12); }
.phone[data-w="storm"] .task-check, .phone[data-w="rain"] .task-check { border-color: rgba(255,255,255,.4); }
.phone[data-w="storm"] .task-check.done, .phone[data-w="rain"] .task-check.done { background: rgba(255,255,255,.2); border-color: #EFF4F9; }
.phone[data-w="storm"] .task-check.done svg, .phone[data-w="rain"] .task-check.done svg { stroke: #EFF4F9; }
.phone[data-w="storm"] .water-bar, .phone[data-w="rain"] .water-bar { background: rgba(255,255,255,.18); }
.phone[data-w="storm"] .tag, .phone[data-w="rain"] .tag,
.phone[data-w="storm"] .fchip, .phone[data-w="rain"] .fchip,
.phone[data-w="storm"] .match-pill, .phone[data-w="rain"] .match-pill { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); color: rgba(233,240,247,.85); }
.phone[data-w="storm"] .fchip.on, .phone[data-w="rain"] .fchip.on { background: rgba(255,255,255,.24); color: #fff; border-color: rgba(255,255,255,.45); }
.phone[data-w="storm"] .day, .phone[data-w="rain"] .day { color: rgba(233,240,247,.8); }
.phone[data-w="storm"] .day.dim, .phone[data-w="rain"] .day.dim { color: rgba(233,240,247,.28); }
.phone[data-w="storm"] .day.sel, .phone[data-w="rain"] .day.sel { color: #fff; background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.45); }
.phone[data-w="storm"] .tab, .phone[data-w="rain"] .tab { color: rgba(233,240,247,.65); }
.phone[data-w="storm"] .tab.active, .phone[data-w="rain"] .tab.active { color: #fff; }
.phone[data-w="storm"] .t-dot, .phone[data-w="rain"] .t-dot { background: #fff; }
.phone[data-w="storm"] .scan-btn svg, .phone[data-w="rain"] .scan-btn svg { stroke: #EFF4F9; }
.phone[data-w="storm"] .health-ring circle:last-child, .phone[data-w="rain"] .health-ring circle:last-child { stroke: #EFF4F9; }
.phone[data-w="storm"] .diary-dot, .phone[data-w="rain"] .diary-dot { background: #EFF4F9; }
.phone[data-w="storm"] .diary-line, .phone[data-w="rain"] .diary-line { background: rgba(255,255,255,.25); }
.phone[data-w="storm"] .water-cta, .phone[data-w="rain"] .water-cta { color: #EFF4F9; }
.phone[data-w="storm"] .water-cta svg, .phone[data-w="rain"] .water-cta svg { stroke: #EFF4F9; }
.phone[data-w="storm"] .btn-shoot, .phone[data-w="rain"] .btn-shoot { color: #EFF4F9; }
.phone[data-w="storm"] .btn-shoot svg, .phone[data-w="rain"] .btn-shoot svg { stroke: #EFF4F9; }
.phone[data-w="storm"] .scan-btn, .phone[data-w="rain"] .scan-btn { background: linear-gradient(155deg, rgba(255,255,255,.3), rgba(255,255,255,.14)); }

/* weather switcher */
.wx-switch {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 100;
  display: flex; gap: 4px; padding: 5px;
  background: rgba(16,20,25,.72); backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.14); border-radius: 999px;
  box-shadow: 0 12px 32px rgba(0,0,0,.35);
}
.wx-switch button {
  border: none; background: transparent; color: rgba(255,255,255,.62);
  font-family: var(--sans); font-size: 12.5px; font-weight: 500; letter-spacing: .08em;
  padding: 8px 16px; border-radius: 999px; cursor: pointer; transition: all .2s;
}
.wx-switch button:hover { color: #fff; }
.wx-switch button.on { background: rgba(255,255,255,.92); color: #171B21; font-weight: 600; }
@media (prefers-reduced-motion: reduce) {
  .drop, .flake, .gust, .flash, .fogbank { animation: none !important; }
}
