/* Shelves site — home page. Loaded after style.css. */

.wrap--wide { max-width: 1120px; }
/* clips the washes that reach past the viewport without making a scroll box */
.page { overflow-x: clip; position: relative; isolation: isolate; }

/* ---------- the ground: the app's own soft washes, behind the hero and the close ---------- */
.aura { position: relative; }
.aura::before {
  content: "";
  position: absolute;
  inset: -160px -40vw 0 -40vw;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(42% 46% at 22% 8%, var(--wash-a) 0%, transparent 70%),
    radial-gradient(38% 42% at 78% 60%, var(--wash-b) 0%, transparent 70%);
  opacity: 0.85;
}
.aura--close::before {
  inset: 0 -40vw -160px -40vw;
  background:
    radial-gradient(40% 46% at 80% 20%, var(--wash-a) 0%, transparent 70%),
    radial-gradient(38% 42% at 18% 80%, var(--wash-b) 0%, transparent 70%);
}

/* ---------- hero ---------- */
.hero { padding: 40px 0 72px; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 48px;
}
.hero h1 {
  font-size: clamp(42px, 6vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 22px;
}
.hero__sub {
  font-size: 20px;
  line-height: 1.5;
  color: var(--secondary);
  max-width: 500px;
  margin: 0 0 30px;
}
.cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-on);
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  box-shadow: var(--shadow-2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.cta__note { color: var(--tertiary); font-size: 15px; margin: 0; }
.hero__phone { justify-self: center; }

/* ---------- "save in a second": four ways ---------- */
.ways {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 28px;
}
.way {
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: 16px;
  padding: 18px 16px 16px;
  box-shadow: var(--shadow-1);
}
.way svg { width: 26px; height: 26px; color: var(--accent); margin-bottom: 12px; }
.way b { display: block; font-family: var(--font-title); font-weight: 500; font-size: 17px; letter-spacing: -0.01em; color: var(--ink); }
.way span { display: block; font-size: 14px; color: var(--secondary); margin-top: 2px; }

/* ---------- feature bands ---------- */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: center;
  gap: 40px 48px;
  padding: 64px 0;
}
.feature--flip { grid-template-columns: 420px minmax(0, 1fr); }
.feature--flip .feature__text { order: 2; }
.feature--text { grid-template-columns: minmax(0, 1fr); padding-bottom: 40px; }
.feature__phone { justify-self: center; }
.feature h2 {
  font-size: clamp(30px, 3.6vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.feature p { font-size: 18px; line-height: 1.55; max-width: 470px; margin: 0; }
.feature p + p { margin-top: 12px; }
.kinds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; max-width: 470px; }
.kinds span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow-1);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.kinds svg { width: 15px; height: 15px; color: var(--secondary); }

/* ---------- close ---------- */
.close { padding: 72px 0 40px; text-align: center; }
.close h2 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.05; letter-spacing: -0.025em; margin: 0 0 14px; }
.close p { font-size: 18px; margin: 0 auto 28px; max-width: 520px; }
.close .cta { justify-content: center; }
.home-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.home-footer p { margin: 0; }

/* ---------- reveal on scroll (only when the script ran) ---------- */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- the phone: a CSS-built frame with the app's screens inside ---------- */
.phone {
  --pw: 300px;
  width: var(--pw);
  aspect-ratio: 300 / 620;
  background: var(--bezel);
  border-radius: 46px;
  padding: 9px;
  box-shadow: 0 36px 70px -24px rgba(16, 17, 22, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  position: relative;
  margin: 0 auto;
  flex-shrink: 0;
}
.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background:
    radial-gradient(70% 40% at 8% 0%, var(--wash-a) 0%, transparent 72%),
    radial-gradient(70% 45% at 100% 42%, var(--wash-b) 0%, transparent 72%),
    var(--ground);
  font-family: var(--font-text);
  font-size: 12px;
  line-height: 1.35;
  color: var(--ink);
  padding: 0 14px;
}
.phone--crop { aspect-ratio: auto; height: 480px; padding-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0;
  -webkit-mask-image: linear-gradient(#000 80%, transparent 100%); mask-image: linear-gradient(#000 80%, transparent 100%); }
.phone--crop .phone__screen { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.phone--crop .ph-bar { display: none; }

.ph-island { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 86px; height: 25px; border-radius: 14px; background: #000; }
.ph-status { position: relative; display: flex; justify-content: space-between; align-items: center; height: 46px; padding: 8px 10px 0; font-weight: 600; font-size: 13px; }
.ph-status svg { width: 46px; height: 12px; }

.ph-band { display: flex; justify-content: space-between; align-items: flex-end; margin: 8px 0 14px; }
.ph-eyebrow { font-size: 10.5px; font-weight: 600; color: var(--tertiary); margin-bottom: 1px; }
.ph-title { font-family: var(--font-title); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; line-height: 1.1; }
.ph-circles { display: flex; gap: 5px; }
.ph-circle { width: 27px; height: 27px; border-radius: 50%; background: var(--card); box-shadow: var(--shadow-1); display: grid; place-items: center; color: var(--ink); }
.ph-circle svg { width: 15px; height: 15px; }
.ph-avatar { background: linear-gradient(135deg, #6C9CFB, #0033A0); color: #fff; font-weight: 700; font-size: 11px; }

.ph-card {
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: 14px;
  padding: 11px 12px 10px;
  box-shadow: var(--shadow-1);
  margin-bottom: 8px;
}
.ph-card__shelf { font-size: 10.5px; font-weight: 600; margin-bottom: 3px; }
.ph-card__title { font-family: var(--font-title); font-weight: 800; font-size: 14px; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 3px; }
.ph-card__text { color: var(--secondary); font-size: 11.5px; }
.ph-card__date { color: var(--tertiary); font-size: 10.5px; margin-top: 5px; }
.ph-label { font-size: 10.5px; font-weight: 600; color: var(--tertiary); margin: 4px 0 8px; }

.ph-bar { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 8px; }
.ph-pill { flex: 1; height: 50px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow-2); display: flex; justify-content: space-around; align-items: center; padding: 0 8px; }
.ph-pill svg { width: 20px; height: 20px; color: #8A8F9E; }
.ph-pill svg.on { color: var(--accent); }
.ph-plus { width: 50px; height: 50px; border-radius: 50%; background: var(--accent); color: var(--accent-on); display: grid; place-items: center; box-shadow: var(--shadow-2); }
.ph-plus svg { width: 22px; height: 22px; }

/* pigments: only inside the phones (tiles carry identity). The fill is the same in both
   modes; text in a pigment lightens to the pigment's mark on dark. */
.pg-copper { --pg: #904401; --pg-text: #904401; }
.pg-vermillion { --pg: #A32A16; --pg-text: #A32A16; }
.pg-amethyst { --pg: #6443AB; --pg-text: #6443AB; }
.pg-viridian { --pg: #026B63; --pg-text: #026B63; }
.pg-azure { --pg: #006878; --pg-text: #006878; }
.pg-jade { --pg: #006E46; --pg-text: #006E46; }
.pg-ochre { --pg: #7F5100; --pg-text: #7F5100; }
.pg-plum { --pg: #84348F; --pg-text: #84348F; }
.ph-card__shelf { color: var(--pg-text, var(--tertiary)); }
@media (prefers-color-scheme: dark) {
  .pg-copper { --pg-text: #E48B53; }
  .pg-vermillion { --pg-text: #EA8470; }
  .pg-amethyst { --pg-text: #A994EE; }
  .pg-viridian { --pg-text: #04BEB0; }
  .pg-azure { --pg-text: #08B8D3; }
  .pg-jade { --pg-text: #4DBD88; }
  .pg-ochre { --pg-text: #D7953B; }
  .pg-plum { --pg-text: #CB88D4; }
}

/* the hero loop: a note lands, then gets its shelf */
.ph-card--new { position: relative; }
.ph-card--new .ph-card__shelf { position: relative; height: 14px; }
.ph-card--new .ph-card__shelf > span { position: absolute; left: 0; top: 0; }
.ph-card--new .ph-card__shelf .filing { color: var(--tertiary); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .ph-card--new { animation: land 9s ease-in-out infinite; }
  .ph-card--new .filing { animation: filing 9s linear infinite; }
  .ph-card--new .filed { animation: filed 9s linear infinite; }
  .ph-card--new .ph-card__shelf::after {
    content: ""; position: absolute; left: 0; top: 2px; width: 46px; height: 10px; border-radius: 5px;
    background: linear-gradient(90deg, var(--well), var(--hairline), var(--well)); background-size: 200% 100%;
    animation: shimmer 9s linear infinite;
  }
}
@keyframes land {
  0% { opacity: 0; transform: translateY(-10px) scale(0.98); }
  6% { opacity: 1; transform: none; }
  92% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-10px) scale(0.98); }
}
@keyframes filing {
  0%, 6% { opacity: 0; }
  10%, 34% { opacity: 1; }
  38%, 100% { opacity: 0; }
}
@keyframes filed {
  0%, 36% { opacity: 0; transform: translateY(3px); }
  42%, 100% { opacity: 1; transform: none; }
}
@keyframes shimmer {
  0%, 6% { opacity: 0; }
  10%, 34% { opacity: 1; background-position: 200% 0; }
  22% { background-position: 0% 0; }
  38%, 100% { opacity: 0; }
}
.ph-card--new .ph-card__shelf::after { display: none; }
@media (prefers-reduced-motion: no-preference) { .ph-card--new .ph-card__shelf::after { display: block; left: 52px; width: 40px; } }

/* shelf screen */
.ph-nav { display: flex; justify-content: space-between; align-items: center; height: 34px; margin-top: 4px; color: var(--ink); }
.ph-nav svg { width: 16px; height: 16px; }
.ph-nav__right { display: flex; gap: 12px; align-items: center; font-weight: 600; font-size: 12px; }
.ph-h1 { font-family: var(--font-title); font-weight: 800; font-size: 26px; letter-spacing: -0.02em; line-height: 1.1; margin: 6px 0 10px; }
.ph-chips { display: flex; gap: 6px; margin-bottom: 10px; }
.ph-chip { height: 24px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--ink); display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.ph-chip.on { background: var(--card); border-color: var(--card); box-shadow: var(--shadow-1); color: var(--pg-text, var(--ink)); }
.ph-chip small { font-weight: 500; color: var(--secondary); font-size: 10.5px; }
.ph-desc { color: var(--secondary); font-size: 11px; margin-bottom: 10px; }
.ph-blocks { display: grid; grid-template-columns: 1.6fr 1fr; gap: 6px; margin-bottom: 12px; }
.ph-block { background: var(--pg); color: #fff; border-radius: 10px; height: 44px; display: flex; align-items: center; padding: 0 11px; font-family: var(--font-title); font-weight: 800; font-size: 13px; letter-spacing: -0.02em; }
.ph-block--wide { grid-column: span 2; }
.ph-pcard { background: var(--pg); color: #fff; border-radius: 12px; padding: 10px 12px; margin-bottom: 7px; }
.ph-pcard__title { font-family: var(--font-title); font-weight: 800; font-size: 13.5px; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 2px; }
.ph-pcard__text { color: rgba(255, 255, 255, 0.88); font-size: 11px; }
.ph-pcard__date { color: rgba(255, 255, 255, 0.78); font-size: 10.5px; margin-top: 4px; display: flex; justify-content: space-between; align-items: center; }
.ph-pcard__date svg { width: 12px; height: 12px; }
.ph-moved { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--secondary); margin: 2px 0 8px; }
.ph-moved svg { width: 13px; height: 13px; color: var(--accent); }

/* note screen */
.ph-note-date { font-size: 10.5px; color: var(--tertiary); text-align: center; margin: 8px 0 6px; }
.ph-note-title { font-family: var(--font-title); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 8px; }
.ph-note-body { font-size: 13px; line-height: 1.4; color: var(--ink); margin-bottom: 14px; }
.ph-book { display: flex; gap: 12px; background: var(--card); border-radius: 14px; padding: 12px; box-shadow: var(--shadow-1); margin-bottom: 10px; }
.ph-cover { width: 58px; height: 84px; border-radius: 4px; flex-shrink: 0; background: linear-gradient(160deg, #2C3E5A, #16233A); color: #F4E9D6; padding: 8px 7px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: inset 2px 0 0 rgba(255, 255, 255, 0.12), 0 2px 6px rgba(0, 0, 0, 0.25); }
.ph-cover b { font-family: var(--font-title); font-weight: 800; font-size: 9.5px; line-height: 1.1; letter-spacing: -0.01em; }
.ph-cover i { font-style: normal; font-size: 7px; opacity: 0.8; }
.ph-book__meta { flex: 1; min-width: 0; }
.ph-book__title { font-family: var(--font-title); font-weight: 500; font-size: 14px; letter-spacing: -0.01em; line-height: 1.2; margin-bottom: 2px; }
.ph-book__row { font-size: 11px; color: var(--secondary); line-height: 1.4; }
.ph-book__row b { color: var(--ink); font-weight: 500; }
.ph-stars { color: var(--ochre, #7F5100); letter-spacing: 1px; font-size: 10px; }
.ph-shelfchip { display: inline-flex; align-items: center; height: 24px; padding: 0 11px; border-radius: 999px; background: var(--pg); color: #fff; font-weight: 600; font-size: 11px; margin-top: 2px; }

/* map screen */
.ph-map { position: absolute; inset: 0; background: #EFEBE4; overflow: hidden; }
@media (prefers-color-scheme: dark) { .ph-map { background: #1C1D24; } }
.ph-map svg { width: 100%; height: 100%; }
.ph-map .land { fill: #F6F2EA; }
.ph-map .park { fill: #DCE9CF; }
.ph-map .water { fill: #CFE3EF; }
.ph-map .road { stroke: #FFFFFF; stroke-width: 6; fill: none; stroke-linecap: round; }
.ph-map .road--minor { stroke-width: 3; }
@media (prefers-color-scheme: dark) {
  .ph-map .land { fill: #23242C; }
  .ph-map .park { fill: #23302A; }
  .ph-map .water { fill: #1E2A38; }
  .ph-map .road { stroke: #33343E; }
}
.ph-map .pin { fill: var(--accent); stroke: #fff; stroke-width: 2; }
@media (prefers-color-scheme: dark) { .ph-map .pin { stroke: #1D1E25; } }
.ph-map .pin-n { fill: #fff; font-family: var(--font-text); font-weight: 700; font-size: 11px; text-anchor: middle; }
@media (prefers-color-scheme: dark) { .ph-map .pin-n { fill: #0E0F13; } }
.ph-map-top { position: absolute; top: 46px; left: 14px; right: 14px; display: flex; justify-content: space-between; align-items: center; }
.ph-map-title { font-family: var(--font-title); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.ph-map-card { position: absolute; left: 14px; right: 14px; bottom: 84px; background: var(--card); border-radius: 14px; padding: 11px 12px; box-shadow: var(--shadow-2); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ph-map-card b { display: block; font-family: var(--font-title); font-weight: 500; font-size: 14px; letter-spacing: -0.01em; }
.ph-map-card span { font-size: 11px; color: var(--secondary); }
.ph-map-card svg { width: 16px; height: 16px; color: var(--tertiary); flex-shrink: 0; }

/* tasks screen */
.ph-day { display: flex; gap: 10px; align-items: flex-start; margin-top: 6px; }
.ph-day__disc { text-align: center; width: 34px; flex-shrink: 0; }
.ph-day__disc small { display: block; font-size: 9px; font-weight: 700; color: var(--accent); }
.ph-day__disc b { display: grid; place-items: center; width: 30px; height: 30px; margin: 2px auto 0; border-radius: 50%; background: var(--accent); color: var(--accent-on); font-family: var(--font-title); font-weight: 800; font-size: 14px; }
.ph-day__disc.plain small { color: var(--tertiary); }
.ph-day__disc.plain b { background: none; color: var(--ink); }
.ph-tasks { flex: 1; min-width: 0; }
.ph-task { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--hairline); }
.ph-task:last-child { border-bottom: 0; }
.ph-check { width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid #8A8F9E; flex-shrink: 0; margin-top: 1px; }
.ph-check.done { background: var(--accent); border-color: var(--accent); display: grid; place-items: center; }
.ph-check.done svg { width: 11px; height: 11px; color: var(--accent-on); }
.ph-task b { display: block; font-family: var(--font-title); font-weight: 500; font-size: 13px; letter-spacing: -0.01em; line-height: 1.25; }
.ph-task.done b { color: var(--tertiary); text-decoration: line-through; }
.ph-task small { display: block; font-size: 10.5px; color: var(--tertiary); margin-top: 1px; }
.ph-task .due { color: var(--accent); }
.ph-task .late { color: var(--danger); }
.ph-heard { display: flex; align-items: center; gap: 8px; background: var(--card); border-radius: 12px; padding: 9px 11px; box-shadow: var(--shadow-1); margin: 6px 0 12px; font-size: 12px; }
.ph-heard svg { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; }
.ph-heard em { font-style: normal; color: var(--accent); font-weight: 600; }

/* chat screen */
.ph-chat { position: absolute; left: 14px; right: 14px; bottom: 72px; display: flex; flex-direction: column; gap: 8px; }
.ph-msg { max-width: 86%; border-radius: 14px; padding: 8px 11px; font-size: 12px; line-height: 1.4; }
.ph-msg--me { align-self: flex-end; background: var(--accent); color: var(--accent-on); border-bottom-right-radius: 4px; }
.ph-msg--app { align-self: flex-start; background: var(--card); color: var(--ink); box-shadow: var(--shadow-1); border-bottom-left-radius: 4px; }
.ph-msg--app b { font-weight: 600; }
.ph-cite { display: flex; align-items: center; gap: 6px; margin-top: 7px; padding-top: 7px; border-top: 1px solid var(--hairline); font-size: 11px; color: var(--secondary); }
.ph-cite i { font-style: normal; width: 6px; height: 6px; border-radius: 2px; background: var(--pg-text); flex-shrink: 0; }
.ph-composer { position: absolute; left: 14px; right: 14px; bottom: 14px; height: 44px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow-2); display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 16px; color: var(--tertiary); font-size: 12px; }
.ph-composer i { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.ph-composer i svg { width: 14px; height: 14px; color: var(--accent-on); }

/* ---------- phone width and stacking ---------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding: 24px 0 56px; }
  .feature, .feature--flip { grid-template-columns: 1fr; gap: 28px; padding: 44px 0; }
  .feature--flip .feature__text { order: 0; }
  .feature__phone { justify-self: center; }
  .ways { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 40px; }
  .hero__sub { font-size: 18px; }
  .phone { --pw: 300px; }
  .phone--crop { height: 440px; }
  .feature h2 { font-size: 30px; }
  .feature p { font-size: 17px; }
  .ways { gap: 10px; }
  .way { padding: 14px 14px 12px; }
  .close { padding: 56px 0 24px; }
  .close h2 { font-size: 27px; }
}

/* the home page separates sections with air, not hairlines */
.home section { border-top: 0; }
.home .close { border-top: 0; }
