/* Sfoglia landing page — uses the app's own design system (warm paper,
   one terracotta accent, Playfair Display for Italian/headings, Inter for
   English/UI) rather than the portfolio's dark terminal theme: this app
   gets its own identity, like the other product pages linked from the
   portfolio root. */

:root {
  /* terracotta */
  --terracotta-50: #FDF1EC;
  --terracotta-100: #F8DCD1;
  --terracotta-200: #EFB69F;
  --terracotta-300: #E4886A;
  --terracotta-400: #D85A30;
  --terracotta-500: #C24E27;
  --terracotta-600: #A03F1F;

  /* paper / ink */
  --paper-0: #FFFDF9;
  --paper-50: #FAF7F1;
  --paper-100: #F4F0E7;
  --paper-200: #EBE5D9;
  --paper-300: #DED6C6;
  --ink-300: #9A9080;
  --ink-500: #6B6355;
  --ink-700: #413B32;
  --ink-900: #241F18;

  /* supporting hues */
  --olive-400: #7A8B5A;
  --ochre-400: #C9922F;
  --plum-400: #8A5A6B;
  --sky-400: #5A7A8B;

  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: Inter, "Helvetica Neue", Arial, sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-2xl: 28px;
  --radius-pill: 999px;

  --shadow-lift: 0 1px 2px rgba(36, 31, 24, .04), 0 8px 24px rgba(36, 31, 24, .05);
  --shadow-card: 0 2px 3px rgba(36, 31, 24, .03), 0 14px 34px rgba(36, 31, 24, .06);

  --ease-page: cubic-bezier(.32, .72, 0, 1);
  --content-max: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper-50);
  color: var(--ink-700);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.eyebrow {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--terracotta-500);
  font-weight: 600;
}
.eyebrow.center { text-align: center; }

.kicker {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-500);
  font-weight: 600;
  margin-bottom: 18px;
}

/* Top bar */
.top-bar {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 24px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.back-link {
  font-size: 13px;
  color: var(--ink-500);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.back-link:hover { border-bottom-color: var(--ink-300); }
.top-wordmark {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--ink-900);
}

/* Hero */
.hero {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-copy h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 64px;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink-900);
  margin-bottom: 28px;
}
.hero-sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-700);
  max-width: 46ch;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.hero-actions.center { justify-content: center; margin-top: 32px; }
.hero-footnote {
  margin-top: 20px;
  font-size: 13px;
  color: var(--ink-300);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .01em;
  text-decoration: none;
  transition: transform .14s var(--ease-page), opacity .14s;
}
.pill:active { transform: scale(.98); }
.pill-primary {
  background: var(--terracotta-400);
  color: var(--paper-0);
}
.pill-disabled {
  background: var(--paper-200);
  color: var(--ink-500);
  cursor: default;
  pointer-events: none;
}
.pill-secondary {
  background: var(--paper-0);
  color: var(--ink-700);
  border: 1px solid var(--paper-300);
}
.pill-secondary:hover { border-color: var(--terracotta-300); color: var(--terracotta-500); }

/* Official "Download on the App Store" badge. Apple's identity guidelines
   require the artwork to stay unmodified with clear space around it — the
   wrapper's padding provides that; the app isn't live yet, so it's shown
   dimmed with a small caption instead of a working link. */
.store-badge-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px;
  opacity: .55;
  filter: grayscale(35%);
}
.store-badge { height: 44px; width: auto; }
.store-badge-soon {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-500);
}

/* Device frame */
.phone {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  background: var(--ink-900);
  border-radius: 40px;
  padding: 14px;
  box-shadow: var(--shadow-card);
}
.phone img {
  width: 100%;
  aspect-ratio: 1206 / 2622;
  object-fit: cover;
  border-radius: 26px;
}
.hero-device { display: flex; justify-content: center; }

.phone-sm { max-width: 220px; padding: 10px; border-radius: 30px; }
.phone-sm img { border-radius: 20px; }

/* Philosophy band */
.philosophy {
  background: var(--terracotta-400);
  padding: 72px 24px;
}
.philosophy-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.philosophy .eyebrow {
  color: var(--terracotta-100);
  margin-bottom: 20px;
}
.philosophy-line {
  font-size: 30px;
  line-height: 1.35;
  margin-bottom: 24px;
}
.philosophy-line .it {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--paper-0);
  display: block;
}
.philosophy-line .en {
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--terracotta-100);
  display: block;
  font-size: 22px;
  margin-top: 4px;
}
.philosophy-body {
  font-size: 16px;
  line-height: 1.65;
  color: var(--terracotta-50);
}

/* Features */
.features {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 88px 24px 40px;
}
.feature-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--paper-0);
  border: 1px solid var(--paper-300);
  border-radius: var(--radius-xl);
  padding: 28px;
}
.feature-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-bottom: 18px;
}
.dot-terracotta { background: var(--terracotta-400); }
.dot-olive { background: var(--olive-400); }
.dot-sky { background: var(--sky-400); }
.dot-plum { background: var(--plum-400); }
.dot-ochre { background: var(--ochre-400); }
.feature-card h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 21px;
  color: var(--ink-900);
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 15px;
  color: var(--ink-500);
  line-height: 1.6;
}
.feature-card em { color: var(--terracotta-500); font-style: italic; }

/* Showcase */
.showcase {
  padding: 40px 0 88px;
}
.showcase-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 32px;
  text-align: center;
  color: var(--ink-900);
  margin-top: 14px;
}
.showcase-scroller {
  margin-top: 44px;
  display: flex;
  gap: 28px;
  overflow-x: auto;
  padding: 4px 24px 24px;
  scroll-snap-type: x proximity;
}
.showcase-item {
  flex: 0 0 auto;
  scroll-snap-align: center;
  text-align: center;
}
.showcase-item figcaption {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-500);
}

/* Closing */
.closing {
  background: var(--paper-100);
  padding: 88px 24px;
  text-align: center;
}
.closing-it {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 40px;
  color: var(--ink-900);
}
.closing-en {
  margin-top: 10px;
  font-size: 16px;
  color: var(--ink-500);
}

/* Footer */
.site-footer {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 32px 24px 56px;
  font-size: 13px;
  color: var(--ink-300);
  text-align: center;
}
.site-footer a {
  color: var(--ink-500);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Responsive */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 32px; text-align: center; }
  .hero-copy h1 { font-size: 44px; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-device { order: -1; margin-bottom: 8px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .philosophy-line { font-size: 24px; }
}

@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 38px; }
  .showcase-title { font-size: 26px; }
}
