/* Tidy Nook: its own little house. Afternoon honey light, cardboard boxes, gift tags,
   a cork board of polaroids and sticky notes. Only the shared topbar/footer come from apps-base. */
.app-tidynook {
  --bg: #FFF6E6; --surface: #FFFFFF; --line: #EAD2AA;
  --text: #4A2E1C; --muted: #7A5A43; --accent: #2FA896; --accent-ink: #FFFFFF;
  --honey: #F4B25C; --honey-d: #C9762A; --teal: #3DB7A3; --teal-d: #1F6E62;
  --card: #F2D3A4; --card-d: #D9AE73; --ink: #4A2E1C;
  --font-head: "Baloo 2", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --radius: 20px;
  background: var(--bg);
  color: var(--text);
}
.app-tidynook .topbar { background: rgba(255, 246, 230, .88); border-bottom: 1px dashed var(--card-d); }
.app-tidynook .brand span { font-family: var(--font-head); font-weight: 700; color: #5A321A; }
.app-tidynook .home-pill { background: var(--teal); color: #fff; box-shadow: 0 4px 0 var(--teal-d); }
.app-tidynook .lang-toggle { border-color: var(--card-d); }

.tn h1, .tn h2, .tn h3 { font-family: var(--font-head); color: #5A321A; }
.tn-section { padding: 84px 0; }
.tn-h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; margin: 0 0 30px; text-align: center; }
.tn-sub { text-align: center; color: var(--muted); margin: -16px auto 34px; max-width: 34em; }

/* ---------- hero: warm window light + before/after slider */
.tn-hero {
  position: relative; overflow: hidden; padding: 64px 0 88px;
  background:
    linear-gradient(115deg, rgba(255, 232, 178, .0) 30%, rgba(255, 224, 160, .55) 31%, rgba(255, 224, 160, .0) 46%),
    linear-gradient(115deg, rgba(255, 232, 178, .0) 50%, rgba(255, 224, 160, .35) 51%, rgba(255, 224, 160, .0) 62%),
    radial-gradient(ellipse 80% 70% at 85% 30%, #FFD99A 0%, rgba(255, 217, 154, 0) 70%),
    linear-gradient(180deg, #FFEACB 0%, #FFF6E6 100%);
}
.tn-hero::after { /* wooden floor strip */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 44px;
  background: repeating-linear-gradient(90deg, #C68A55 0 120px, #B97C48 120px 122px, #CF9561 122px 240px, #B97C48 240px 242px);
  box-shadow: inset 0 6px 0 rgba(90, 50, 26, .25);
}
.tn-hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 920px) { .tn-hero-grid { grid-template-columns: .92fr 1.08fr; } }
.tn-logo { border-radius: 24px; box-shadow: 0 10px 0 rgba(201, 118, 42, .25), 0 18px 30px rgba(90, 50, 26, .18); transform: rotate(-4deg); }
.tn-hero h1 { font-size: clamp(2.5rem, 6vw, 4.2rem); line-height: 1.02; margin: 22px 0 18px; font-weight: 700; }
.tn-hero h1 em { font-style: normal; color: var(--teal-d); background: linear-gradient(transparent 62%, rgba(244, 178, 92, .55) 62%); padding: 0 .08em; }
.tn-lead { font-size: 1.12rem; color: var(--muted); max-width: 30em; margin: 0 0 26px; }
.tn-stores { display: flex; flex-wrap: wrap; gap: 12px; }
.tn-store {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 14px; border-radius: 16px;
  background: #5A321A; color: #FFF4DE; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
  box-shadow: 0 5px 0 #3A1F10; line-height: 1.1;
}
.tn-store small { display: block; font-family: var(--font-body); font-weight: 600; font-size: .72rem; opacity: .75; }
.tn-store svg { width: 24px; height: 24px; fill: currentColor; }
.tn-note { margin: 18px 0 0; color: var(--honey-d); font-weight: 700; font-size: .95rem; }

.tn-ba {
  position: relative; margin: 0; aspect-ratio: 8 / 7; border-radius: 26px; overflow: hidden;
  border: 10px solid #FFFDF7; box-shadow: 0 0 0 2px var(--card-d), 0 26px 50px rgba(90, 50, 26, .25);
  transform: rotate(1.2deg); background: #fff; touch-action: pan-y;
}
.tn-ba img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tn-ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.tn-ba-tag {
  position: absolute; top: 14px; padding: 4px 12px; border-radius: 999px; font-family: "Caveat", cursive; font-size: 1.35rem;
  background: rgba(255, 253, 247, .92); color: #5A321A; box-shadow: 0 3px 0 rgba(90, 50, 26, .2);
}
.tn-ba-tag-l { left: 14px; } .tn-ba-tag-r { right: 14px; }
.tn-ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: #FFFDF7; pointer-events: none;
  box-shadow: 0 0 0 1px rgba(90, 50, 26, .2);
}
.tn-ba-handle svg {
  position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; padding: 10px; border-radius: 50%;
  background: var(--teal); stroke: #fff; stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round;
  box-shadow: 0 4px 0 var(--teal-d), 0 8px 18px rgba(31, 110, 98, .35);
}
.tn-ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.tn-scribble {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%) rotate(-3deg); font-family: "Caveat", cursive;
  font-size: 1.5rem; color: #FFFDF7; text-shadow: 0 2px 6px rgba(0, 0, 0, .45); pointer-events: none; transition: opacity .3s;
}
.tn-ba.touched .tn-scribble { opacity: 0; }

/* ---------- how: three cardboard boxes */
.tn-boxes { list-style: none; margin: 0; padding: 0; display: grid; gap: 34px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .tn-boxes { grid-template-columns: repeat(3, 1fr); } }
.tn-box {
  position: relative; padding: 46px 26px 28px; border-radius: 10px; text-align: center;
  background:
    linear-gradient(90deg, transparent 47%, rgba(160, 110, 60, .16) 47% 53%, transparent 53%),
    linear-gradient(180deg, #F6DCB2, var(--card));
  border: 2px solid var(--card-d); box-shadow: 0 8px 0 var(--card-d), 0 18px 34px rgba(90, 50, 26, .12);
}
.tn-box:nth-child(2) { transform: rotate(-1.2deg); } .tn-box:nth-child(3) { transform: rotate(1deg); }
.tn-tape { position: absolute; top: -12px; left: 50%; width: 96px; height: 26px; margin-left: -48px; background: rgba(127, 211, 196, .75); transform: rotate(-3deg); border-radius: 3px; }
.tn-box-no {
  position: absolute; top: 14px; left: 16px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: #FFFDF7; border: 2px dashed var(--honey-d); font-family: var(--font-head); font-weight: 700; color: var(--honey-d);
}
.tn-box h3 { font-size: 1.3rem; margin: 4px 0 10px; }
.tn-box p { margin: 0; color: #6B4A33; }

/* ---------- twists: gift tags on a string */
.tn-twists { background: linear-gradient(180deg, #FFF6E6, #FFEED4); }
.tn-tags {
  list-style: none; margin: 0; padding: 26px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 22px;
  background: linear-gradient(#C9762A, #C9762A) top / 100% 2px no-repeat;
}
.tn-tag {
  position: relative; width: 178px; padding: 30px 16px 18px; text-align: center; color: #5A321A; font-size: .95rem;
  border-radius: 8px 8px 18px 18px; box-shadow: 0 10px 22px rgba(90, 50, 26, .14);
  transform-origin: 50% -26px; animation: tn-swing 5s ease-in-out infinite;
}
.tn-tag::before { content: ""; position: absolute; top: -26px; left: 50%; width: 2px; height: 26px; background: #C9762A; }
.tn-tag::after { content: ""; position: absolute; top: 10px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #FFF6E6; box-shadow: inset 0 0 0 2px rgba(90, 50, 26, .3); }
.tn-tag b { display: block; font-size: 2rem; line-height: 1; margin: 6px 0 6px; }
.tn-tag strong { display: block; font-family: var(--font-head); font-size: 1.2rem; margin-bottom: 4px; }
.tn-tag:nth-child(2) { animation-delay: -1s; } .tn-tag:nth-child(3) { animation-delay: -2s; }
.tn-tag:nth-child(4) { animation-delay: -3s; } .tn-tag:nth-child(5) { animation-delay: -4s; }
.tag-gold { background: #FFE08A; } .tag-dust { background: #E9E1D4; } .tag-clock { background: #FFC9B8; }
.tag-lock { background: #FFD36E; } .tag-glass { background: #CDEBFA; }
@keyframes tn-swing { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }

/* ---------- rooms: polaroids on a cork board */
.tn-board {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 18px; padding: 34px 22px; border-radius: 18px;
  background:
    radial-gradient(circle at 20% 30%, rgba(120, 70, 30, .12) 0 2px, transparent 3px) 0 0 / 22px 22px,
    radial-gradient(circle at 70% 60%, rgba(120, 70, 30, .1) 0 1.5px, transparent 2.5px) 0 0 / 17px 17px,
    #D9A86C;
  border: 12px solid #8A5A36; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .12), 0 20px 40px rgba(90, 50, 26, .22);
}
@media (min-width: 760px) { .tn-board { grid-template-columns: repeat(4, 1fr); padding: 44px 36px; gap: 34px 26px; } }
.tn-pol { position: relative; margin: 0; padding: 10px 10px 0; background: #FFFDF7; box-shadow: 0 10px 20px rgba(60, 30, 10, .28); transition: transform .2s ease; }
.tn-pol img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.tn-pol figcaption { font-family: "Caveat", cursive; font-size: 1.35rem; color: #5A321A; text-align: center; padding: 6px 0 8px; }
.tn-pol::before { content: ""; position: absolute; top: -8px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #FF9B8A, #D0544A); box-shadow: 0 3px 4px rgba(0, 0, 0, .3); }
.tn-pol:nth-child(4n+1) { transform: rotate(-3deg); } .tn-pol:nth-child(4n+2) { transform: rotate(2deg); }
.tn-pol:nth-child(4n+3) { transform: rotate(-1.5deg); } .tn-pol:nth-child(4n) { transform: rotate(3deg); }
.tn-pol:hover { transform: rotate(0) scale(1.05); z-index: 2; }

/* ---------- a peek inside: phones on a strip (scrolls on small screens) */
.tn-inside { background: linear-gradient(180deg, #FFF6E6 0%, #FDE3B8 100%); overflow: hidden; }
.tn-strip {
  display: flex; gap: 34px; padding: 26px max(16px, calc((100vw - 1180px) / 2)) 46px; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none; justify-content: safe center;
}
.tn-strip::-webkit-scrollbar { display: none; }
.tn-shot { flex: 0 0 auto; width: clamp(170px, 15vw, 210px); margin: 0; scroll-snap-align: center; text-align: center; transition: transform .25s ease; }
.tn-shot img {
  display: block; width: 100%; height: auto; border-radius: 26px; border: 7px solid #4A2E1C; background: #4A2E1C;
  box-shadow: 0 0 0 2px rgba(255, 214, 107, .6), 0 22px 40px rgba(90, 50, 26, .28);
}
.tn-shot figcaption { margin-top: 14px; font-family: "Caveat", cursive; font-size: 1.45rem; color: #8A4E1E; }
.tn-shot:nth-child(odd) { transform: rotate(-3deg); }
.tn-shot:nth-child(even) { transform: rotate(3deg) translateY(22px); }
.tn-shot:hover { transform: rotate(0) translateY(-6px) scale(1.05); }

/* ---------- sticky notes */
.tn-notes ul { list-style: none; margin: 0 auto; padding: 0; max-width: 980px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (min-width: 760px) { .tn-notes ul { grid-template-columns: repeat(3, 1fr); } }
.tn-notes li {
  padding: 20px 16px; font-family: "Caveat", cursive; font-size: 1.55rem; line-height: 1.1; color: #4A2E1C; min-height: 92px;
  box-shadow: 0 8px 14px rgba(90, 50, 26, .14); clip-path: polygon(0 0, 100% 0, 100% 86%, 88% 100%, 0 100%);
}
.tn-notes li:nth-child(odd) { transform: rotate(-1.5deg); } .tn-notes li:nth-child(even) { transform: rotate(1.5deg); }
.note-y { background: #FFE68A; } .note-p { background: #FFC9C0; } .note-g { background: #C8EBC0; } .note-b { background: #CDE3FA; }

/* ---------- support & privacy pages keep their structure but wear the house style */
.app-tidynook .doc-page h1 { font-family: var(--font-head); color: #5A321A; }
.app-tidynook .faq, .app-tidynook .contact-card {
  background: #FFFDF7; border: 2px solid var(--line); border-radius: 14px; box-shadow: 0 6px 0 var(--card-d);
}
.app-tidynook .faq summary { font-weight: 800; }
.app-tidynook .faq[open] { border-color: var(--honey); }
.app-tidynook .contact-card .feature-icon { background: var(--honey); border: 2px solid #5A321A; color: #5A321A; border-radius: 14px; }
.app-tidynook .contact-card .store-btn { background: var(--teal); color: #fff; box-shadow: 0 4px 0 var(--teal-d); }
.app-tidynook .doc { background: #FFFDF7; border: 2px dashed var(--card-d); border-radius: 18px; padding: 28px clamp(18px, 4vw, 44px); }

@media (prefers-reduced-motion: reduce) { .tn-tag { animation: none; } }
