/* === Pieto Timer LP === */

:root {
  --lake-blue: #75A8AF;
  --dark-teal: #1F5F69;
  --soft-white: #FAFBFC;
  --text: #1A2A2E;
  --text-muted: #5A6B70;
  --border: #E2E8EA;
  --bg-section: #F4F8F9;
  --shadow-sm: 0 1px 2px rgba(31, 95, 105, 0.06);
  --shadow-md: 0 6px 24px rgba(31, 95, 105, 0.08);
  --shadow-lg: 0 18px 48px rgba(31, 95, 105, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--soft-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--dark-teal); text-decoration: none; }
a:hover { opacity: 0.8; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.container.narrow { max-width: 720px; }

.muted { color: var(--text-muted); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  cursor: pointer;
  text-decoration: none;
}
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-primary { background: var(--dark-teal); color: #fff; }
.btn-primary:hover { background: #154852; transform: translateY(-1px); box-shadow: var(--shadow-md); opacity: 1; }
.btn-outline { background: transparent; border-color: var(--dark-teal); color: var(--dark-teal); }
.btn-outline:hover { background: var(--dark-teal); color: #fff; opacity: 1; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(250, 251, 252, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  height: 56px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
  font-size: 16px;
}
.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
}
.header-nav a { color: var(--text-muted); font-weight: 500; }
.header-nav a:hover { color: var(--text); }
.header-nav .btn { color: #fff; }

/* Hero */
.hero {
  padding: 80px 0 100px;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--bg-section) 100%);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(117, 168, 175, 0.15);
  color: var(--dark-teal);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}
.badge.subtle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.hero-title {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  margin: 0 0 36px;
  line-height: 1.7;
}
.hero-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.hero-meta {
  font-size: 13px;
  color: var(--text-muted);
}
.hero-note {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--text-muted);
  background: rgba(117, 168, 175, 0.10);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--lake-blue);
  line-height: 1.6;
}
.hero-note strong { color: var(--text); }
.cta-note {
  margin-top: 6px !important;
  font-size: 13px;
  color: var(--text-muted) !important;
}
.cta-note strong { color: var(--text); }

/* Hero visual / dial */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.dial {
  width: 100%;
  max-width: 360px;
  height: auto;
  filter: drop-shadow(0 24px 48px rgba(31, 95, 105, 0.18));
  border-radius: 28px;
}
.dial-sector path {
  transform-origin: 160px 160px;
}

/* Alarm shake — short, intense horizontal jiggle with subtle rotation */
.dial.shake {
  animation: alarmShake 0.5s cubic-bezier(.36,.07,.19,.97) 0s 2 both;
  transform-origin: center;
}
@keyframes alarmShake {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
  10%  { transform: translate3d(-6px, 0, 0) rotate(-2deg); }
  20%  { transform: translate3d(7px, 0, 0) rotate(2deg); }
  30%  { transform: translate3d(-7px, 0, 0) rotate(-2deg); }
  40%  { transform: translate3d(7px, 0, 0) rotate(2deg); }
  50%  { transform: translate3d(-5px, 0, 0) rotate(-1deg); }
  60%  { transform: translate3d(5px, 0, 0) rotate(1deg); }
  70%  { transform: translate3d(-3px, 0, 0); }
  80%  { transform: translate3d(3px, 0, 0); }
  90%  { transform: translate3d(-1px, 0, 0); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg); }
}

/* Subtle yellow-green glow during alarm */
.dial.shake {
  filter: drop-shadow(0 24px 48px rgba(31, 95, 105, 0.18))
          drop-shadow(0 0 20px rgba(180, 230, 80, 0.7));
}

/* Sections */
.section {
  padding: 96px 0;
}
.section.features {
  background: #fff;
}
.section.screens {
  background: var(--bg-section);
}
.section.use-cases {
  background: #fff;
}
.section.faq {
  background: var(--bg-section);
}
.section.watrix {
  background: linear-gradient(135deg, var(--lake-blue) 0%, var(--dark-teal) 100%);
  color: #fff;
}
.section.cta {
  background: #fff;
  padding: 80px 0;
  text-align: center;
}
.section-title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  text-align: center;
}
.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  text-align: center;
  margin: 0 auto 56px;
  max-width: 600px;
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 12px;
}
.feature-card {
  background: var(--soft-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
}
.feature-card p {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.7;
}

/* Screenshots */
.screens-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.screen-card {
  margin: 0;
  text-align: center;
}
.screen-card img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  background: #fff;
  border: 1px solid var(--border);
}
.screen-card figcaption {
  margin-top: 16px;
  font-weight: 600;
  font-size: 15px;
}
.screen-card figcaption span {
  display: block;
  font-weight: 400;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Use cases */
.use-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 12px;
}
.use-card {
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--bg-section);
  border: 1px solid var(--border);
}
.use-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
}
.use-card p {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}
.faq-list details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  transition: box-shadow 0.2s ease;
}
.faq-list details[open] {
  box-shadow: var(--shadow-md);
}
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-list summary::after {
  content: "+";
  font-size: 22px;
  color: var(--text-muted);
  transition: transform 0.2s;
}
.faq-list details[open] summary::after {
  content: "−";
}
.faq-list p {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

/* Support / Tip jar */
.section.support {
  background: linear-gradient(180deg, #FFFAF0 0%, #FFF4E0 100%);
  padding: 72px 0;
}
.support-inner {
  text-align: center;
}
.support-emoji {
  font-size: 56px;
  display: inline-block;
  margin-bottom: 8px;
  animation: tilt 2.4s ease-in-out infinite;
  transform-origin: bottom center;
}
@keyframes tilt {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(8deg); }
}
.support-inner h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.support-inner p {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0 auto 24px;
  max-width: 540px;
  line-height: 1.8;
}
.support-note {
  margin-top: 16px !important;
  font-size: 12px !important;
  color: var(--text-muted);
}

/* WATRIX section */
.watrix-inner {
  text-align: center;
}
.watrix .badge.subtle {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.9);
}
.watrix-name {
  font-size: 32px;
  font-weight: 700;
  margin: 12px 0 16px;
}
.watrix p {
  font-size: 16px;
  margin: 0 auto 28px;
  max-width: 540px;
  line-height: 1.8;
  opacity: 0.95;
}
.watrix .btn-outline {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
.watrix .btn-outline:hover {
  background: #fff;
  color: var(--dark-teal);
}

/* CTA */
.cta-inner h2 {
  font-size: 36px;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.cta-inner p {
  color: var(--text-muted);
  margin: 0 0 32px;
  font-size: 17px;
}
.cta-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 18px !important;
}

/* Footer */
.site-footer {
  background: var(--soft-white);
  border-top: 1px solid var(--border);
  padding: 24px 0;
  font-size: 13px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
}
.footer-inner a { color: var(--text-muted); text-decoration: underline; }

/* Responsive */
@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero-cta {
    justify-content: center;
  }
  .hero-title {
    font-size: 40px;
  }
  .feature-grid,
  .use-grid {
    grid-template-columns: 1fr;
  }
  .screens-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }
  .header-nav a:not(.btn) {
    display: none;
  }
  .section {
    padding: 64px 0;
  }
  .section-title {
    font-size: 28px;
  }
}
