:root {
  --forest: #173f32;
  --forest-2: #245a45;
  --leaf: #4f8065;
  --sage: #dcebdd;
  --sage-soft: #eef5eb;
  --sky: #dfeff3;
  --sand: #f3e5d7;
  --paper: #f7f8f2;
  --white: #fff;
  --ink: #17372e;
  --muted: #6d7d76;
  --line: #dfe7dd;
  --shadow-sm: 0 8px 24px rgba(25, 65, 49, .07);
  --shadow: 0 24px 60px rgba(21, 57, 43, .14);
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  min-height: 100vh;
  padding-bottom: 104px;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-rounded, "SF Pro Rounded", system-ui, -apple-system, sans-serif;
  line-height: 1.45;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .48;
  background-image: radial-gradient(rgba(32, 79, 60, .09) .65px, transparent .65px);
  background-size: 16px 16px;
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 3px solid rgba(93, 160, 175, .34); outline-offset: 3px; }

.topbar { position: sticky; top: 0; z-index: 20; background: rgba(247,248,242,.88); border-bottom: 1px solid rgba(215,225,214,.75); backdrop-filter: blur(18px) saturate(1.15); }
.topbar-inner { width: 100%; max-width: 1220px; height: 72px; margin: auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 18px; font-weight: 820; letter-spacing: -.025em; text-decoration: none; }
.brand-mark { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 14px 14px 14px 5px; background: var(--forest); box-shadow: 0 8px 20px rgba(23,63,50,.2); transform: rotate(-4deg); }
.brand-mark svg { width: 27px; height: 27px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transform: rotate(4deg); }
.desktop-nav { display: none; }
.icon-btn, .text-btn, .chip { border: 0; cursor: pointer; }
.install { padding: 10px 15px; color: var(--forest); background: var(--sage); border-radius: 999px; font-size: 12px; font-weight: 780; }

.view { display: none; width: 100%; max-width: 1220px; margin: auto; padding: 0 18px 32px; }
.view.active { display: block; animation: reveal .32s ease both; }
@keyframes reveal { from { opacity: 0; transform: translateY(5px); } }

.hero { position: relative; min-height: 300px; margin-top: 12px; overflow: hidden; color: #fff; background: var(--forest); border-radius: 32px; box-shadow: 0 24px 60px rgba(22,58,44,.16); isolation: isolate; }
.hero::before { content: ""; position: absolute; width: 300px; height: 300px; right: -175px; top: -185px; border: 55px solid rgba(255,255,255,.055); border-radius: 50%; }
.hero::after { content: ""; position: absolute; inset: auto auto -90px -70px; width: 210px; height: 160px; background: rgba(117,164,132,.12); border-radius: 50%; filter: blur(2px); }
.hero-copy { position: relative; z-index: 3; width: 67%; padding: 34px 0 32px 27px; }
.hero .eyebrow { color: #bcd9c5; }
.hero h1, .page-title h1 { margin: 9px 0 11px; font: 500 42px/.96 Iowan Old Style, Baskerville, Georgia, serif; letter-spacing: -.048em; }
.hero .lead { max-width: 225px; color: rgba(255,255,255,.72); font-size: 13px; }
.eyebrow { margin: 0; color: var(--leaf); font-size: 10px; font-weight: 850; letter-spacing: .17em; }
.hero-link { display: inline-flex; align-items: center; gap: 9px; margin-top: 23px; color: #fff; font-size: 12px; font-weight: 760; text-decoration: none; }
.hero-link span { position: relative; width: 25px; height: 25px; display: grid; place-items: center; overflow: hidden; color: transparent; background: #cde1d0; border-radius: 50%; }
.hero-link span::before, .card-arrow::before { content: ""; width: 6px; height: 6px; border-top: 1.5px solid var(--forest); border-right: 1.5px solid var(--forest); }
.hero-link span::after, .card-arrow::after { content: ""; position: absolute; width: 9px; height: 1.5px; background: var(--forest); transform: rotate(-45deg); }
.hero-visual { position: absolute; z-index: 2; inset: 0 0 0 auto; width: 44%; }
.hero-photo { position: absolute; width: 148px; height: 205px; right: -32px; top: 28px; overflow: hidden; border: 5px solid rgba(255,255,255,.14); border-radius: 76px 0 0 76px; transform: rotate(3deg); box-shadow: -18px 22px 45px rgba(4,27,18,.27); }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,59,44,.15), transparent 45%); }
.hero-photo img { width: 100%; height: 100%; display: block; object-fit: cover; transform: scale(1.06); }
.hero-float { position: absolute; z-index: 3; right: 12px; bottom: 25px; width: 142px; padding: 10px 11px 10px 31px; color: var(--ink); background: rgba(255,255,255,.91); border: 1px solid rgba(255,255,255,.7); border-radius: 14px; box-shadow: 0 12px 30px rgba(6,32,22,.2); backdrop-filter: blur(12px); }
.hero-float > span { position: absolute; left: 11px; top: 14px; width: 10px; height: 10px; background: #72aa81; border: 3px solid #dff0e1; border-radius: 50%; }
.hero-float b, .hero-float small { display: block; white-space: nowrap; }
.hero-float b { overflow: hidden; font-size: 10px; text-overflow: ellipsis; }
.hero-float small { margin-top: 1px; color: var(--muted); font-size: 8px; }
.hero-line { display: none; }

.summary { position: relative; z-index: 4; margin: -15px 12px 0; display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; background: rgba(255,255,255,.96); border: 1px solid rgba(217,228,216,.9); border-radius: 22px; box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.summary div { position: relative; padding: 17px 4px 15px; text-align: center; }
.summary div + div { border-left: 1px solid var(--line); }
.summary-dot { width: 6px; height: 6px; display: inline-block; margin-right: 4px; vertical-align: 3px; background: #79a6b0; border-radius: 50%; }
.summary-dot.leaves { background: #79a27f; }
.summary-dot.week { background: #d7a474; }
.summary strong { display: inline-block; color: var(--forest); font: 500 28px/1 Iowan Old Style, Baskerville, Georgia, serif; }
.summary span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }

.section-block { margin-top: 39px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 10px; }
.section-head h2 { margin: 4px 0 0; font: 500 29px/1.05 Iowan Old Style, Baskerville, Georgia, serif; letter-spacing: -.03em; }
.text-btn { padding: 8px 1px; color: var(--leaf); background: transparent; font-size: 11px; font-weight: 780; }
.task-list { display: grid; gap: 11px; margin-top: 15px; }
.task { position: relative; min-width: 0; padding: 10px 12px 10px 10px; display: grid; grid-template-columns: 65px minmax(0,1fr) auto; gap: 13px; align-items: center; overflow: hidden; background: rgba(255,255,255,.95); border: 1px solid var(--line); border-radius: 21px; box-shadow: var(--shadow-sm); }
.task::before { content: ""; position: absolute; inset: 12px auto 12px 0; width: 3px; background: #85b1bc; border-radius: 0 4px 4px 0; }
.task-feed::before { background: #d8a779; }
.task-photo { position: relative; width: 65px; height: 65px; }
.task-photo img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: 17px; }
.task-photo span { position: absolute; right: -4px; bottom: -4px; width: 24px; height: 24px; display: grid; place-items: center; background: var(--sky); border: 2px solid #fff; border-radius: 50%; font-size: 10px; }
.task-feed .task-photo span { background: var(--sand); }
.task-copy small, .task-copy strong, .task-copy em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-copy small { color: #789086; font-size: 8px; font-weight: 850; letter-spacing: .1em; }
.task-copy strong { margin-top: 2px; font: 500 18px Iowan Old Style, Baskerville, Georgia, serif; }
.task-copy em { color: var(--muted); font-size: 10px; font-style: normal; }
.task button { width: 43px; height: 43px; display: grid; place-items: center; padding: 0; color: var(--leaf); background: #fbfdf9; border: 1.5px solid #bcd0c1; border-radius: 50%; cursor: pointer; transition: .2s ease; }
.task button:hover { color: #fff; background: var(--forest-2); border-color: var(--forest-2); transform: scale(1.05); }
.empty { padding: 30px; color: var(--muted); background: rgba(255,255,255,.8); border: 1px dashed #c7d7c9; border-radius: 22px; text-align: center; }
.empty-icon { width: 38px; height: 38px; margin: 0 auto 8px; display: grid; place-items: center; color: #fff; background: var(--leaf); border-radius: 50%; }
.empty strong { display: block; margin-bottom: 3px; color: var(--ink); font: 500 23px Georgia,serif; }
.tip { margin-top: 24px; padding: 18px; display: flex; gap: 14px; background: var(--sand); border-radius: 21px; }
.tip.blue { background: var(--sky); }
.tip-icon { position: relative; flex: 0 0 43px; height: 43px; display: grid; place-items: center; overflow: hidden; color: transparent; background: rgba(255,255,255,.66); border-radius: 14px; font-size: 0; }
.tip-icon::before { content: ""; width: 15px; height: 15px; border: 2px solid #73917e; border-radius: 50%; box-shadow: 0 -8px 0 -6px #73917e,0 8px 0 -6px #73917e,8px 0 0 -6px #73917e,-8px 0 0 -6px #73917e; }
.tip strong { font-size: 13px; }
.tip p { margin: 4px 0 0; color: #657169; font-size: 12px; }

.page-title { padding: 36px 2px 20px; }
.page-title h1 { margin-top: 6px; font-size: 42px; }
.page-title p { margin: 0; color: var(--muted); font-size: 14px; }
.search { height: 55px; padding: 0 17px; display: flex; align-items: center; gap: 10px; color: var(--leaf); background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); }
.search:focus-within { border-color: #91b3a2; box-shadow: 0 0 0 4px rgba(85,139,112,.09); }
.search span { font-size: 23px; }
.search input { width: 100%; color: var(--ink); background: transparent; border: 0; outline: 0; }
.search input::placeholder { color: #8b9892; }
.chips { padding: 14px 1px 6px; display: flex; gap: 8px; overflow: auto; scrollbar-width: none; }
.chip { padding: 9px 15px; color: #63746c; background: #e8efe6; border-radius: 999px; font-size: 12px; font-weight: 740; white-space: nowrap; }
.chip.active { color: #fff; background: var(--forest); box-shadow: 0 7px 17px rgba(23,63,50,.18); }

.plant-grid { margin-top: 12px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.plant-card { min-width: 0; overflow: hidden; cursor: pointer; background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: 23px; box-shadow: var(--shadow-sm); transition: transform .24s ease, box-shadow .24s ease; }
.plant-card:hover { transform: translateY(-4px); box-shadow: 0 20px 42px rgba(24,65,49,.13); }
.plant-card:active { transform: scale(.985); }
.plant-media { position: relative; overflow: hidden; aspect-ratio: 1 / 1.08; background: var(--sage); }
.plant-media::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent,rgba(9,35,25,.45)); pointer-events: none; }
.plant-media img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .5s ease; }
.plant-card:hover .plant-media img { transform: scale(1.035); }
.plant-index { position: absolute; z-index: 2; top: 11px; left: 11px; color: rgba(255,255,255,.9); font: 500 12px Georgia,serif; text-shadow: 0 2px 8px rgba(0,0,0,.25); }
.water-status { position: absolute; z-index: 2; right: 9px; bottom: 9px; max-width: calc(100% - 18px); padding: 6px 8px; overflow: hidden; color: var(--forest); background: rgba(255,255,255,.9); border-radius: 999px; box-shadow: 0 4px 14px rgba(11,40,29,.14); font-size: 9px; font-weight: 780; text-overflow: ellipsis; white-space: nowrap; backdrop-filter: blur(8px); }
.plant-card-body { position: relative; min-height: 113px; padding: 14px 13px; }
.plant-card h3 { margin: 0 25px 4px 0; overflow-wrap: anywhere; font: 500 clamp(16px,4.35vw,19px)/1.05 Iowan Old Style,Baskerville,Georgia,serif; letter-spacing: -.025em; }
.plant-card p { margin: 0; overflow: hidden; color: var(--muted); font-size: 10px; font-style: italic; text-overflow: ellipsis; white-space: nowrap; }
.card-arrow { position: absolute; top: 13px; right: 13px; width: 25px; height: 25px; display: grid; place-items: center; overflow: hidden; color: transparent; background: var(--sage-soft); border-radius: 50%; font-size: 0; }
.badges { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 5px; }
.badge { padding: 5px 8px; color: #496a56; background: #e6f1e5; border-radius: 999px; font-size: 9px; font-weight: 760; }
.badge.warn { color: #805a3c; background: #f4e7da; }
.badge.subtle { color: #6f7d76; background: #f0f2ed; }

.week-plan { display: grid; gap: 10px; }
.day { min-width: 0; padding: 13px; display: grid; grid-template-columns: 54px minmax(0,1fr); gap: 13px; background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 21px; box-shadow: var(--shadow-sm); }
.day.today { color: #fff; background: var(--forest); border-color: var(--forest); }
.date-tile { height: 59px; padding: 7px 3px; text-align: center; background: var(--sage-soft); border-radius: 15px; }
.today .date-tile { color: var(--forest); background: #cfe2d2; }
.date-tile strong, .date-tile span { display: block; }
.date-tile strong { font: 500 24px/1 Georgia,serif; }
.date-tile span { margin-top: 4px; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.day-content { min-width: 0; }
.day-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.day-head strong { font: 500 19px Georgia,serif; }
.day-head span { color: var(--muted); font-size: 9px; }
.today .day-head span { color: rgba(255,255,255,.62); }
.day-tasks { margin-top: 9px; display: grid; gap: 6px; }
.mini-task { min-width: 0; padding: 5px 7px 5px 5px; display: grid; grid-template-columns: 29px minmax(0,1fr) auto; gap: 7px; align-items: center; background: #f1f4ef; border-radius: 12px; }
.today .mini-task { background: rgba(255,255,255,.1); }
.mini-task img { width: 29px; height: 29px; display: block; object-fit: cover; border-radius: 8px; }
.mini-task span, .mini-task b, .mini-task small { min-width: 0; display: block; }
.mini-task b { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.mini-task small { color: var(--muted); font-size: 8px; }
.today .mini-task small { color: rgba(255,255,255,.58); }
.mini-task i { font-size: 10px; font-style: normal; }
.rest-day { color: var(--muted); font-size: 10px; }
.today .rest-day { color: rgba(255,255,255,.63); }

/* Details */
dialog { width: min(650px,calc(100% - 20px)); max-height: 92dvh; overflow: auto; padding: 0; color: var(--ink); background: #fbfcf8; border: 0; border-radius: 29px; box-shadow: 0 32px 90px rgba(14,45,33,.34); }
dialog::backdrop { background: rgba(15,39,30,.58); backdrop-filter: blur(7px); }
.close { position: absolute; z-index: 3; top: 14px; right: 14px; width: 42px; height: 42px; color: var(--ink); background: rgba(255,255,255,.91); border: 1px solid rgba(255,255,255,.7); border-radius: 50%; box-shadow: 0 6px 18px rgba(15,44,32,.15); cursor: pointer; font-size: 24px; }
.dialog-photo { width: 100%; height: 290px; display: block; object-fit: cover; }
.dialog-body { padding: 24px; }
.dialog-body h2 { margin: 7px 0 2px; font: 500 36px/1 Iowan Old Style,Baskerville,Georgia,serif; letter-spacing: -.04em; }
.latin { margin: 0 0 14px; color: var(--muted); font-style: italic; }
.certainty { display: inline-block; padding: 5px 9px; color: #607168; background: #eaf1e7; border-radius: 9px; font-size: 10px; }
.care-grid { margin: 21px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.care { padding: 14px; background: #edf4ea; border-radius: 16px; }
.care:nth-child(2n) { background: #ebf3f5; }
.care b { display: block; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.care span { display: block; margin-top: 4px; font-size: 12px; }
.note { padding: 16px; background: #fff; border-left: 3px solid var(--leaf); border-radius: 0 15px 15px 0; box-shadow: var(--shadow-sm); font-size: 12px; }
.health { margin-top: 12px; padding: 16px; background: var(--sand); border-radius: 16px; font-size: 12px; }
.dialog-actions { position: sticky; bottom: -24px; margin: 19px -24px -24px; padding: 14px 24px calc(14px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr 1fr; gap: 9px; background: rgba(251,252,248,.93); border-top: 1px solid var(--line); backdrop-filter: blur(12px); }
.dialog-actions button { padding: 14px; color: #fff; background: var(--forest-2); border: 0; border-radius: 15px; cursor: pointer; font-weight: 760; }
.dialog-actions button + button { color: var(--ink); background: var(--sky); }
.toast { position: fixed; z-index: 50; left: 50%; bottom: 104px; max-width: calc(100% - 32px); padding: 11px 17px; opacity: 0; color: #fff; background: var(--forest); border-radius: 999px; box-shadow: 0 12px 30px rgba(20,50,37,.2); font-size: 12px; text-align: center; pointer-events: none; transform: translate(-50%,20px); transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%,0); }

.bottom-nav { position: fixed; z-index: 30; right: 12px; bottom: max(10px,env(safe-area-inset-bottom)); left: 12px; height: 76px; padding: 7px; display: grid; grid-template-columns: repeat(3,1fr); background: rgba(255,255,255,.91); border: 1px solid rgba(211,224,212,.92); border-radius: 25px; box-shadow: 0 18px 42px rgba(31,68,52,.17); backdrop-filter: blur(18px) saturate(1.2); }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #87958e; border-radius: 18px; text-decoration: none; }
.bottom-nav a.active { color: var(--forest); background: var(--sage-soft); }
.nav-icon { width: 27px; height: 27px; display: grid; place-items: center; }
.nav-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bottom-nav b { font-size: 10px; font-weight: 750; }

@media (min-width: 700px) {
  body { padding-bottom: 116px; }
  .view { padding-right: 28px; padding-left: 28px; }
  .hero { min-height: 350px; }
  .hero-copy { width: 58%; padding: 62px 0 50px 52px; }
  .hero h1 { font-size: 59px; }
  .hero .lead { max-width: 360px; font-size: 15px; }
  .hero-visual { width: 48%; }
  .hero-photo { width: 255px; height: 306px; right: 35px; top: 22px; border-radius: 120px 120px 26px 120px; }
  .hero-float { right: 18px; bottom: 31px; width: 168px; padding: 13px 14px 13px 35px; }
  .hero-float b { font-size: 11px; }
  .hero-float small { font-size: 9px; }
  .hero-float > span { left: 14px; top: 17px; }
  .hero-line { position: absolute; left: -40px; bottom: -22px; width: 180px; display: block; fill: none; stroke: rgba(194,222,201,.16); stroke-width: 2; stroke-linecap: round; }
  .summary { width: 610px; margin: -24px 0 0 38px; }
  .task-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .plant-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
  .plant-media { aspect-ratio: 1.15 / 1; }
  .week-plan { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (min-width: 1000px) {
  body { padding-bottom: 30px; }
  .topbar-inner { height: 78px; padding: 0 28px; }
  .desktop-nav { padding: 5px; display: flex; gap: 3px; background: #e9efe6; border-radius: 999px; }
  .desktop-nav a { padding: 9px 17px; color: #64756d; border-radius: 999px; font-size: 12px; font-weight: 730; text-decoration: none; transition: .2s ease; }
  .desktop-nav a.active { color: #fff; background: var(--forest); box-shadow: 0 5px 14px rgba(23,63,50,.17); }
  .bottom-nav { display: none; }
  .view { padding-top: 15px; }
  .hero { min-height: 400px; }
  .hero-copy { padding: 73px 0 58px 67px; }
  .hero h1 { font-size: 72px; }
  .hero .lead { font-size: 16px; }
  .hero-visual { width: 49%; }
  .hero-photo { width: 330px; height: 360px; right: 72px; top: 20px; border-radius: 160px 160px 32px 160px; }
  .hero-float { right: 42px; bottom: 36px; }
  .summary { width: 650px; margin-top: -28px; margin-left: 54px; }
  #heute.active { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(310px,.75fr); grid-template-rows: auto auto auto; gap: 0 28px; align-items: start; }
  #heute .hero, #heute .summary { grid-column: 1 / -1; }
  #heute .section-block { grid-column: 1; margin-top: 43px; }
  #heute > .tip { grid-column: 2; margin-top: 43px; }
  #heute .task-list { grid-template-columns: 1fr; }
  .page-title { padding-top: 36px; }
  .page-title h1 { font-size: 56px; }
  .plant-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 21px; }
  .plant-media { aspect-ratio: 1.25 / 1; }
  .plant-card-body { padding: 16px; }
  .plant-card h3 { font-size: 22px; }
  .week-plan { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
  .dialog-photo { height: 350px; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 39px; }
  .hero-copy { width: 70%; padding-left: 24px; }
  .hero-photo { right: -48px; }
  .hero-float { right: 8px; width: 150px; }
  .summary { margin-right: 10px; margin-left: 10px; }
  .task { grid-template-columns: 60px minmax(0,1fr) auto; gap: 11px; }
  .task-photo { width: 60px; height: 60px; }
  .care-grid, .dialog-actions { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
