/* Notel — plain CSS */

:root {
  --orange-25: #fffaf4;
  --orange-75: #fff0df;
  --orange-950: #431407;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --rose-300: #ffa2ae;
  --purple-300: #d8b4fe;
  --teal-400: #2dd4bf;
  --green-300: #86efac;
  --page-bg: #F5EB9C;
  --text-color: #BBAE65;
  --card-bg: #FAF3C4;
  --note-bg: #F5EB9C;
  --note-ink: #6b5f2a;
  --max-content: 80rem;
  --max-wide: 108rem;
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --page-bg: #121007;
    --text-color: #685B22;
    --card-bg: #1c1810;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", sans-serif;
  background: var(--page-bg);
  color: var(--text-color);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button { font: inherit; cursor: pointer; border: none; background: none; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #ffa2ae66; border-radius: 9999px; }

/* Layout */
.app { display: flex; min-height: 100svh; flex-direction: column; }

.main {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 8rem 2rem 4rem;
}

@media (min-width: 640px) {
  .main { padding-top: 12rem; padding-bottom: 7rem; }
}

@media (min-width: 1280px) {
  .main { padding-left: 9rem; padding-right: 9rem; }
}

.page {
  display: flex;
  width: 100%;
  max-width: var(--max-content);
  flex-direction: column;
  align-items: center;
}

/* Page entrance */
.page-enter {
  opacity: 0;
  animation: pageEnter 0.6s ease-out forwards;
}
.delay-500 { animation-delay: 500ms; }
.delay-700 { animation-delay: 700ms; }
.delay-900 { animation-delay: 900ms; }
.delay-1100 { animation-delay: 1100ms; }
.delay-1300 { animation-delay: 1300ms; }

@keyframes pageEnter { to { opacity: 1; } }

/* Header */
.header {
  position: fixed;
  top: 0;
  z-index: 40;
  width: 100%;
  background: var(--page-bg);
  transition: box-shadow 0.3s, background 0.3s;
}

.header.scrolled {
  box-shadow: 0 25px 50px -12px rgba(255, 162, 174, 0.15);
}

.header-inner {
  display: flex;
  width: 100%;
  justify-content: center;
  padding: 1.25rem 2rem;
}

@media (min-width: 640px) {
  .header-inner { padding-top: 1.75rem; padding-bottom: 1.75rem; }
}

.header-bar {
  display: flex;
  width: 100%;
  max-width: var(--max-wide);
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 2.5px solid var(--stone-800);
}

.logo-icon .logo-gradient {
  position: absolute;
  inset: 2px;
  border-radius: 0.5rem;
  background: linear-gradient(to top, rgba(28, 25, 23, 0.2), var(--stone-800) 95%);
  transition: transform 0.3s ease-out, opacity 0.3s;
}

.logo:hover .logo-gradient {
  transform: translateX(-100%) scale(0.5, 0.75);
  opacity: 0.25;
}

.logo-back {
  position: absolute;
  inset: -5px;
  width: 2.8125rem;
  height: 2.8125rem;
  fill: currentColor;
  opacity: 0;
  transform: translateX(2px) scale(0.5);
  filter: blur(4px);
  transition: all 0.3s ease-out;
}

.logo:hover .logo-back {
  opacity: 1;
  transform: translateX(0) scale(1);
  filter: blur(0);
}

.logo-name { font-size: 1.5rem; font-weight: 700; }

.nav { display: flex; align-items: center; gap: 1.25rem; }

.nav-faqs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  transition: background 0.3s;
}

.nav-faqs:hover { background: rgba(67, 20, 7, 0.05); }

.nav-faqs svg {
  width: 22px;
  height: 22px;
  transform-origin: bottom;
  transition: transform 0.3s;
}

.nav-faqs:hover svg { transform: rotate(-12deg); }

.nav-faqs span { display: none; margin-left: 0.5rem; }

@media (min-width: 640px) {
  .nav-faqs span { display: inline; }
  .nav-faqs { background: transparent; }
}

@media (max-width: 639px) {
  .nav-faqs { background: rgba(41, 37, 36, 0.05); }
  .header-download { display: none; }
}

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  max-height: 3.75rem;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.3s;
  overflow: hidden;
}

.btn:focus-visible { outline: 2px solid rgba(255, 162, 174, 0.9); }

.btn-primary {
  padding-left: 3.25rem;
  background: var(--stone-800);
  color: var(--orange-75);
  box-shadow: 0 25px 50px -12px rgba(67, 20, 7, 0.25);
}

.btn-light {
  padding-left: 3.25rem;
  background: rgba(67, 20, 7, 0.05);
  color: var(--text-color);
}

.btn-purchase {
  padding-left: 1.5rem;
  background: rgba(67, 20, 7, 0.05);
  gap: 0.625rem;
}

.btn-price {
  margin-left: 0.875rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  background: var(--stone-800);
  color: var(--orange-75);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

.btn-icon-left {
  position: absolute;
  left: 1.25rem;
  transition: transform 0.3s, filter 0.3s, opacity 0.3s;
}

.btn:hover .btn-icon-left {
  transform: translateX(-100%) scaleX(0.5);
  filter: blur(4px);
  opacity: 0;
}

.btn-label { transition: transform 0.3s; }
.btn:hover .btn-label { transform: translateX(-2rem); }

.btn-icon-right {
  position: absolute;
  right: 1.25rem;
  transform: translateX(100%) scaleX(0.5);
  opacity: 0;
  filter: blur(4px);
  transition: transform 0.3s, opacity 0.3s, filter 0.3s;
}

.btn:hover .btn-icon-right {
  transform: translateX(0) scaleX(1);
  opacity: 1;
  filter: blur(0);
}

/* Hero */
.hero { margin-bottom: 3.5rem; width: 100%; text-align: center; }

@media (min-width: 640px) { .hero { margin-bottom: 5rem; } }

@media (min-width: 1280px) {
  .hero { width: 80%; max-width: 64rem; }
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
}

@media (min-width: 640px) {
  .hero h1 { font-size: 6rem; line-height: 1; }
}

.hero mark {
  position: relative;
  display: inline-block;
  background: transparent;
  color: var(--note-ink);
  font-weight: 800;
  padding-right: 0.5rem;
}

.hero mark::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -0.25rem;
  height: 0.5em;
  background: var(--orange-25);
  border-radius: 0.125rem;
  z-index: -1;
}

.hero-apple {
  position: absolute;
  bottom: -0.125rem;
  left: -0.125rem;
  width: 3.25rem;
  height: 3.25rem;
  fill: currentColor;
}

@media (min-width: 640px) {
  .hero-apple {
    bottom: -0.375rem;
    left: -0.5rem;
    width: 6.25rem;
    height: 6.25rem;
  }
}

.hero-mac-text {
  padding-left: 2.875rem;
}

@media (min-width: 640px) {
  .hero-mac-text { padding-left: 5.25rem; }
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-top: 3.5rem;
}

@media (min-width: 640px) {
  .hero-ctas {
    flex-direction: row;
    gap: 1.75rem;
    margin-top: 3rem;
  }
}

/* Note preview */
.preview-section {
  width: 100%;
  margin-bottom: 3.5rem;
  display: flex;
  justify-content: center;
}

@media (min-width: 640px) { .preview-section { margin-bottom: 5rem; } }

.preview-viewport {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.preview-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.5rem;
}

.hidden { display: none !important; }

/* Features */
.features-section { width: 100%; }

.features-section h2 {
  text-align: center;
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 3rem;
}

@media (min-width: 640px) { .features-section h2 { font-size: 2.25rem; } }

.features-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.75rem 3rem;
  width: 100%;
}

@media (min-width: 768px) {
  .features-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem 4rem; }
}

.feature-row {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.feature-dot {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.875rem;
  background: var(--card-bg);
}

.feature-dot svg { width: 1.375rem; height: 1.375rem; }

.feature-dot--detail { color: var(--purple-300); }
.feature-dot--peek { color: var(--text-color); }
.feature-dot--stacks { color: var(--stone-800); }
.feature-dot--fan { color: var(--teal-400); }
.feature-dot--reminders { color: var(--rose-300); }
.feature-dot--display { color: var(--green-300); }

.feature-copy h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.375rem;
}

.feature-copy p {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  color: color-mix(in srgb, var(--text-color) 85%, transparent);
}

/* CTA */
.cta-section {
  margin-top: 6rem;
  display: flex;
  justify-content: center;
}

/* Footer */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 2rem 5rem;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-links a {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: rgba(67, 20, 7, 0.05);
  color: rgba(67, 20, 7, 0.5);
  transition: color 0.3s, transform 0.3s;
}

.social-links a:hover {
  color: rgba(67, 20, 7, 0.75);
  transform: scale(1.05);
}

.footer-watermark {
  pointer-events: none;
  margin-top: -1.5rem;
  display: none;
  overflow: hidden;
  font-size: 14rem;
  font-weight: 900;
  line-height: 1;
  user-select: none;
  background: linear-gradient(to bottom, rgba(67, 20, 7, 0.1) 25%, transparent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (min-width: 640px) {
  .footer-watermark { display: block; height: 9rem; }
}

@media (min-width: 768px) {
  .footer-watermark { height: 12rem; font-size: 18rem; }
}

@media (min-width: 1024px) {
  .footer-watermark { height: 14rem; font-size: 20rem; }
}

/* ── Dark theme (FAQs, Privacy) ── */
html.dark body {
  background: var(--page-bg);
  color: var(--text-color);
}

html.dark .header { background: var(--page-bg); }
html.dark .header.scrolled { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4); }
html.dark .logo-icon { border-color: var(--orange-75); }
html.dark .logo-icon .logo-gradient { background: linear-gradient(to top, rgba(255, 240, 223, 0.2), var(--orange-75) 100%); }
html.dark .nav-faqs:hover { background: rgba(255, 240, 223, 0.05); }
html.dark .btn-light { background: rgba(255, 240, 223, 0.05); color: var(--text-color); }
html.dark .social-links a { background: rgba(255, 240, 223, 0.05); color: rgba(255, 240, 223, 0.5); }
html.dark .social-links a:hover { color: var(--orange-75); }
html.dark .footer-watermark {
  background: linear-gradient(to bottom, rgba(255, 240, 223, 0.035) 25%, transparent);
}

/* ── Inner pages ── */
.main--inner {
  align-items: flex-start;
  padding-top: 8rem;
  padding-bottom: 4rem;
}

@media (min-width: 640px) {
  .main--inner { padding-top: 10rem; padding-bottom: 5rem; }
}

.page-content { width: 100%; }
.page-content--narrow { max-width: 48rem; }
.page-content--medium { max-width: 42rem; margin-left: auto; margin-right: auto; }
.page-content--small { max-width: 32rem; }
.page-content--center { text-align: center; }

.page-title {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 0.5rem;
}

@media (min-width: 640px) {
  .page-title { font-size: 4.5rem; }
}

.page-subtitle {
  font-size: 0.875rem;
  color: rgba(255, 240, 223, 0.6);
  margin: 0 0 3rem;
}

html:not(.dark) .page-subtitle { color: rgba(41, 37, 36, 0.6); }

.page-lead {
  font-size: 1.125rem;
  line-height: 1.6;
  margin: 0 0 3rem;
}

html.dark .page-lead { color: rgba(255, 240, 223, 0.8); }
html:not(.dark) .page-lead { color: rgba(41, 37, 36, 0.7); }

.text-muted {
  color: rgba(41, 37, 36, 0.6);
  font-size: 0.875rem;
}

html.dark .text-muted { color: rgba(255, 240, 223, 0.6); }

.text-link { text-decoration: underline; }
.text-link:hover { opacity: 0.85; }

/* FAQs */
.faq-list { display: flex; flex-direction: column; gap: 2.5rem; }

.faq-item h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.faq-item p {
  line-height: 1.625;
  margin: 0;
}

html.dark .faq-item p { color: rgba(255, 240, 223, 0.8); }
html:not(.dark) .faq-item p { color: rgba(41, 37, 36, 0.8); }

.callout-box {
  margin-top: 4rem;
  padding: 2rem;
  border-radius: 1rem;
  background: rgba(255, 240, 223, 0.05);
}

html:not(.dark) .callout-box { background: rgba(41, 37, 36, 0.05); }

.callout-box h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.callout-box p { margin: 0; line-height: 1.6; }
html.dark .callout-box p { color: rgba(255, 240, 223, 0.8); }
html:not(.dark) .callout-box p { color: rgba(41, 37, 36, 0.8); }

/* Download card */
.download-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
  border-radius: 1.5rem;
  background: rgba(41, 37, 36, 0.05);
  transition: background 0.3s, box-shadow 0.3s;
}

.download-card:hover {
  background: rgba(41, 37, 36, 0.1);
  box-shadow: 0 25px 50px -12px rgba(41, 37, 36, 0.15);
}

.download-card img {
  width: 6rem;
  height: 6rem;
  transition: transform 0.3s;
}

.download-card:hover img { transform: scale(1.05); }

.download-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.download-card-sub {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(41, 37, 36, 0.6);
  margin: 0;
}

/* Form */
.form-field {
  width: 100%;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(41, 37, 36, 0.1);
  background: rgba(255, 255, 255, 0.5);
  color: var(--text-color);
  font-size: 1rem;
}

.form-field::placeholder { color: rgba(41, 37, 36, 0.4); }

.form-field:focus {
  outline: none;
  border-color: var(--rose-300);
  box-shadow: 0 0 0 2px rgba(255, 162, 174, 0.5);
}

.form-stack { display: flex; flex-direction: column; gap: 1rem; }

.btn-submit {
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  background: var(--stone-800);
  color: var(--orange-75);
  font-weight: 600;
  transition: opacity 0.3s;
}

.btn-submit:hover { opacity: 0.9; }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.success-box {
  padding: 2rem;
  border-radius: 1rem;
  background: rgba(41, 37, 36, 0.05);
  text-align: center;
}

.success-box p { margin: 0; }
.success-box p + p { margin-top: 0.5rem; color: rgba(41, 37, 36, 0.7); }

/* Purchased */
.purchase-icon {
  display: inline-flex;
  width: 4rem;
  height: 4rem;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: rgba(134, 239, 172, 0.2);
  margin-bottom: 1.5rem;
}

.purchase-icon svg { color: #16a34a; }

.license-box {
  margin-bottom: 2rem;
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(41, 37, 36, 0.05);
}

.license-box-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(41, 37, 36, 0.6);
  margin: 0 0 0.5rem;
}

.license-key {
  font-family: ui-monospace, monospace;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin: 0;
}

.license-order {
  font-size: 0.75rem;
  color: rgba(41, 37, 36, 0.4);
  margin: 0.5rem 0 0;
}

.purchase-ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .purchase-ctas { flex-direction: row; justify-content: center; }
}

/* Hide header download on download/recover pages */
body[data-page="download"] .header-download,
body[data-page="recover"] .header-download { display: none !important; }
