/* placeanew.com — the PlaceAnew app's own look (RoomPlanKitDemo/WerkerTheme.swift):
   system font, #FAFAFA page, white cards, black / #666 text, light dividers, blue #0F54F2 for
   the one thing to press. Light only, like the public app. */

:root {
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --text: #000000;
  --text-2: #666666;
  --text-3: #8A8A8F;
  --divider: #F0F0F5;
  --line: #E4E4EA;
  --blue: #0F54F2;
  --blue-dark: #0B43C4;
  --blue-tint: rgba(15, 84, 242, 0.07);
  --coral: #FF7A5C;
  --radius: 20px;
  --radius-small: 14px;
  --shadow-soft: 0 2px 10px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-lift: 0 18px 50px rgba(16, 18, 24, 0.14), 0 4px 12px rgba(16, 18, 24, 0.06);
  --wrap: 1120px;
  --gutter: 16px;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 140px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(15, 84, 242, 0.45);
  outline-offset: 3px;
  border-radius: 8px;
}

h1, h2, h3 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 4.6vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0 0 1em; }
p, li { text-wrap: pretty; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--surface);
  padding: 8px 14px;
  border-radius: 10px;
  z-index: 100;
}
.skip:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 250, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--divider);
}
.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
  min-height: 60px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand img { border-radius: 8px; }
.wordmark span { font-weight: 500; }
.wordmark b { font-weight: 700; }

.site-nav {
  display: flex;
  gap: 4px;
  order: 3;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 -8px;
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  color: var(--text-2);
  font-size: 0.95rem;
  padding: 6px 8px;
  border-radius: 10px;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--text); background: var(--divider); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--blue); background: var(--blue-tint); }
.header-cta { margin-left: auto; }

@media (min-width: 820px) {
  .header-row { flex-wrap: nowrap; min-height: 68px; padding-top: 0; padding-bottom: 0; }
  .site-nav { order: 0; width: auto; margin: 0 0 0 12px; overflow: visible; }
  :root { --gutter: 28px; }
  html { scroll-padding-top: 90px; }
}

/* Buttons: one blue thing to press, the rest white with a soft shadow (like the app's tool row). */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: var(--radius-small);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1;
  border: 0;
  cursor: pointer;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(15, 84, 242, 0.28); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-secondary { background: var(--surface); color: var(--blue); box-shadow: var(--shadow-soft); }
.btn-secondary:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1); }
.btn-small { min-height: 38px; padding: 0 14px; font-size: 0.92rem; border-radius: 11px; box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section-white { background: var(--surface); border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.lead { font-size: 1.18rem; color: var(--text-2); line-height: 1.5; }
.muted { color: var(--text-2); }
.small { font-size: 0.9rem; }

@media (min-width: 820px) {
  .section { padding: 96px 0; }
  .section-tight { padding: 56px 0; }
}

/* Hero */
.hero { padding: 40px 0 24px; overflow: hidden; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero .lead { max-width: 560px; margin-bottom: 28px; }
.hero-note { margin-top: 18px; font-size: 0.92rem; color: var(--text-3); display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); flex: none; }
.hero-phones { position: relative; display: flex; justify-content: center; padding: 8px 0 24px; }
.hero-phones .phone:first-child { transform: rotate(-4deg) translateX(18px); z-index: 1; }
.hero-phones .phone:last-child { transform: rotate(4deg) translate(-18px, 34px); }

@media (min-width: 900px) {
  .hero { padding: 72px 0 40px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 48px; }
}

/* Phone frame around real app screenshots (1206 x 2622). */
.phone {
  width: min(250px, 44vw);
  aspect-ratio: 1206 / 2622;
  border-radius: clamp(28px, 7vw, 44px);
  padding: clamp(6px, 1.4vw, 9px);
  background: #101218;
  box-shadow: var(--shadow-lift);
  flex: none;
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: clamp(22px, 5.8vw, 36px);
  background: var(--bg);
}
.phone.small { width: min(220px, 60vw); }

/* Cards */
.cards { display: grid; gap: 16px; }
@media (min-width: 640px) { .cards.two { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .cards.three { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) and (max-width: 899px) { .cards.three { grid-template-columns: repeat(2, 1fr); } }
.card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--blue-tint);
  color: var(--blue);
  margin-bottom: 14px;
}
.card .icon svg { width: 24px; height: 24px; }

/* Screenshot gallery: one row that scrolls sideways on phones, a grid on wide screens. */
.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(260px, 72vw);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px var(--gutter) 28px;
  margin: 0 calc(-1 * var(--gutter));
  scrollbar-width: thin;
}
.shot { scroll-snap-align: center; margin: 0; }
.shot .phone { width: 100%; }
.shot figcaption { margin-top: 18px; }
.shot figcaption b { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.shot figcaption span { color: var(--text-2); font-size: 0.95rem; line-height: 1.45; display: block; }
@media (min-width: 960px) {
  .shots { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); grid-auto-columns: auto; overflow: visible; margin: 0; padding: 8px 0 0; gap: 32px; }
}

/* Wide card for the landscape PDF page */
.export-card {
  display: grid;
  gap: 20px;
  align-items: center;
  margin-top: 40px;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 24px;
}
.export-card img { border-radius: 12px; border: 1px solid var(--divider); }
.export-card p:last-child { margin-bottom: 0; }
@media (min-width: 860px) {
  .export-card { grid-template-columns: 0.8fr 1.6fr; gap: 40px; padding: 32px 32px 32px 40px; }
}

/* Feature rows: text + screenshot, alternating on wide screens */
.feature { display: grid; gap: 32px; align-items: center; padding: 48px 0; border-top: 1px solid var(--divider); }
.feature:first-of-type { border-top: 0; padding-top: 8px; }
.feature .phone { margin: 0 auto; }
.feature .media-wide img { border-radius: var(--radius); box-shadow: var(--shadow-lift); border: 1px solid var(--divider); background: #fff; }
.feature ul { padding-left: 1.1em; margin: 0 0 1em; color: var(--text-2); }
.feature li { margin-bottom: 6px; }
.feature li b { color: var(--text); font-weight: 600; }
@media (min-width: 860px) {
  .feature { grid-template-columns: 1.1fr 0.9fr; gap: 64px; padding: 72px 0; }
  .feature.flip > :first-child { order: 2; }
}

.tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 650;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--divider);
  color: var(--text-2);
  vertical-align: middle;
  margin-left: 6px;
  letter-spacing: 0.01em;
}
.tag.blue { background: var(--blue-tint); color: var(--blue); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: step; }
.step { display: grid; gap: 24px; align-items: center; }
.step-num {
  counter-increment: step;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 1rem;
  margin-bottom: 14px;
}
.step-num::before { content: counter(step); }
@media (min-width: 860px) {
  .step { grid-template-columns: 1fr 1fr; gap: 64px; }
  .step:nth-child(even) > :first-child { order: 2; }
}
.flow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.flow span { background: var(--surface); box-shadow: var(--shadow-soft); border-radius: 12px; padding: 10px 16px; font-weight: 600; }
.flow i { color: var(--text-3); font-style: normal; }

/* Callout band */
.band {
  background: var(--blue);
  color: #fff;
  border-radius: 28px;
  padding: 40px 24px;
  text-align: center;
}
.band h2 { color: #fff; }
.band p { color: rgba(255, 255, 255, 0.86); max-width: 560px; margin-left: auto; margin-right: auto; }
.band .btn-secondary { color: var(--blue); }
.band .btn-row { justify-content: center; margin-top: 24px; }
@media (min-width: 820px) { .band { padding: 64px 48px; } }

/* Check list */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before {
  content: "";
  flex: none;
  width: 22px; height: 22px; margin-top: 2px;
  border-radius: 50%;
  background: var(--blue-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F54F2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Text pages (privacy, terms, support) */
.page-head { padding: 48px 0 8px; }
.page-head h1 { font-size: clamp(2rem, 6vw, 3rem); }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.45rem; margin-top: 2em; letter-spacing: -0.01em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1em; }
.prose li { margin-bottom: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 0.95rem; background: var(--surface); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-soft); }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--divider); }
.prose th { font-weight: 650; background: #F6F6F9; }
.prose tr:last-child td { border-bottom: 0; }
/* On phones each table row becomes a small block: the item in bold, the reason under it. */
@media (max-width: 640px) {
  .stack-table thead { display: none; }
  .stack-table, .stack-table tbody, .stack-table tr, .stack-table td { display: block; width: 100%; }
  .stack-table tr { padding: 14px 16px; border-bottom: 1px solid var(--divider); }
  .stack-table tr:last-child { border-bottom: 0; }
  .stack-table td { padding: 0; border: 0; }
  .stack-table td:first-child { font-weight: 650; margin-bottom: 4px; }
  .stack-table td + td { color: var(--text-2); }
}
.updated { color: var(--text-3); font-size: 0.95rem; }
.summary-card { margin: 0 0 8px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.toc a { display: inline-block; padding: 6px 12px; background: var(--surface); border-radius: 10px; box-shadow: var(--shadow-soft); font-size: 0.92rem; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 52px 18px 20px;
  font-weight: 600;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 20px; top: 50%;
  width: 10px; height: 10px;
  border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 180ms ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq .answer { padding: 0 20px 18px; color: var(--text-2); }
.faq .answer p:last-child { margin-bottom: 0; }

/* Small helpers (the site runs under a CSP without inline styles) */
.narrow { max-width: 760px; }
.center { margin-left: auto; margin-right: auto; }
.space-top { margin-top: 16px; }
.label { margin-bottom: 6px; }
.card-title { font-size: 1.35rem; margin-bottom: 14px; }
.card-title:first-child { margin-top: 0; }

/* Contact */
.company-card { margin-top: 20px; }
.company-card h3 { margin-bottom: 10px; }
.company-card p:last-child { margin-bottom: 0; }
.contact-mail {
  display: inline-block;
  font-size: clamp(1.3rem, 5vw, 1.8rem);
  font-weight: 650;
  letter-spacing: -0.01em;
  word-break: break-all;
}

/* Footer */
.site-footer { border-top: 1px solid var(--divider); background: var(--surface); margin-top: 32px; padding: 40px 0 24px; }
.footer-grid { display: grid; gap: 28px; }
.footer-brand p { color: var(--text-2); font-size: 0.95rem; max-width: 420px; margin: 12px 0 0; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; align-content: start; }
.footer-links a { color: var(--text-2); font-size: 0.95rem; }
.footer-links a:hover { color: var(--text); }
.footer-legal p { color: var(--text-3); font-size: 0.82rem; margin: 28px 0 0; }
@media (min-width: 820px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr; }
  .footer-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* 404 */
.not-found { text-align: center; padding: 96px 0; }
.not-found .btn-row { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

.hero h1 .line { display: block; }
