:root {
  --bg: #fbfaf8;
  --card: #ffffff;
  --text: #1c1c1e;
  --muted: #6b6b70;
  --accent: #3b6df6;
  --border: #e6e4e0;
  --radius: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

header.site {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  max-width: 760px;
  margin: 0 auto;
}

header.site .logo {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #3b6df6, #7aa0ff);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 22px;
}

header.site .name { font-weight: 700; font-size: 18px; }

nav.top { margin-left: auto; display: flex; gap: 18px; font-size: 14px; }
nav.top a { color: var(--muted); }

.hero {
  text-align: center;
  padding: 36px 20px 12px;
}
.hero h1 { font-size: 40px; margin: 8px 0 12px; letter-spacing: -0.5px; }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 560px; margin: 0 auto 28px; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 14px 26px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
}
.btn:hover { text-decoration: none; opacity: 0.92; }
.btn.secondary { background: #ececf0; color: var(--text); }

.badge {
  display: inline-block;
  background: #eef3ff;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 40px 0;
}
.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.feature .ico { font-size: 26px; }
.feature h3 { margin: 10px 0 6px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* Clickable feature tiles */
.feature.clickable { cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.feature.clickable:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,.07); border-color: #cdd7f5; }
.feature .peek {
  margin-top: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--accent);
}

/* ---- Modal / Lightbox ---- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(20,20,25,.62);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal-inner { text-align: center; max-width: 360px; }
.modal-inner h3 { color: #fff; margin: 18px 0 2px; font-size: 19px; }
.modal-inner p { color: rgba(255,255,255,.75); margin: 0; font-size: 14px; }
.modal-close {
  position: absolute; top: 18px; right: 20px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.15); color: #fff;
  border: none; font-size: 22px; cursor: pointer; line-height: 1;
}
.modal-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.15); color: #fff;
  border: none; font-size: 24px; cursor: pointer;
}
.modal-nav.prev { left: 14px; }
.modal-nav.next { right: 14px; }
@media (max-width: 520px) { .modal-nav { display: none; } }

/* ---- iPhone frame ---- */
.phone {
  width: 300px; height: 620px;
  margin: 0 auto;
  background: #0c0c0e;
  border-radius: 46px;
  padding: 12px;
  box-shadow: 0 30px 70px rgba(0,0,0,.5);
  position: relative;
}
.phone .notch {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 26px; background: #0c0c0e; border-radius: 16px; z-index: 5;
}
.phone .screen {
  width: 100%; height: 100%;
  background: var(--bg);
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  display: flex; flex-direction: column;
  text-align: left;
}

/* status + nav bars inside screen */
.scr-status { height: 30px; }
.scr-nav { padding: 6px 18px 4px; }
.scr-nav .big-title { font-size: 26px; font-weight: 800; letter-spacing: -.5px; }
.scr-body { flex: 1; overflow: hidden; padding: 0 14px 8px; }
.scr-tabbar {
  height: 56px; border-top: 1px solid var(--border);
  background: rgba(255,255,255,.85);
  display: flex; justify-content: space-around; align-items: center;
  font-size: 10px; color: var(--muted);
}
.scr-tabbar .tab { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.scr-tabbar .tab.active { color: var(--accent); }
.scr-tabbar .tab .t-ico { font-size: 17px; }

/* weather header (Today) */
.wx {
  background: #eef1f6; border-radius: 16px; padding: 14px 16px;
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px;
}
.wx .t { font-size: 13px; color: var(--muted); }
.wx .deg { font-size: 26px; font-weight: 800; }

/* segmented control */
.seg { display: flex; background: #e9e9ee; border-radius: 9px; padding: 3px; margin-bottom: 14px; }
.seg span { flex: 1; text-align: center; font-size: 12px; padding: 6px 0; border-radius: 7px; color: var(--muted); }
.seg span.on { background: #fff; color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.08); }

/* outfit stack */
.outfit-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 14px; }
.outfit-card h4 { margin: 0 0 10px; font-size: 14px; }
.outfit-row { display: flex; gap: 10px; }
.garment {
  flex: 1; background: #f6f6f4; border-radius: 12px; aspect-ratio: 1/1;
  display: flex; align-items: center; justify-content: center;
}
.garment svg { width: 64%; height: 64%; }

/* wardrobe grid */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wcard { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 8px; }
.wcard .thumb { background: #f6f6f4; border-radius: 10px; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.wcard .thumb svg { width: 60%; height: 60%; }
.wcard .nm { font-size: 12px; font-weight: 600; }
.wcard .br { font-size: 10px; color: var(--muted); }

/* list rows (laundry) */
.lrow { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 8px 10px; margin-bottom: 8px; }
.lrow .mini { width: 38px; height: 38px; background: #f6f6f4; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.lrow .mini svg { width: 64%; height: 64%; }
.lrow .ln { flex: 1; }
.lrow .ln .a { font-size: 13px; font-weight: 600; }
.lrow .ln .b { font-size: 10px; color: var(--muted); }
.pill { font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.pill.clean { background: #e3f6e8; color: #1c7c3a; }
.pill.worn { background: #fdeedd; color: #b56a13; }
.pill.wash { background: #e7eefe; color: #2a5bd7; }

/* travel form */
.field { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.field .lbl { color: var(--muted); }
.field .val { font-weight: 600; }
.daychip { display: inline-flex; gap: 6px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 6px 8px; margin: 0 6px 6px 0; font-size: 11px; }
.daychip svg { width: 16px; height: 16px; }

/* generic settings rows */
.srow { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 11px 13px; margin-bottom: 8px; font-size: 13px; }
.srow .si { width: 26px; height: 26px; border-radius: 7px; display:flex; align-items:center; justify-content:center; color:#fff; font-size:13px; }
.btn-prom { background: var(--accent); color: #fff; text-align: center; border-radius: 12px; padding: 11px; font-weight: 700; font-size: 13px; margin-top: 4px; }
.note-box { font-size: 11px; color: var(--muted); margin-top: 10px; line-height: 1.5; }

.beta {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  margin: 32px 0;
}
.beta h2 { margin-top: 0; }

.doc h1 { font-size: 30px; }
.doc h2 { font-size: 20px; margin-top: 32px; }
.doc p, .doc li { color: #2c2c30; }
.doc .updated { color: var(--muted); font-size: 14px; }

footer.site {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 28px 20px;
  color: var(--muted);
  font-size: 14px;
}
footer.site a { color: var(--muted); margin: 0 8px; }
